Skip to content

Common programming patterns in JS implementation

Notifications You must be signed in to change notification settings

NtonBala/patterns-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patterns

Common programming patterns in JS implementation.

Project is run in node terminal: to execute a specific pattern run node ${patternDirectoryName}.

Patterns covered:

  1. Module
  2. Factory - Abstract Factory (Абстрактна Фабрика), Factory Method (Фабричний Метод) in Design Patterns — easier than simple
  3. Facade - Facade (Фасад) in Design Patterns — easier than simple
  4. Decorator - Decorator (Декоратор) in Design Patterns — easier than simple
  5. Observer - Observer (Спостерігач) in Design Patterns — easier than simple

Patterns to cover:

  1. PubSub (publish/subscribe)
  2. Singleton - Singleton (Одинак) in Design Patterns — easier than simple
  3. Constructor
  4. Strategy - Strategy (Стратегія) in Design Patterns — easier than simple

Functional JS

Techniques covered:

  1. Mixins

Techniques to cover:

  1. Currying
  2. curry function

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.

About

Common programming patterns in JS implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published