Pro JavaScript Design Patterns and over 360,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
Sorry!
More Buying Choices
39 used & new from $26.92

Have one to sell? Sell yours here
 
   
Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)
 
 
Start reading Pro JavaScript Design Patterns on your Kindle in under a minute.

Don’t have a Kindle? Get your Kindle here.
 
  

Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap) (Paperback)

~ (Author), Dustin Diaz (Author)
Key Phrases: prototypal inheritance, lazy loading singleton, var bicycle, Public Library, Ajax Connection Queue, Formltem Field (more...)
4.8 out of 5 stars  See all reviews (13 customer reviews)

List Price: $44.99
Price: $36.51 & this item ships for FREE with Super Saver Shipping. Details
You Save: $8.48 (19%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, November 10? Choose One-Day Shipping at checkout. Details
27 new from $26.96 12 used from $26.92

Formats

Amazon Price New from Used from
  Kindle Edition, July 4, 2008 $29.21 -- --
  Paperback, December 9, 2007 $36.51 $26.96 $26.92

Frequently Bought Together

Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap) + Pro JavaScript Techniques + JavaScript: The Good Parts
Price For All Three: $92.81

Show availability and shipping details

  • This item: Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap) by Ross Harmes

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Pro JavaScript Techniques by John Resig

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • JavaScript: The Good Parts by Douglas Crockford

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries

Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries

by Stoyan Stefanov
4.8 out of 5 stars (13)  $31.64
JavaScript: The Good Parts

JavaScript: The Good Parts

by Douglas Crockford
4.1 out of 5 stars (54)  $19.79
Pro CSS and HTML Design Patterns

Pro CSS and HTML Design Patterns

by Michael Bowers
4.6 out of 5 stars (29)  $29.69
JavaScript: The Definitive Guide

JavaScript: The Definitive Guide

by David Flanagan
4.4 out of 5 stars (290)  $31.49
Even Faster Web Sites: Performance Best Practices for Web Developers

Even Faster Web Sites: Performance Best Practices for Web Developers

by Steve Souders
4.8 out of 5 stars (8)  $23.10
Explore similar items

Editorial Reviews

Product Description

As a web developer, you’ll already know that JavaScript is a powerful language, allowing you to add an impressive array of dynamic functionality to otherwise static web sites. But there is more power waiting to be unlocked—JavaScript is capable of full object–oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can make it more powerful, more efficient, and easier to work with alone or as part of a team.

With Pro JavaScript Design Patterns, you’ll start with the basics of object–oriented programming in JavaScript applicable to design patterns, including making JavaScript more expressive, inheritance, encapsulation, information hiding, and more. With that covered, you can kick–start your JavaScript development in the second part of the book, where you’ll find detail on how to implement and take advantage of several design patterns in JavaScript, including composites, decorators, façades, adapters, and many more.

Each chapter is packed with real–world examples of how the design patterns are best used and expert advice on writing better code, as well as what to watch out for. Along the way you’ll discover how to create your own libraries and APIs for even more efficient coding.

  • Master the basics of object–oriented programming in JavaScript, as they apply to design patterns.
  • Apply design patterns to your kick–start your JavaScript development.
  • Work through several real–world examples.

What you’ll learn

  • How to apply object–oriented programming techniques in JavaScript
  • How to take advantage of inheritance, interfaces, and encapsulation and information hiding to kick–start your JavaScript development
  • How to implement several design patterns in your JavaScript projects, including factory, façade, bridge, composite, adapter, decorator, flyweight, proxy, command, observer, and chain of responsibility
  • How to make your code easier to manage in a team environment, as well as on your own
  • How to create your own libraries and APIs

Who is this book for?

This book will be an invaluable learning tool for any experienced JavaScript developer.

About the Apress Pro Series

The Apress Pro series books are practical, professional tutorials to keep you on and moving up the professional ladder.

You have gotten the job, now you need to hone your skills in these tough competitive times. The Apress Pro series expands your skills and expertise in exactly the areas you need. Master the content of a Pro book, and you will always be able to get the job done in a professional development project. Written by experts in their field, Pro series books from Apress give you the hard–won solutions to problems you will face in your professional programming career.



About the Author

Ross Harmes works as a frontend engineer in Sunnyvale, California, where he creates modular and reusable JavaScript components for Yahoo! Small Business.



Dustin Diaz is a user interface engineer for Google in Mountain View, California. He enjoys writing JavaScript, CSS, and HTML, as well as making interactive and usable interfaces to inspire passionate users.


