A complete guide about desing patterns in Node JS
Elments of reusable Object-Oriented Software, by Erich Gamma, Richard Helm, Ralph Jhonson and John Vlissides, populary Known as Gang of Four (GoF).
Reusable Solution | |
IDENTIFY A PROBLEM | SOLVE THE PROBLEM |
A design pattern:
- Must have a name.
- Must define a problem.
- Must provide a solution.
- Define consequences of implmenting the solution.
- We can achieve optimun granularity.
- Help us to identify a problem and presents a tested solution.
- Developers and consumers benefit from a clean instance and documentation that promotes sharing code between teams.