The Differences between jQuery Deferreds and the Promises/A+ spec


A lot of developers use jQuery Deferreds to achieve promise-like behaviour. Since deferreds work for most scenarios, most do not know that jQuery deferreds are not compliant with the Promise/A+ spec. Surprised? Well, there are probably promise implementations that fall short of the spec. The schism is minor and might not really matter if promise libraries are … Continue reading The Differences between jQuery Deferreds and the Promises/A+ spec

A peek into JavaScript’s Array.prototype.map and jQuery.map


The map function comes from JavaScript's functional programming roots: it applies a function to every array element and returns a new array of the results without mutating the original array. So lets look at the native JS and jQuery map implementations. Array.prototype.map The signature for the native JS implementation is: The callback is the transforming … Continue reading A peek into JavaScript’s Array.prototype.map and jQuery.map

learning jQuery


I stumbled upon Rebecca Murphy's jqfundamentals and found it to be a gentle introduction to jQuery. Well, I use jQuery a lot - well, let's just say I copy prefabricated solutions - so I felt it'll do no harm to learn how to write jQuery itself. So far it's been lovely, Rebecca's piece is great … Continue reading learning jQuery