Switch branches/tags
Nothing to show
Pull request Compare This branch is 170 commits behind shichuan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
design-patterns
function-patterns
general-patterns
jquery-patterns
README.md

README.md

#JavaScript Patterns

Common JS Patterns based on the ideas of Stoyan Stefanov and many others.

##Design Patterns

###Creational

  • Abstract factory
  • Builder (added)
  • Factory method (added)
  • Prototype
  • Singleton (added)

###Structural

  • Adapter
  • Bridge
  • Composite
  • Decorator (added)
  • Facade (added)
  • Flyweight
  • Proxy (added)

###Behavioral

  • Chain of responsibility (added)
  • Command (added)
  • Interpreter
  • Iterator (added)
  • Mediator (added)
  • Memento
  • Observer (added)
  • State
  • Strategy (added)
  • Template method
  • Visitor

##Function Patterns

###API patterns

###Initialization patterns

###Performance patterns

  • Memoization
  • Self-defining functions