TLDR-Learning-JS-Design-Patterns-by-Addy-Osmani
TLDR-Learning-JS-Design-Patterns-by-Addy-Osmani copied to clipboard
A TL;DR for the book "Learning JavaScript Design Patterns" by Addy Osmani
TLDR-Learning-JS-Design-Patterns-by-Addy-Osmani
A too long; didn't read summary of the book Learning JavaScript Design Patterns by Addy Osmani
Anti-Patterns
- 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.
Categories Of Design Pattern
Creational
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
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
Behavioral patterns focus on improving or streamlining the communication between disparate objects in a system.
Patterns: Iterator, Mediator, Observer and Visitor
Design Patterns
- 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
Contributing
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!