Friday, August 2, 2013

async - Avoiding the callback hell in node.js


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.


Followers

About Me

I'm a software developer with interests in Design Patterns, Distributed programming, Big Data, Machine Learning and anything which excites me. I like to prototype new ideas and always on the lookout for tools which help me get the job done faster. Currently, i'm loving node.js + Mongodb.