Top Stories published by Eastros in 2014

When not to use Q.denodeify?

Q is a promising promise library, and Q.denodeify is a savior from pyramid of doom in NodeJS apps, but:

Do not use Q.denodeify for those NodeJS functions which don’t follow error-first callback approach.

Legit use:


Mimicking JavaScript’s alert, confirm and prompt in iOS

While some people argue against these functions, I think they are pretty good tools for rapid prototyping. And I really missed them in iOS, so I created similar functions in my iOS projects. Here is how they can be used:

[sourcecode…