Skip to main content
  • Book
  • © 2008

Pro JavaScript Design Patterns

Apress
  • JavaScript is hot, and design patterns in JavaScript are a much sought after topic amongst more experienced web developers

  • There isn't a direct competitor to this book, although some books have touched on the topic

  • Gives the reader all they need to know to implement several design patterns, along with real world examples

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (17 chapters)

  1. Front Matter

    Pages i-xxvi
  2. Object-Oriented JavaScript

    1. Front Matter

      Pages 1-1
    2. Interfaces

      Pages 11-23
    3. Inheritance

      Pages 41-63
    4. The Singleton Pattern

      Pages 65-82
    5. Chaining

      Pages 83-90
  3. Design Patterns

    1. Front Matter

      Pages 91-91
    2. The Factory Pattern

      Pages 93-108
    3. The Bridge Pattern

      Pages 109-123
    4. The Composite Pattern

      Pages 125-140
    5. The Facade Pattern

      Pages 141-148
    6. The Adapter Pattern

      Pages 149-158
    7. The Decorator Pattern

      Pages 159-177
    8. The Flyweight Pattern

      Pages 179-195
    9. The Proxy Pattern

      Pages 197-214
    10. The Observer Pattern

      Pages 215-223
    11. The Command Pattern

      Pages 225-244

About this book

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

About the authors

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.

Bibliographic Information

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access