Common programming patterns in JS implementation.
Project is run in node terminal: to execute a specific pattern run node ${patternDirectoryName}
.
Patterns covered:
- Module
- Factory - Abstract Factory (Абстрактна Фабрика), Factory Method (Фабричний Метод) in Design Patterns — easier than simple
- Facade - Facade (Фасад) in Design Patterns — easier than simple
- Decorator - Decorator (Декоратор) in Design Patterns — easier than simple
- Observer - Observer (Спостерігач) in Design Patterns — easier than simple
Patterns to cover:
- PubSub (publish/subscribe)
- Singleton - Singleton (Одинак) in Design Patterns — easier than simple
- Constructor
- Strategy - Strategy (Стратегія) in Design Patterns — easier than simple
Techniques covered:
Techniques to cover:
Note that any pattern can bring over complexity to your code if used unnecessarily.
Project is based on Monster Lessons online JS lessons, Refactoring Guru: the one-man band behind - Alexander Shvets and Design Patterns — easier than simple book by Andriy Buday.