Skip to content

adrianlemess/design-patterns-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design patterns

In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.

The GoF (Ganf of four) patterns are implemented in JavaScript.

Run

Install dependencies:

npm install

To run in dev with nodemon:

npm run dev

To start without nodemon

npm start

Categories

Creational design patterns

These design patterns are all about class instantiation. This pattern can be further divided into class-creation patterns and object-creational patterns. While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation effectively to get the job done.

Structural design patterns

These design patterns are all about Class and Object composition. Structural class-creation patterns use inheritance to compose interfaces. Structural object-patterns define ways to compose objects to obtain new functionality.

Behavioral design patterns

These design patterns are all about Class's objects communication. Behavioral patterns are those patterns that are most specifically concerned with communication between objects.

Credits

https://sourcemaking.com/design_patterns https://github.com/diegopacheco/java-design-patterns

License

This project is licensed under the terms of the MIT license.

About

Repo with design patterns in NodeJS using TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published