Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Design Patterns applied to Javascript code.

branch: master
Octocat-spinner-32 Adapter Fix typo errors. November 24, 2011
Octocat-spinner-32 Chaining Added new Patterns that are exclusive of Javascript. December 07, 2011
Octocat-spinner-32 Command Fix Issue #1 Displaying code in index.html files October 11, 2011
Octocat-spinner-32 Composite Fix typo errors. November 24, 2011
Octocat-spinner-32 CompositeIterator Fix typo errors. November 24, 2011
Octocat-spinner-32 Compound Fix typo errors. November 24, 2011
Octocat-spinner-32 Decorator Fix Issue #1 Displaying code in index.html files October 11, 2011
Octocat-spinner-32 Facade Fix typo errors. November 24, 2011
Octocat-spinner-32 Factory Added missing files November 25, 2011
Octocat-spinner-32 Iterator Fix typo errors. November 24, 2011
Octocat-spinner-32 Lazy Added new Design Patterns in README.md. December 07, 2011
Octocat-spinner-32 MVC Fix typo errors. November 24, 2011
Octocat-spinner-32 Module Revealed Added new Patterns that are exclusive of Javascript. December 07, 2011
Octocat-spinner-32 Module Added new Patterns that are exclusive of Javascript. December 07, 2011
Octocat-spinner-32 Namespace Added new Patterns that are exclusive of Javascript. December 07, 2011
Octocat-spinner-32 Nullify Update Nullify/examples/Background_Links.txt August 10, 2012
Octocat-spinner-32 Observer Fix typo errors. November 24, 2011
Octocat-spinner-32 Proxy Fix Issue #1 Displaying code in index.html files October 11, 2011
Octocat-spinner-32 Singleton Fix typo errors. November 24, 2011
Octocat-spinner-32 State Fix typo errors. November 24, 2011
Octocat-spinner-32 Strategy Fix mistaken assignment of behaviours. Thanks to Matthew Shonkwiler f… July 30, 2012
Octocat-spinner-32 Template Fix typo errors. November 24, 2011
Octocat-spinner-32 Try-Finally Modified Nullify with examples and links to be more confident. June 22, 2012
Octocat-spinner-32 css Fix typo errors. November 24, 2011
Octocat-spinner-32 img Fix Issue #1 Displaying code in index.html files October 11, 2011
Octocat-spinner-32 js Fix typo errors. November 24, 2011
Octocat-spinner-32 README.md Update README.md April 12, 2014
README.md

Design Patterns in Javascript

This will be a repository of how to use the Design Patterns from Gang of Four in your applications with Javascript.

Update:

Added new Design Patterns exclusive from Javascript. Added changes to index.html. Now you can check the code to be executed and the execution without open the console. Thanks -adamnbowen-

Design Patterns that you can find in this repository:

  • Adapter
  • Command
  • Composite
  • Iterator
  • Composite Iterator
  • Decorator
  • Facade
  • Factory
  • MVC
  • Observer
  • Proxy
  • Singleton
  • State
  • Strategy
  • Template
  • Compound (Use some design patterns together to solve a problem)
  • Chaining
  • Lazy
  • Module
  • Module Revealed
  • Namespace
  • Nullify
  • Try-Finally

This repository contains a folder by each design pattern.

Inside these folders you can found, in some of them, other folders with numbers . This folders are the different steps to follow to arrive to the final resolution of the problem. You will understand it better if you have one copy of the book I recomend you before.

Do you want to collaborate?

All constructive comments are welcome. I promise I will answer everyone.

Agreements

Head First Design Patterns

Pro Javascript Design Patterns

Something went wrong with that request. Please try again.