Archive /

TinyJS#19

Jan 10, 2021

VanillaJS does scale

Interesting articles and a place to find tiny javascript utilities, here’s three interesting pieces from the internet.

Article: Yes, vanilla JS does scale

Chris Ferdinandi, a long time vanilla JS advocate, writes an article contrary to popular opinion on scaling vanilla javascript. Regardless of where you are in the debate, this is an interesting read.

Article: How Jeff and Dom make the game

Jeff and Dom share their journey on tooling for their multiplayer browser game called Manchester. Their post explores some of the tools they use to build and develop the game.

Resource: 1loc.dev

A neat little collection of vanilla JavaScript one-liners divided into various categories (arrays, date/time, DOM, etc).

Here’s an example on array shuffling

const shuffle = (arr) => arr.sort(() => 0.5 - Math.random())

// Example
shuffle([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) // [9, 1, 10, 6, 8, 5, 2, 3, 7, 4]

Subscribe to get these stories delivered to your inbox, every week.

Short and Sweet. No Spam.