The most misunderstood language in the world

About events

JavaScript is what makes web pages dynamic, and interactive. Event handling is vital in most websites, and applications, but it's still one of the most misunderstood, or ignored topics by most people who are just starting working as front-end developer. In this post I've written about how events propagation works accordingly to W3C model. »

A simple Babel optimization I recently learned

I've started to use Babel when it was still called 6to5, but just recently I learned that it permits to customize, and optimize its generated output. If you've ever wondered how to get rid of those nasty oneline functions Babel uses all over the place, this post is for you! »

Let's write a Promise polyfill

Everybody in this industry know the ancient wisdom for which it's better avoid reinventing the wheel. Anyway, that's often necessary to really understand how things work. I did this in the past, when I've written my event delegation library, and I'm doing this again, with my implementation of Promise. In this post, we're going to rewrite the code step by step. »

Exception handling in async functions

Async functions is one of the most welcomed new features of JavaScript in recent years. Async functions drastically improve developer/user's experience when dealing with asynchronous tasks... One aspect in which they really shine is error handling, but there's a caveat you'd be better be aware of. »

New `util.promisify` in Node.js

This won't probably be a ground breaking news, but it's surely relevant if you work on Node.js. These days Node.js community is debating on how to integrate Promises into native methods... It seems the error-first callback style won't disappear anytime soon, but for the Promise aficionados a new utility is going to join the party; let's meet util.promisify. »

C# LINQ equivalents of JavaScript array methods

Yep, your suspects are right... Yet another equivalent of JavaScript [feature] in C# post for the polyglot programmers out there. In this particular case we're going to explore C# LINQ equivalent of the most useful JavaScript array methods. »

Asynchronous Font Loading

Recently I've changed how I manage to load custom fonts on my personal blog.
I'm now using typekit/webfontloader to load fonts asyncronously, and probably you should too! In this post I share my final configuration, and the performance improvements I recorded. »

ECMAScript2017 and beyond

The standardization process for ECMAScript2017 is pretty near to an end. Dr. Axel Rauschmayer goes through the new features introduced by ECMAScript2017, and what is in progress for future versions of the language. »

A Brief History of JavaScript

JavaScript is arguably one of the most important languages today. The rise of the web has taken JavaScript places it was never conceived to be. The guys at Auth0 take a look at how JavaScript has evolved in its short history, and where it is headed. A must read for those (like me) who were not around our industry in the 90s. »

Custom Assertions are my favourite QUnit feature

This post is meant to share my favourite QUnit feature, custom assertions. I think custom assertions are great, because in a concise manner, they make extremely clear what a test is for. You should definetely give them a try. »

Webpack 101

webpack is a module bundler; it takes modules with dependencies and generates static assets representing those modules. It seems pretty straightforward, but it could become easily a mess. In webpack 101 we're going to discover the whys, and hows of the most useful webpack2 setup operations. »

Data Structure 101

James Kyle (@thejameskyle) has recently pushed on Github an article about how different data structures could be written in plain JavaScript. Reading through the guided code will help you learn about what data structures are, what their uses are, and how to discuss them. »

The Chiara's first thousand days task

Starting from an unusual, funny request I received from my wife some mornings ago, we'll follow the usual path of a feature request, from the initial technical analysis to the final implementation, exploring concepts related to functional programming (such as pure functions, partial application) and Test Driven Development. »