Update 2019-01-29: The feature set of ECMAScript 2019 is now final (source) and described in this blog post. A word on ECMAScript versions # Note that since the TC39 process was instituted, the importance of ECMAScript versions has much decreased. What really matters now is what stage a proposed feature is in: Once it has reached stage 4, it can be used safely. But even then, you still have to ch
JavaScript’s this: how it works, where it can trip you up [2017-12-06] Follow-up post: “A different way of understanding `this` in JavaScript” In JavaScript, the special variable this is relatively complicated, because it is available everywhere, not just in object-oriented settings. This blog post explains how this works and where it can cause problems, concluding with best practices. To understa
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. Before we take a look at the languages, let’s first consider the pros and cons of static typing, given that TypeScri
Initializers # With an initializer, you create a property and assign it a value at the same time. In the following code, = 0 is an initializer: class MyClass { x = 0; y = 0; } This class is equivalent to: class MyClass { constructor() { this.x = 0; this.y = 0; } } Initializers are executed before the constructor # class MyClass { foo = console.log('initializer'); constructor() { console.log('con
Warning: This blog post is outdated. Instead, read chapter “Modules” in “JavaScript for impatient programmers”. 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. Module systems for current JavaScript # JavaScript does not have built-in supp
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く