Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)
- Media: Book (Paperback, 269 pages)
- ISBN: 159059908X
- Publisher: Apress
- Release Date: Dec 10, 2007
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.
Related Titles
- Beginning JavaScript with DOM Scripting and Ajax: From Novice to Professional
- Pro JavaScript Techniques
- Pro DOM Scripting with Ajax, APIs, and Libraries
- Practical JavaScript , DOM Scripting, and Ajax Projects
great next step book
It's not begginer book........It's great for large projects, applications.
This is great for frontend engineers and software engineers.
I would recommend JavaScripts Good Parts in addition to this, it could help with coding standards....
Unfortunatelly, there is no single Javascript book.
Many of them are old and lousy......
As UI/Front End Developer, it's nice to have a book like this. it's very helpfull for sure.
What's missing, HOW TO - the connection to real Javascript frameworks, like YUI, JQuerry, Mootools, Prototype, Dojo, etc, etc, etc.
Required reading to advance the skill level of experienced programmers
For each pattern discussed they provide background information on the problem to be resolved, example coding, and when to use it. I appreciated this detail in helping me to fully understand not only when a pattern could be used to benefit a project but also when it might not be the most appropriate way. While JavaScript has always been known for its flexibility these authors show how a creative person can exploit the language's flexibility.. The patterns themselves represent pretty common ones in other languages but the way they were implemented in JavaScript was enlightening.
This is an excellent guide and reference for high-level JavaScript programming on large projects maintained by multiple programmers. Pro JavaScript Design Patterns is highly recommended for experienced object oriented programmers who want to add this to their knowledge base.
Valuable if you do non-trivial work with JavaScript
Great book, highly recommend
This book rocks!
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!







