2014-04

The interoperability of Web Component polyfills

[2014-04-25] dev, html5, javascript, webcomponents, webdev

Handling required parameters in ECMAScript 6

[2014-04-23] esnext, dev, javascript
In ECMAScript 5, you have a few options for ensuring that a required parameter has been provided, all of which are somewhat brittle and inelegant:
    function foo(mustBeProvided) {
        if (arguments.length < 1) throw new Error(...)
        if (! (0 in arguments)) ...
        if (mustBeProvided === undefined) ...
    }
In ECMAScript 6, you can (ab)use default parameter values to achieve more concise code (credit: idea by Allen Wirfs-Brock):

The maximum call stack size

[2014-04-10] esnext, dev, javascript
Are you curious how many recursive calls you can make on your JavaScript engine?

In search of the perfect technology for slides

[2014-04-09] presenting, computers
I many cases, if you are presenting in front of an audience, you will create slides, visual material of some kind. I’m a very visual person myself and learn much better if I can read in addition to listen. Slides are also helpful when you lose attention for a few seconds.

There are a variety of software technologies out there for helping you with creating slides. Following are ones that I find intriguing:

Making checkbox labels clickable via <label>

[2014-04-02] dev, html
The <label> element has been around for a while, but I still don’t see enough websites use it. In lets you make labels of checkboxes and radio buttons clickable.

2014-03

reduce() and array indices

[2014-03-20] dev, javascript, jslang
This blog post explains how the index works that Array.prototype.reduce() passes to its callback.

2014-02

Taking a break

[2014-02-20] 2ality

JavaScript time values: dates as milliseconds since 1970-01-01

[2014-02-14] dev, javascript, jslang
This blog post explains how JavaScript dates are stored internally as time values, milliseconds since 1970-01-01.

What are integers in JavaScript?

[2014-02-08] numbers, dev, javascript, jsint, jslang
According to the ECMAScript specification, all numbers in JavaScript are floating-point. Yet, the notion of integer comes up occasionally. This blog post explains what it means.

Video: Fake operator overloading

[2014-02-06] dev, javascript, jslang, video
On 2012-05-31, I held the talk “Fake operator overloading” at Fluent Conference, in San Francisco. The video is now publicly available (go there for a larger version of the video).