Wattle Software - producers of XMLwriter XML editor
 Bookstore Home | XMLwriter Home | Search | Site Map 
XML Related
 General XML
 XSLT & Stylesheets
 XHTML
 SGML
 XML DTDs
 XML Schema
Web Development
 Web Graphics
 HTML
 Dynamic HTML
Web Services
 General Web Services
 UDDI
 SOAP
 WSDL
 Programming/Scripting 
 PHP Programming
 Perl Programming
 Active Server Pages
 Java Server Pages
 JavaScript
 VBScript
 .NET Programming
 
XMLwriter
 About XMLwriter
 Download XMLwriter
 Buy XMLwriter
XML Resources
 XML Links
 XML Training
 The XML Guide
 XML Book Samples
 

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


By Ross Harmes, Dustin Diaz
 
Image of: Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)
Pricing Details:

List Price:$44.99
You save:$8.51 (18.9%)
Your Price:$36.48
Buy Now

Book Details:

Format:Paperback, 269 pages.
Publisher:Apress 2007-12-10
ISBN:159059908X

Average Customer Rating:

4.5 4.5 out of 5 stars (11 reviews)

Editorial Reviews:

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.


Customer Reviews:

Displaying 6 to 10 of 11 total reviews (Page 2 of 3):

5 out of 5 stars This book rocks!

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!

5 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. An advanced topic that appeals to such varied audiences is tough to do, but the authors succeed admirably. In fact, I can't do such a job, so read the chapter that applies...

For JavaScript developers:
The book covers how to write good clean object oriented code in JavaScript. It introduces concepts that are not present in JavaScript along with how to simulate them. The sections on when to use a given pattern are well written.

For server side language developers:
The book covers how to implement in JavaScript the design patterns we are accustomed to. Before getting to this, there are several chapters on JavaScript idioms which are very useful. There were also a couple patterns that a server side developer might not have encountered because the server side is not so memory constrained.

For everyone:
The book also covers tradeoffs of using the patterns. I appreciated where they mention the slight performance hit and how to check/profile if it is a problem for you. All patterns were described clearly and succinctly. There were some real examples as well. At times, it is a bit code heavy - one example had 1.5 pages of implementation details that had nothing to do with the topic at end. Overall, I think the book was great. If you have a significant amount of JavaScript code, the concepts in this book are critical.

5 out of 5 stars Toughie not fluffy

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.

5 out of 5 stars A more thorough treatment of advanced JS concepts would be hard to find

This book provides one of the more thorough treatments of some of the more advanced javascript idioms/concepts - it's not aimed at the beginner - and it does have some typos (for e.g defining functions as obj.fun() { } vs obj.fun = function() {...} - and while i haven't completed reading it (it is a design patterns book after all) - I have been quite impressed with it's initial chapters (encapsulation, inheritance, singletons etc.)
Also, this book does make it easier to follow library code written using the class-based OO pattern (such as extjs and many other frameworks out there).


5 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.

Other than that, this is one of the GREATEST books about JavaScript you can find in the market, especially for those who want to know more about the JavaScript and design pattern.

More Customer Reviews:
Previous Page Next Page


Customers who bought this book were also interested in:


Pro JavaScript Techniques (Pro)


JavaScript: The Good Parts


Pro CSS and HTML Design Patterns


JavaScript Definitive Guide


Accelerated DOM Scripting with Ajax, APIs, and Libraries (Accelerated)

 

Find similar books by category...


Search for more:

Search books:  



Google
 
Web XMLwriter.net




Last updated: Wed Nov 19 7:43:06 CST 2008
© Wattle Software 2007. All rights reserved.