An Introduction to Speculative Optimization in V8
An impressively low-level article that we hope gives you a good idea about what happens in V8 when it comes to optimization.
24m 4Mastering Modular JavaScript
My latest book, Mastering Modular JavaScript, just went into Early Release and is available now on Safari Books Online. It’s a part of my “Modular JavaScript” effort. It covers module thinking, patterns & principles.
a minute 7A Brief History of Modularity
When it comes to JavaScript, modularity is a modern concept. In this article we’ll quickly revisit and summarize the milestones in how modularity evolved in the …
9m 3A Tiny Story about Systems Complexity
A human decides to open a new tab in their favorite web browser and they then google for “cat in a pickle gifs”. What happens next will shock you!
3m 2Make All Images on Your Website Responsive in 3 Easy Steps
Images are crucial to website performance, but most sites still don’t implement responsive images. Cloudinary provides an alternative to
srcset
andsizes
when implementing responsive images.5m 8Investigating Performance of Object#toString in ES2015
We discuss how
Object#toString
performs in the V8 engine, why it’s important, how it changed with ES2015 symbols, and how to speed it up.12m 1Interviewed at Tencent Frontend Conference
Last month, I was interviewed after delivering a presentation on ECMAScript to an audience in Shenzhen, China. I think it was an entertaining interview, so here’s a transcript.
6m 0Null Propagation Operator in JavaScript
There’s a proposal in stage 1 for the Null Propagation operator. In this article we’ll take a look at the proposal, which offers an alternative to null …
5m 25Pattern Matching in ECMAScript
There’s a stage 0 proposal for pattern matching in JavaScript. In this article we’ll take a look at what the proposal entails and also show how you might …
9m 17Setting up 2FA for Node.js Applications
Let’s take a look at how we can quickly hash out a correct two-factor authentication (2FA) solution for our web applications. First off, let’s work out the …
12m 2TC39, ECMAScript, and the Future of JavaScript
Last week, I gave a presentation at Tencent Frontend Conference in Shenzhen, China. For this article, I’ve adapted its transcript.
27m 10Regular Expressions in a post-ES6 world
In this article we’ll take a look at regular expressions improvements in and after ES6. We’ll discuss the
/y
,/u
, and/s
flags, named capture groups, unicode property escapes, lookbehind assertions, andString#matchAll
.23m 7Mixing Generators Into Iterators
As it turns out, iterators can be written using generators. This can lead to some interesting use cases.
5m 6Observables Proposal for ECMAScript!
There’s an ECMAScript proposal for Observables in the works. In this article we explore the proposal, the API, and look at a few use cases.
Observables in …
6m 11Variables declared using
const
are not immutableUsing
const
only means that the variable will always have a reference to the same object or primitive value, because that reference can’t change.2m 5Content-Security-Policy
in Express appsThe
Content-Security-Policy
header is a bit frightening — will I break my website if I suddenly start blocking requests for external resources? In this article we go over a gradual approach to adopting CSP.16m 3Setting up an Angular 2 Development Environment
Angular 2 is the rave of the moment. It is a modern JavaScript framework that is supercharged with awesome features. In fact, Angular 2 is now more than a framework, it …
25m 8The JavaScript Standard
JavaScript has gone from being a marketing ploy to gain a tactical advantage, to becoming the core programming experience in the world’s most widely used application runtime platform. Where to, next?
11m 3