Deferreds - Putting Laziness to Work

A session at jQuery Conference: SF 2011

Saturday 16th April, 2011

5:15pm to 6:00pm (PST)

About four nested callback functions later, you realize that something needs to change. You wanted this site's code to be organized, maintainable, testable and DRY right? Wouldn't it be nice if your callbacks could run when any function was complete, even asynchronous ones? And how about if you could chain that callback, for example, to the $.ajax() call you just made? Or build your own and decide when to fire any bound callbacks? Meet $.Deferred, the feature that satisfies all of these needs. Think of it like callbacks on steroids. Plus, it's already used by $.ajax() for asynchronous awesomeness. We'll cover the basics of creating and using Deferreds and bring those principles into application architecture. You'll learn great ways to integrate Deferreds into your site's code and reap some sweet benefits. In short, you'll learn how to separate components of your application amongst synchronous and asynchronous behaviors. Saving time and reducing headaches: included.

About the speaker

This person is speaking at this event.
Dan Heberden

[insert role here] at @bocoup, jQuery henchman, and interested in making the open web even better. Oh and I like drinking 'n stuff. bio from Twitter

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 5:15pm6:00pm PST

Date Sat 16th April 2011

Short URL

lanyrd.com/sdptk

Official event site

events.jquery.org/…/

View the schedule

Share

Topics

See something wrong?

Report an issue with this session