Singletons in ES6 – The Good, the Bad, the Ugly

Singletons are fairly controversial as far as I can tell, especially in Javascript programming. Let’s take a look at what they are, when to (maybe) use them, and when not to. What is a Singleton? A singleton is a class that allows only a single instance o… Read more

Similar

The remarkable ES6 spread operator

A quick post to write about one of my favourite ES6 feature - Spread operator. What is it?Official (and frankly boring) definition from Mozilla docs: Spread syntax (...) allows an iterable such as an array expression or string to be expanded in places whe... (more…)

Read more »