Learning jQuery Deferreds: Taming Callback Hell with Deferreds and Promises

Learning jQuery Deferreds: Taming Callback Hell with Deferreds and Promises

By: Terry Jones (author), Nicholas Tollervey (author)Paperback

Special OrderSpecial Order item not currently available. We'll try and order for you.


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. You'll 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

About Author

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.

Product Details

  • ISBN13: 9781449369392
  • Format: Paperback
  • Number Of Pages: 150
  • ID: 9781449369392
  • ISBN10: 1449369391

Delivery Information

  • Saver Delivery: Yes
  • 1st Class Delivery: Yes
  • Courier Delivery: Yes
  • Store Delivery: Yes

Prices are for internet purchases only. Prices and availability in WHSmith Stores may vary significantly