Rami Sarieddine, thank you for participating in the book giveaway.
I'm also curious about the implications of promises for writing applications in Node.js or Meteor.js. Do you have any thoughts on that?
Hi Michael. Thank you for the question.
As you noted, nested callback gets to be more problematic once it grows in lines of code and depth of nesting. Promises give you a neat solution for that, by providing you a more readable and "debuggable" approach. In the book there are examples on how structure the new code written with promises and talks about the ways that are currently used to make the callback nesting better and how Promises stand out as a better solution.
Regarding Node.js, the book doesn't go there. But Promises are now actively used in Node.js.
Q library by Kris Kowal is the dominant promise implementation in node.js. There is also Promised-IO by Kris Zyp.