Pro JavaScript Design Patterns

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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 object-oriented 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

Author(s): Ross Harmes, Dustin Diaz (auth.)
Edition: 1
Publisher: Apress
Year: 2008

Language: English
Pages: 269
Tags: Programming Techniques

Front Matter....Pages i-xxvi
Front Matter....Pages 1-1
Expressive JavaScript....Pages 3-10
Interfaces....Pages 11-23
Encapsulation and Information Hiding....Pages 25-40
Inheritance....Pages 41-63
The Singleton Pattern....Pages 65-82
Chaining....Pages 83-90
Front Matter....Pages 91-91
The Factory Pattern....Pages 93-108
The Bridge Pattern....Pages 109-123
The Composite Pattern....Pages 125-140
The Facade Pattern....Pages 141-148
The Adapter Pattern....Pages 149-158
The Decorator Pattern....Pages 159-177
The Flyweight Pattern....Pages 179-195
The Proxy Pattern....Pages 197-214
The Observer Pattern....Pages 215-223
The Command Pattern....Pages 225-244
The Chain of Responsibility Pattern....Pages 245-262
Back Matter....Pages 263-269