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.
Node.js 10 was released on April 24, 2018. This version provides experimental support for asynchronously iterating over readable streams. This blog post explains how that works.
In this blog post, I describe the pros and cons of three programming languages/dialects: JavaScript, TypeScript and ReasonML. My descriptions are based on recent experiences with TypeScript and ReasonML on a few smaller real-world projects and on years of experience with JavaScript.
Update 2019-01-29: The feature set of ECMAScript 2019 is now final (source) and described in this blog post.
String.prototype.matchAll
The proposal “String.prototype.matchAll
” by Jordan Harband is currently at stage 3. This blog post explains how it works.