2014-12-18

One JavaScript: avoiding versioning in ECMAScript 6

What is the best way to add new features to a language? This blog post describes the approach taken by ECMAScript 6 [3], the next version of JavaScript. It is called One JavaScript, because it avoids versioning.

2014-12-09

Meta programming with ECMAScript 6 proxies

This blog post explains the ECMAScript 6 (ES6) feature proxies. Proxies enable you to intercept and customize operations performed on objects (such as getting properties). They are a meta programming feature.

2014-11-19

Mobile-friendly web pages

Google has announced that they are marking web pages as “mobile-friendly” in their search results. I was initially worried about this, because many websites have mobile-specific versions that are worse than their desktop versions on mobile devices. I also don’t like being auto-forwarded to mobile locations (e.g. from www.example.com to m.example.com), because it prevents URLs from being universal.

However, Google’s criteria for mobile-friendliness are reasonable: Pages must…

  • Avoid software that is not common on mobile devices, like Flash
  • Use text that is readable without zooming
  • Size content to the screen so users don't have to scroll horizontally or zoom
  • Place links far enough apart so that the correct one can be easily tapped

Google’s blog post gives tips for ensuring that your page is recognized as mobile-friendly. It seems like a similar approach could be used for checking whether pages are accessible.

2014-10-28

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

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.

2014-10-05

ECMAScript 6 promises (2/2): the API

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-23

ECMAScript 6 promises (1/2): foundations

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.

2014-09-07

ECMAScript 6 modules: the final syntax

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.