Hacker News new | ask | show | jobs
by jbmartin 4682 days ago
jQuery loosely follows the Promises/A spec [1], so Q.js [2] might have been better choice.

[1] http://domenic.me/2012/10/14/youre-missing-the-point-of-prom... [2] http://documentup.com/kriskowal/q/#

2 comments

I disagree. I would rather see examples of Promises in pure Javascript. It is the more general approach and not everyone uses jQuery.
My mistake. I thought the blog post was about using jQuery. I totally agree with you.
since jquery 1.8 they fixed the most outrageous limitation with their deferred implementation (then should return a new promise), and I actually prefer their implementation.

that said, i make use of underscore.deferred, which is the jquery implementation as an underscore mixin.