Node developers are well acquainted with callback hell, the tendency of any node program to become a rat's nest of callbacks calling callbacks, tedious error checks, and exceptions spinning off into the void. There are several popular ways to tame the mess, and one of the most elegant is the promise pattern (aka deferreds). I'll give a brief introduction to promises with a special focus on the Q API and jQuery flavors, and show how the pattern can help you keep your asynchronous code understandable, modular, maintainable, and testable. I will also discuss the lurking pitfalls (there are a few), and try to help people decide whether or not to make the leap.
Promises
Filed in
- Organiser
- NYC Node.JS
- Date
- 17-18 Apr 2012 (Add to calendar) GMT
- Venue
- (Exact location not available) , New York, US
- Cost
- Free
You might also like...
Other nearby events
Map
jQuery forum discussion
-
How to stop & start the scrolling text on mouseover & onmouseout event.
by codeunit (3 replies)
-
Header and Footer in Web page print
by fhajaj (4 replies)
-
Automatically check/uncheck multiple checkboxes
by gus (3 replies)
-
Re: HTML TABLE
by mikefenej (0 replies)
-
Re: HTML TABLE
by mikefenej (0 replies)
jQuery podcasts
-
Herding Code: Herding Code 162: Whacha doin, Goodbye Google Reader, scriptcs and Lightning Round!
Published 7 years ago, running time 0h35m
This week on Herding Code, the guys talk about what they’ve been up to lately (including Kevin’s new Greater Than Parts site), lament the passing of Google Reader, talk about scriptcs, and even fit in a lightning round! Download / Listen: Herding Code 162: Whacha doin, Goodbye Google Reader, scri.
Comments