A too long; didn't read summary of the book Learning JavaScript Design Patterns by Addy Osmani
- Bad solution to a particular problem.
- Knowledge of anti-patterns is critical for success. Once we are able to recognize such anti-patterns, we're able to refactor our code to negate them so that the overall quality of our solutions improves instantly.
Creational design patterns focus on handling object creation mechanisms where objects are created in a manner suitable for the situation we're working in.
Patterns: Constructor, Factory, Abstract, Prototype, Singleton and Builder
Structural patterns are concerned with object composition and typically identify simple ways to realize relationships between different objects.
Patterns: Iterator, Mediator, Observer and Visitor
Behavioral patterns focus on improving or streamlining the communication between disparate objects in a system.
Patterns: Iterator, Mediator, Observer and Visitor
- Constructor Pattern
- Module Pattern
- Revealing Module Pattern
- Singleton Pattern
- Observer Pattern
- Mediator Pattern
- Prototype Pattern
- Command Pattern
- Facade Pattern
- Factory Pattern
- Mixin Pattern
- Decorator Pattern
- Flyweight Pattern
Don't be shy! Lets make the docs better to help out our other fellow devs to learn design patterns in JavaScript.
Please do review the book first before making any PR fixes/additions to the master
. Thanks!