The slides and code examples linked from this post explain how to avoid deep nesting of function calls generally referred to as "callback hell" when working with node.js. Node newbies often run into "callback hell" when they try to build something non-trivial. I have experienced these problems myself and started looking for ways around it. I found this library called async @ https://github.com/caolan/async which provides a neat API to overcome the problem.
Below are the link to the slides on how to use the async library as well as introduction with code examples on how to use the different functions provided by async presented at node.js Melbourne meetup on 31st July, 2013.
The slides are here http://slid.es/voicestreams/async and the code examples https://github.com/amithn/async-examples
No comments:
Post a Comment