News for hackers. Stuff that matters.
Re:Write logic, not mechanics by MatthewPhillips on Thursday April 19, 2012 @01:27PM (#3864129)
Promises are likely to be baked into JavaScript at some point in the future[1], so I would recommend becoming familiar with them now. Even if you don't use the pattern personally you will likely run into libraries that do use it once it is part of the spec.

I don't too much like the promise pattern this article gives, Q is the definitive implementation: http://documentup.com/kriskowal/q/

[1]http://wiki.ecmascript.org/doku.php?id=strawman:concurrency

Re:Write logic, not mechanics by gozala on Friday April 20, 2012 @11:25AM (#3868281)
Just to be clear this library implements just a subset of Q with exact same API, with only addition of `promised` wrapper. I'm convinced that this wrapper is a better way to deal with promises than dozens of utility functions that you have to learn about.

For example Q.all is promised(Array) I find later more intuitive.

That's not to say don't use Q! Q is brilliant piece of software and I'd be more than happy to see more people using it.