Promises, Promises
This session, with Premasagar Rose and Aaron Acerboni, is an introduction to asynchronous flow control in JavaScript. We'll be looking at how to cleanly handle multiple callbacks from Ajax requests, setTimeouts, loading images and other asynchronous routines. In particular, we'll focus on jQuery.Deferred, which implements the Promises design pattern.
We'll work through some practical, step-by-step code examples, looking at how jQuery uses promises with all of its Ajax methods, see how they can control and interact with jQuery's animation effects, and how jQuery.Deferred can be used to create custom promises that control the flow of a website or web application.
Prem is the principal of local web applications company, Dharmafly, is a hacker and mentor at Rewired State, and helps to run Async. Aaron is currently studying Digital Media Development at Brighton University.
Update: slides & demos online
The slides can be viewed at http://promisespromises.dharmafly.com. The example demos are listed in the slides. The code repository for the slides and demos are on GitHub.