-
Notifications
You must be signed in to change notification settings - Fork 1
javascript design pattern
Sébastien LUCAS edited this page Oct 26, 2016
·
5 revisions
- The javascript book design pattern https://addyosmani.com/resources/essentialjsdesignpatterns/book/#decoratorpatternjavascript
- 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)