This repo is about javascript design patterns, their implementations and applications.
- The inforamtion used here is based on the following book: [Javascript Design Patterns by Addy Osmani] (http:https://addyosmani.com/resources/essentialjsdesignpatterns/book/).
- Anything here is my understanding of the design patterns.
There are three types of design patterns.
-
Creational design patterns : These are concerned with creating objects. Some examples of creational design patterns:
- Consructor.
- Factory.
- Abstract.
- Protoype.
- Singleton.
- Builder.
-
Structural Design Patterns : they are concerned about the composition of a specific object within a system and how changing that object would effects other objects/units in the system. Examples:
- Decorator.
- Facade.
- Flyweight,
- Adapter.
- Proxy.
-
Behavioral Design Patterns : they're concenred with the communination between objects. Examples:
- Iterator.
- Mediator.
- Observer.
- Visitor.