Skip to content

javascript design pattern

Sébastien LUCAS edited this page Oct 26, 2016 · 5 revisions

Design Patterns

  • Facade Simplifying a complex system, API, with a new facade, more easy to use api Ex: jquery relative to DOM API
  • Revealing Module pattern Ex: The service public method in angular js / The way to reveal to the exterior world which methods are available including changing their naming
  • Singleton One unique instance of a class. When a instance exist already instead of creating a new one we return a reference to the existing one.
  • Factory Not a direct object creation trough new keyword but a guided creation in a way defined in the factory (my implementation of similar yet different controllers)

WIKI by Sébastien Lucas CEO & Funder or Bricks

Clone this wiki locally