Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by applying classical and modern design patterns to the language. If you want to keep your code efficient, more manageable, and up-to-date with the latest best practices, this book is for you.

Subscriber Reviews

Average Rating: 3.2857142857142856 out of 5 rating Based on 7 Ratings

"I still reference this frequently." - by 5imian on 15-FEB-2014
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I recall when this book was being composed. It was being released, at the time, online (at the encouragement of another writer and speaker, Rebcca Murphy).

This book isn't a lone effort. Its been curated and really given the gold star of approval by the Javascript community as a whole. If you have a knowledge, already of design patterns in other languages, like c#, this is extremely effective as being a sort of Rosetta stone to understanding a pure Js implementation.

One of the best parts, for example, is the section where the module pattern is shown in use in libraries like Dojo and Ext Js. Another reviewer complained that the book has no practical knowledge -yet there it is. Now you understand a core design principle that effective libraries are actually using, right now in YOUR code.

This is not a 'how to' book. It is a reference book.  Its very clearly titled 'Design Patterns'. Do not expect instructions on how to make a slider, or how to make a simple jQuery webpage. This is a lens into understanding core design principles in a JavaScript context - and its the best resource I've seen for exactly that.

Everyone at my shop has read or is recommended to read this. Its basically required reading. I also recommend this to my usergroup, along with Javascript Patterns by Stefanov. I still reference this frequently when doing code reviews and analysis.

If you consider yourself a professional javascript programmer, you need to *know* this stuff, and really internalize it. This book is legit. Seriously, read it.

Report as Inappropriate

"Good introduction design patterns in JavaScript" - by Gwyn on 17-APR-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I'd recommend this book to reasonably strong JavaScript developers who are looking to level-up their application design. It is by no means a definitive guide and didn't feel to follow a format that I'd expect for a 'learning' type title, but there's enough to get you started along with references for further information. I often find that more advanced titles such as this sometimes lose me, and that was true for this title too. That said, I'll be returning to it for reference as I further develop my skills.
Report as Inappropriate

"No real examples" - by jjovanw on 16-JAN-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
If you're looking to get some examples explained to you, then don't look here.  This is not the book.  Instead of practical hands-on, there are very short chapters full of references to people that are not relevant to actually doing some work.
Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for Learning JavaScript Design Patterns

  • Catalog Page

Visit the errata page for Learning JavaScript Design Patterns

  • Errata