I am new to node.js and am currently setting up the environment, choosing which modules I will use etc.
During my research I found the Q module - which I really appreciate because of both the simplicity of the code and the structure itself.
I started to search for some discussion about the pros and cons of using promises with node.js. But, unfortunately, I could not find many information. Now I ask myself why.
Do you recommend using promises with node.js? Or are there any known disadvantage what might should stop me from using it?
promises arent strictly a node.js thing (jQuery uses promises). mostly its just cleaner code compared to callbacks.
here is a nice slideshare about that topic: http://de.slideshare.net/domenicdenicola/callbacks-promises-and-coroutines-oh-my-the-evolution-of-asynchronicity-in-javascript
slide 70 provides a link to a module you can use (even in node.js) which makes it even easier for you to use promises in your code (the q-module)