TypeScript vs ECMAScript 2015/2016

As Javascript slowly becomes a less salty language thanks in part to ECMAScript 2015 (formerly ES6) amd ECMAScript 2016 (formerly ES7), the question of whether to choose a superset of the Javascript language or write POJ (Plain Old Javascript) is a question we need to ask ourselves. My experience with TypeScript is rather minimal, whilst … 

 

Abstract Classes In Javascript

Modern Javascript is a lot different to Javascript of 2010. We have considerably more methods and means of doing things that we did not have previously. Some of those include classes, generators, arrow functions and a few other high-profile additions. One aspect of Javascript that not even ES2015 nor ES2016 covers is the concept of … 

 

A Guide To ES6 Classes

You might have noticed I have been writing about ES6 a lot lately. This is because I am excited about ES6 and thanks to the use of transpilers we can actually use it right now until browsers catch up. What are Javascript classes? In many ways, they are a sham. Javascript classes don’t really exist other … 

 

What Are Weakmaps In ES6?

With ES6 comes a plethora of new features and changes, one of those is Weakmaps – essentially Weakmaps are a collection of keys and values with the main constraint being the key has to be an object. In-fact, Weakmaps are very similar to that of standard ES6 maps, with a few constraints. Unlike using a … 

 

A Guide To ES6 Arrow Functions =>

One of many favourite things in ECMAScript 6 (aka ES6) is the newly added arrow functions. If you’re a Coffeescript user then the arrow function premise is not entirely new to you. Essentially it allows you to create an anonymous function with the contextual value of “this” being the scope of the function being that …