Why Prototypical Languages (like ES6) Need Classes

In “prototypical languages” like JavaScript you can use object-instances to do much anything. Typically you do this with the help of “constr… Read more

Similar

Six nifty ES6 tricks

In this blog post, I show six tricks enabled by new ES6 features. At the end of each section, I point to related material in my book “ Expl...

Read more »

Playing with ES6: Tail Call Optimization

One of the behind-the-scenes changes that is coming with ES6 is support for tail call optimization (TCO). Tail call optimization means that, if the last expression in a function is a call to another…...

Read more »

Interfaces in Vanilla ES6 JavaScript

Recently, I found myself implementing a library in a few different languages. I started in PHP, which is pretty much Java’s weird multi-paradigm little-brother. Thus, it has compile-time interfaces that will ensure that classes adhere to and implement spe... (more…)

Read more »