Jump to ratings and reviews
Rate this book

Async JavaScript

Rate this book
JavaScript is a single-threaded language living in a multimedia, multi-tasking, multi-core world. Even experienced JavaScripters sometimes find themselves overwhelmed as complex apps grow into a tangled web of callbacks.

With Async JavaScript, you'll learn

Event scheduling
The PubSub pattern
Promises and Deferred objects
Flow control with Async.js
Recipes for common async scenarios
Multi-threading with Web Workers
AltJS languages
and more, with examples tailored to jQuery and Node.js.

104 pages, ebook

First published March 20, 2012

22 people are currently reading
344 people want to read

About the author

Trevor Burnham

6 books6 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
61 (29%)
4 stars
93 (45%)
3 stars
42 (20%)
2 stars
6 (2%)
1 star
2 (<1%)
Displaying 1 - 21 of 21 reviews
Profile Image for Brian.
668 reviews291 followers
July 28, 2012
(4.0) Very narrowly focused, but good for it, and very informative

Burnham just bites off one piece of JavaScript programming that commonly leads us to write horrible, horrible code...yet is also one of the greatest assets of the language: asynchronicity without concurrency. So a very well chosen topic, and he develops it well. I learned a lot from this, usually something new on each page. He could develop a few of his examples more (or rather, explain them more thoroughly): there was a fair amount of figuring-it-out to do on your own. Also liked some of his wackier cultural references (e.g. "Bo Knows" manages to come up in a book published in the 2010s? Nutty!).

Highly recommended once you've done some legitimate programming in JavaScript. Good litmus test is whether you've found yourself nesting callbacks two levels deep. If you haven't and you've just been doing easy Ajax stuff in jQuery, you're not going to need this (yet).
Profile Image for Brian.
2 reviews
June 5, 2012
It was a relatively short book and it reads easy. The author starts by explaining how asynchronous javascript works. Throughout the book, he writes about various techniques (e.g. how to use promises/deferreds, flow control with async.js, web workers, etc.) on async programming in javascript. My previous perception on async programming that it makes code ugly (i.e. too many nesting) is gone now. It will take time to get used to this style of programming, but it opened my eyes on another possibility.
Profile Image for Dave.
14 reviews
July 9, 2012
I agree with Brian Park's review. Yes, it will take time to get used to this style of programming. The reward is that the techniques introduced in this book will allow for simpler (and yet much more powerful), scalable use of the JavaScript language. Thanks much to Trevor Burnham for this timely work.
Profile Image for Dan.
232 reviews172 followers
July 10, 2012
Excellent resource for cutting-edge JavaScript. Lots of up-to-date information on important patterns and libraries we could (and should!) be using. Focuses on various asynchronous patterns, including events, promises, and web workers. Absolutely recommended as the next "must-read" JavaScript book for those doing advanced work.
Profile Image for Brian.
668 reviews291 followers
February 15, 2013
(4.5) The pragprog edition is much improved!

Really like the introductory sections that really dive into JS event queuing, and improved all around. Strongly recommend this for anyone doing real JS development beyond 3-liner jQuery click-handling.

Worth re-reading even if you read the original edition!
Profile Image for Mohammad Islam.
48 reviews5 followers
May 11, 2017
Concise and compact book with focus on its topic. Thanks to it I have a better understanding of "no interrupt" model of single threaded javascript.

Though I didn't comprehend distributed event and promise chapter fully (not a native jquery user) I did manage to introduce myself to few interesting topics:

async.queue(), web workers/cluster, async script loading and taming js into a sync language such as python using library like TameJS.
Profile Image for Samar Shaikh.
55 reviews3 followers
February 17, 2020
Could not complete it as I felt it is very outdated compared to the present style of writing code, it was published in 2012, maybe it would have been useful 2-3 years ago but not now.
Profile Image for Dan.
232 reviews172 followers
September 26, 2013
Just read the updated edition, even better than the first! Chapters 1 and 6 seem like mostly new material, and Chapter 1 does a great job of setting up how events work in JavaScript in general, and filled in some holes in my knowledge.

Still one of my favorite and most up-to-date JS books, and I recommend everyone read it, and if you read the old edition, read the new chapters!

(I did read the new paperback edition, sorry I am lazy and did not create a new edition for it, though it shares this cover...)
379 reviews10 followers
February 23, 2013
Potrebbe essere il riferimento definitivo alla programmazione asincrona in Javascript. Purtroppo l'argomento è abbastanza complesso, e, pur elencando i vari sistemi utilizzabili sia lato server (Node) che lato client (Worker), non li approfondisce abbastanza da renderli utilizzabili.

La mancanza cronica di esempi pratici non aiuta la comprensione. Gli esempi di codice presenti si limitano a "ecco, se fate così, la sequenza di esecuzione è questa".
Profile Image for Philip Woods.
1 review
March 13, 2013
It is a short but relatively informative introduction to asynchronous JavaScript. It covers JavaScript's single-threaded event model, what a "PubSub" is and how to roll your own, good patterns for writing asynchronous error handlers, handling flow control with Async.js, using Web Workers, and asynchronous script-loading with Require.js. It is less than 100 pages, packed with content and covers its promised topic well.
Profile Image for Michael Koltsov.
110 reviews69 followers
September 5, 2014
A good practical book for anyone taming the asynchronous nature of Javascript. It could be read in a few days, but the concepts it teaches you are invaluable.

May be it's a bit outdated and it makes a lot of accents on Backbone and Node.

I've enjoyed reading it, the book is written nicely and it's simple to read.
Profile Image for Georgi.
45 reviews
December 13, 2012
Provides a relatively short, yet comprehensive overview of the current state of the async operations in JavaScript. It can be useful to ActionScript developers too, as the ECMAScript family shares very similar issues.

I wish there were a few more examples in this book.
Profile Image for Omar Delarosa.
15 reviews
July 15, 2014
For someone coming to (modern?) browser JavaScript and Node.js from server-side languages like Ruby and Python, this is an amazing introduction to the async libraries out there and the application design patterns associated with them.
Profile Image for Joel.
22 reviews4 followers
February 3, 2013
Good info on events and how to try to avoid too much callback mess in JavaScript. I like that it is quite detailed on events.
Profile Image for Kevin McDermott.
2 reviews
Read
March 22, 2013
Small and light, enjoyable to read.

Maybe a little too light, this could've been two chapters in a bigger book...
6 reviews
September 26, 2015
I think there is only one book for async javascript and it's this one, and I found it very useful even if it's 3 years old.
Displaying 1 - 21 of 21 reviews

Can't find what you're looking for?

Get help and learn more about the design.