Learning jQuery Deferreds - Terry Jones

Learning jQuery Deferreds

Terry Jones

出版时间

2014-01-06

ISBN

9781449369392

评分

★★★★★
书籍介绍

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

Terry Jones is currently CTO of Fluidinfo, which he founded in 2007. He also works on virus discovery in the Zoology department at the University of Cambridge. Before founding Fluidinfo, he was a postdoc in Zoology at Cambridge (2004-07) where he spent time helping the WHO design part of the human influenza vaccine. He was a part-time professor in CS at the Universitat de Pompe...

(展开全部)

用户评论
虽然很薄,但是信息量很足
需求才是阅读的动力,以目前我遇到的问题来说远用不了deferred的巨大能力。先掌握基础部分,日后对异步编程有更深入了解后再返回查阅。
收藏