
Learning jQuery Deferreds
Taming Callback Hell with Deferreds and Promises
O'Reilly (Publisher)
1st Edition
Published on 4. February 2014
Book
Paperback/Softback
129 pages
978-1-4493-6939-2 (ISBN)
Description
Orchestrating asynchronous function calls in JavaScript often leads to callback hell, but there is a reliable way to avoid this painful state of affairs. With this concise and simple guide, you'll learn how to use jQuery deferreds and promises, an elegant approach for managing asynchronous calls in both client and server applications.
This book contains 18 examples that use deferreds to solve progressively challenging real-world programming problems, along with 75 stimulating puzzles (and their solutions) that will help you understand how and when to use deferreds. Experienced JavaScript programmers will learn new tricks in a fun way, and become immersed in the practice of event-based programming.
* Understand the logic behind creating deferreds and returning promises
* Get a structured explanation of jQuery's deferred API
* Delve into the dynamics of using deferreds
* Explore a broad collection of useful deferred recipes developed by the authors
* Gain hands-on experience by solving challenges that accompany each recipe
* Go deeper into deferreds: encounter novel abstractions and mind-bending use cases
More details
Language
English
Place of publication
Sebastopol
United States
Target group
Professional and scholarly
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 233 mm
Width: 179 mm
Thickness: 10 mm
Weight
231 gr
ISBN-13
978-1-4493-6939-2 (9781449369392)
Schweitzer Classification
Other editions
Additional editions

E-Book
12/2013
O'Reilly
€26.49
Available for download

E-Book
12/2013
O'Reilly
€21.99
Available for download
Persons
Terry hates computers but loves programming; Fluidinfo is a natural consequence of these conflicting passions. Terry was previously a postdoc in Zoology at the University of Cambridge (2004-07) where he spent time helping the WHO design part of the human influenza vaccine. He was also a part-time professor in CS at the Universitat de Pompeu Fabra (2005-06), CTO of Eatoni Ergonomics in New York (2000-04), a postdoc in Cognitive Science at UCSD (1998-99), CEO of Teclata in Barcelona (1996-98), and a postdoc and graduate fellow at the Santa Fe Institute (1992-96). He has a Ph.D. in CS from the University of New Mexico, an M.Math from the University of Waterloo, and a B.Sc. in CS from Sydney University. Nicholas is a classically trained musician, philosophy graduate, teacher, writer and software developer. He's been programming since 1984 when he taught himself BBC Basic at junior school. He currently works at Fluidinfo where he gets to do all sorts of fun and exciting things like trying to change the world of linked data. Prior to working as a developer Nicholas was a senior teacher in an inner-city state secondary school in the UK. He has extensive experience working with students of all ages and abilities and still indulges his passion for teaching and learning by helping to run the London Python Code Dojo. A graduate of the Royal College of Music (Nicholas used to play professionally) he also has an MA in Philosophy of Education and financed his MSc in Computing by writing reviews and articles for the UK edition of Computer Shopper.