2014-11

Mobile-friendly web pages

[2014-11-19] mobile, dev, google, webdev

2014-10

Statically typed JavaScript via Microsoft TypeScript, Facebook Flow and Google AtScript

[2014-10-28] atscript, esnext, dev, javascript, typedjs, facebook flow, typescript

Update 2014-11-18: Facebook Flow has been released as open source. Its website is flowtype.org. The site mentions plans for Flow’s future.

This blog post looks at three initiatives for adding static typing to JavaScript: Microsoft’s TypeScript, Facebook’s Flow and Google’s AtScript.

ECMAScript 6 promises (2/2): the API

[2014-10-05] esnext, async, dev, javascript, promises, jslang

This blog post is an introduction to asynchronous programming via promises in general and the ECMAScript 6 (ES6) promise API in particular. It is second in a series of two posts – part one explains foundations of asynchronous programming (which you may need to learn in order to fully understand this post).

2014-09

ECMAScript 6 promises (1/2): foundations

[2014-09-23] esnext, async, dev, javascript, promises, jslang

This blog post explains foundations of asynchronous programming in JavaScript. It is first in a series of two posts and prepares you for part two, which covers promises and the ECMAScript 6 promise API.

ECMAScript 6 modules: the final syntax

[2014-09-07] esnext, dev, javascript, jsmodules

At the end of July 2014, TC39 [^1] had another meeting, during which the last details of the ECMAScript 6 (ES6) module syntax were finalized. This blog post gives an overview of the complete ES6 module system.

Standardizing (a flavor of) Markdown

[2014-09-04] markdown, publishing, computers

Update 2014-09-05: Jeff Atwood renames “Standard Markdown” to “Common Markdown” and apologizes to John Gruber. Details: “Standard Markdown is now Common Markdown”.

On September 3, Jeff Atwood announced a new standardization effort for John Gruber’s Markdown: Standard Markdown.

Preventing function signature mismatch in ES5 and ES6

[2014-09-02] esnext, dev, javascript, jslang

In some cases, using a function (or method) with a callback can lead to surprising results – if the signature of the latter does not match the expectations of the former. This blog post explains this phenomenon and suggests fixes.

2014-08

Video: JavaScript coding tips

[2014-08-13] dev, javascript, jslang, video

The following video is a recording of the talk “JavaScript coding tips”, which I held 2014-05-16 at the Sud Web Conference in Toulouse, France.

How should I format the ECMAScript 6 generator asterisk?

[2014-08-05] esnext, dev, javascript, jslang

[Update 2015-03-30] This blog post is now a section in “ES6 generators in depth”.

The asterisk (*) is used by ECMAScript 6 to mark generator-related constructs [^1]. In each case, you have considerable freedom w.r.t. adding or omitting whitespace before and after this character. This blog post explains how to best format the asterisk and why.

Using ECMAScript 6 today

[2014-08-01] esnext, dev, javascript, jslang

ECMAScript 6 (ES6) still sounds like something from the future. After all, it will only become a standard by mid 2015. However, its features are continually appearing in browsers and there are compilers that translate ES6 code to ES5 code. The latter is already a compelling solution, because the ECMAScript 6 feature set is already frozen.

This blog post gives a brief overview of ECMAScript 6 features and describes tools that enable you to use them today.