Product Details

  • Paperback: 269 pages
  • Publisher: Apress; 1 edition (December 10, 2007)
  • Language: English
  • ISBN-10: 159059908X
  • ISBN-13: 978-1590599082
  • Product Dimensions: 9.8 x 9.1 x 0.9 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (13 customer reviews)
  • Amazon.com Sales Rank: #124,434 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #34 in  Books > Computers & Internet > Web Development > Programming > JavaScript

More About the Author

Ross Harmes
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Ross Harmes Page

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)
61% buy the item featured on this page:
Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap) 4.8 out of 5 stars (13)
$36.51
Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries
13% buy
Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries 4.8 out of 5 stars (13)
$31.64
JavaScript: The Good Parts
11% buy
JavaScript: The Good Parts 4.1 out of 5 stars (54)
$19.79
Pro JavaScript Techniques
8% buy
Pro JavaScript Techniques 4.2 out of 5 stars (26)
$36.51

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(8)
(3)
(3)

Your tags: Add your first tag
 

 

Customer Reviews

13 Reviews
5 star:
 (10)
4 star:
 (3)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.8 out of 5 stars (13 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
18 of 20 people found the following review helpful:
4.0 out of 5 stars An excellent title for experienced JavaScript developers, January 20, 2008
By James Stewart (Grand Rapids, MI, USA) - See all my reviews
(REAL NAME)   
Design patterns, and particularly their application in dynamic languages can be a controversial topic, and every now and again another round of blog posts bubbles up appalled at the way a new group of programmers have become infatuated with design patterns. Applied without care design patterns can quickly lead to over-engineered code that seems designed as much to draw on as many of the established patterns as possible as to solve the intended problem. But if applied with care, and with consideration of how a pattern applies in the context of your chosen language they can be a helpful way to draw on the wisdom of the coders that came before you, and make your code easier to understand to those who may inherit it.

Written by Dustin Diaz (of Google) and Ross Harmes (of Yahoo), Pro Javascript Design Patterns builds on experience of building complex, high profile javascript applications. That experience shows as each pattern is introduced with solid examples and sample code and then refined to provide looser-coupling, more flexibility and/or better performance.

Early on in the book I was concerned that some of the solutions could become too heavy and the early introduction of interfaces hinted at something akin to the early approaches to pattern usage in PHP, which often looked more like an attempt to turn PHP into Java than a way to use PHP's own features better. As the book goes on the usefulness of those interfaces, particularly for large development teams, becomes clear and most of those concerns are allayed, especially as the authors offer pros and cons for the use of each pattern and are clearly focussed on how these patterns can help produce more robust solutions.

Most of the patterns will have a fairly immediate impact for developers new to them, and even for those who have used them in other contexts it is helpful to see how they have been applied in JavaScript. Most modern JavaScript libraries rely on several of these patterns to abstract out handling of different browser quirks or adding new event types, and even if you rely heavily on one or more of the major libraries this guide may well help you understand their internals better.

I've sometimes been skeptical of books claiming to be targeted at an advanced target. Labels like "pro" are often handed out far too easily. But in this case it seems deserved. While the book does a good job of quickly introducing approaches to object-oriented programming in JavaScript, that's based on an assumption of a solid knowledge of the language and of OO development in at least one language. If you're a newcomer to JavaScript or just looking for a way to add a few fancy features to your web pages this isn't be book for you. But if you have some serious JavaScript development experience and are needing a way to tighten up your code to make it more modular and more maintainable, this book is well worth your time.

Disclaimer: I was sent a copy of this book for review by the publisher.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
7 of 7 people found the following review helpful:
5.0 out of 5 stars Toughie not fluffy, March 25, 2008
This book is a "JavaScript for Programmers" book. It's very detailed and advanced. I wouldn't classify it as a "JavaScript for Web Weenies" or a "JavaScript for Stupid UI Tricks" book at all. If you don't know OOP concepts in another language already, this book really might be too much for you and could frustrate you. This book is good if you are a server-side programmer and you want to know how to push JavaScript about as far as it can go (at this point). If you are a web programmer/designer with a light understanding of OOP concepts and you want to "go deep", this book could be ok, but I would try to learn OOP from another language first because this book would read better with that background knowledge. Also, I am recommending that you already know OOP from another language because you can really shoot yourself in the foot with JavaScript because it's *so* flexible and the authors prove this well! I think it's probably a good idea to know when you're going off in the weeds and JavaScript really doesn't provide many boundaries where other languages have stricter controls on what you can do.

This book shows that when used by an experienced person, JavaScript is no joke. Seriously.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
4 of 4 people found the following review helpful:
5.0 out of 5 stars This book rocks!, May 27, 2008
Harmes and Diaz bend, twist, fold and stretch the Javascript language in ways that it wasn't probably intended to ever be used and, in doing so, demonstrate just how flexible and dynamic Javascript is. They actually cover topics such as Interfaces, encapsulation, inherittance, the singleton pattern, the factory pattern, the bridge pattern, the composite pattern, the adapter pattern, the proxy pattern, the lightweight pattern and the command pattern.

Early on in the book when looking at the interface pattern, when it was suggested an implementation of this pattern with comments, I actually thought that this just wasn't going to work for me. They do, however, show a much more credible implementation of this and other patterns and, in the process, cover some of the deeper and more powerful features of the language. The examples are highlighted against specific applications. For instance, the benefits of the singleton pattern are explained through the process of creating an XHR object (an instance of the XMLHttpRequest).

I haven't finished the book yet, but it is clear that this is one to keep going back to. As someone else has already mentioned, this is not a showcase of UI tricks and will be appreciated by someone developing or extending web development frameworks or someone who just wants to write better and more extensible Javascript.

I would have liked to have seen some examples of how the patterns are used in frameworks such as Prototype/Scriptaculous and jQuery in the same vein that Olsen's "Design Patterns in Ruby" (an excellent book if you are into Ruby) illustrates patterns with code used in Rails, Ruby and other applications in the wild. Also, I found that I needed to brush up on my Javascript (bigtime) in order to keep up with this one (Resig's "Pro Javascript Techniques" and Crockford's "JavaScript: The Good Parts" are highly recommenced to that end). Then again, the Authors might have then struggled to keep this at just under 270 pages.

Highly recommended!

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars One of the best javascript books
This book is really useful for Novice javascript programmer. It covers lot of basic details with good examples.
Published 1 month ago by Bhanu Koppaka

5.0 out of 5 stars What every JS coder needs in their arsenal
This is the perfect book for any intermediate JS coder. The first part of the book discusses advanced topics like closures, object scope, prototypal inheritance, and first-order... Read more
Published 3 months ago by Colin ODell

5.0 out of 5 stars Great Design Pattern Book
When you read the book, "Pro JavaScript Design Patterns" from Ross Harmes and Dustin Diaz, it's clear that Ross and Dustin have a strong understanding of JavaScript, its... Read more
Published 5 months ago by Brian Mains

5.0 out of 5 stars the best book i've ever read about javascript OOP
the book is amazing and front-end engineer should not miss this one , it take you to the Guru level of knowledge with javascript OOP techniques and API creation world through... Read more
Published 14 months ago by Mostafa farghaly

4.0 out of 5 stars great next step book
it's a great book to learn more.....it's missing practical examples for real life.....lot of theory. Read more
Published 16 months ago by MV

5.0 out of 5 stars Required reading to advance the skill level of experienced programmers
To begin with this is not a book for the person new to JavaScript. The authors assume some knowledge of JavaScript and object oriented programming right from the start. Read more
Published 16 months ago by Harold McFarland

4.0 out of 5 stars Valuable if you do non-trivial work with JavaScript
Back in the early days Design Patterns examples mostly used C++ as language. This day Java is the typical choice, with an increasing amount of C#. Read more
Published 17 months ago by Foti Massimo

5.0 out of 5 stars Great book, highly recommend
The authors of this book, being recognized web experts in Google and Yahoo circles, are sharing an array of javascript design patterns that will empower your applications and... Read more
Published 17 months ago by Alexander Podgorny

5.0 out of 5 stars for javascript or server side language developers
"Pro JavaScript Design Pattens"is a useful read regardless of whether you have a JavaScript or server side language background. Read more
Published 19 months ago by Jeanne Boyarsky

5.0 out of 5 stars Want to be a JavaScript guru? Don't miss this one!
A bit hard to read unless you have the detailed knowledge of JavaScript and design patterns. Lack of figures to represent how things work and the idea behind all these... Read more
Published 21 months ago by H. Lan

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Textbooks for Kindle DX? 61 1 day ago
textbook scam 66 6 days ago
Amazon is a great place to buy textbooks! 35 18 days ago
Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.