In recent years, JavaScript has grown considerably in size. This blog post explores what’s still missing.
The best way of creating an Array, is via a literal:
const arr = [0,0,0];
Alas, that isn’t always an option, e.g. when creating large Arrays. This blog post examines what to do in those cases.
Status of ECMAScript module (ESM) support in Node.js:
In October, the Modules Team published the document “Plan for New Modules Implementation”. This blog post explains what it contains.
This blog post takes you behind the scenes of my latest book, “JavaScript for impatient programmers” (which I’ll occasionally abbreviate as “Impatient JS”). It describes:
This blog post describes a trick for running a snippet of JavaScript code with Node.js while working on it.
In this blog post, a describe a little hack for quickly setting up constants (think enum values, but not wrapped inside a namespace). It is more an educational puzzle than something you should actually use in your code.
In this blog post, we run shell commands as child processes in Node.js. We then use async language features to read the stdouts of those processes and write to their stdins.
In this blog post, we look at two ways of extracting the functionality of a loop: internal iteration and external iteration.
Quick tip: npm lets you install directories, which is occasionally useful for organizing projects. For example, as a temporary step before uploading packages to npm (think lightweight npm link
).
This blog post is a quick introduction to TypeScript’s notation for static types.