Trees of Promises in ES6

This blog post shows how to handle trees of ES6 Promises, via an example where the contents of a directory are listed asynchronously.


Tracking unhandled rejected Promises

In Promise-based asynchronous code, rejections are used for error handling. One risk is that rejections may get lost, leading to silent failures. For example:

    function main() {
        .then(() => console.log('Done!'));

If asyncFunc() rejects the Promise it returns then that rejection will never be handled anywhere.

Let’s look at how you can track unhandled rejections in browsers and in Node.js.


Promise-based functions should not throw exceptions

This blog post gives tips for error handling in asynchronous, Promise-based functions.


The need for multi-platform npm packages

In this blog post, I argue that it should be possible to have multiple implementations of the same npm package (same name, same version).


Arrow functions vs. bind()

ES6 arrow functions are often a compelling alternative to Function.prototype.bind().


Examples of name clashes in JavaScript’s standard library

The main use case for ES6 symbols is that you can use them as property keys that can’t clash with other property keys.

In case you think that name clashes don’t matter, here are three examples of where name clashes caused problems in the evolution of the JavaScript standard library:


JavaScript fatigue fatigue

Enough with the fatigue – tips against feeling overwhelmed: