SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programming Patterns in JavaScript

by Software Engineer at Lab49 on Oct 31, 2011

  • 52,050 views

This talk takes a deep dive into asynchronous programming patterns and practices, with an emphasis on the promise pattern. ...

This talk takes a deep dive into asynchronous programming patterns and practices, with an emphasis on the promise pattern.

We go through the basics of the event loop, highlighting the drawbacks of asynchronous programming in a naive callback style. Fortunately, we can use the magic of promises to escape from callback hell with a powerful and unified interface for async APIs. Finally, we take a quick look at the possibilities for using coroutines both in current and future (ECMAScript Harmony) JavaScript.

Statistics

Views

Total Views
52,050
Views on SlideShare
50,391
Embed Views
1,659

Actions

Likes
129
Downloads
580
Comments
3

20 Embeds 1,659

http://www.scoop.it 879
http://madmica.usask.ca 537
http://www.redditmedia.com 75
https://twitter.com 55
http://paper.li 30
http://a0.twimg.com 28
http://www.linkedin.com 12
https://si0.twimg.com 9
http://sprint21er.wordpress.com 8
http://localhost 5
http://www.techgig.com 4
https://twimg0-a.akamaihd.net 4
http://us-w1.rockmelt.com 3
http://128.233.110.158 2
http://coderwall.com 2
http://lifeofjs.com 2
http://safe.txmblr.com 1
http://ja.twitter.com 1
http://www.pinterest.com 1
http://pinterest.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

13 of 3 previous next Post a comment

Post Comment
Edit your comment

Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programming Patterns in JavaScript Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programming Patterns in JavaScript Presentation Transcript