Hi there! This is the repo containing the code examples from my 10 must-know design patterns for JavaScript Developers talk.
First of all, leave a star in this repo ⭐️
You'd also check out the slides presentation and soon I'll update this repo with the video presenting all the tips.
Each folder represents a step-by-step refactoring of an application to use the Design Patterns I show in this talk.
- api - This is the API required to run all projects
- app-pt00-initial-code - Initial code with bad practices
- app-pt01-n-tier-factory-dependency-injection - splits the application code into different responsibilities and uses dependency injection
- app-pt02-abstract-factory-builder - uses the abstract factory to create an application that runs in both terminal and web and uses the builder design pattern to build the CLI UI
- app-pt03-test-data-builder - uses the test data builder design pattern to create modular tests
- app-pt04-observer-decorator-observer - uses the observer design pattern to send analytics and log and also uses the decorator pattern to measure performance in both web and node.js app
- app-pt05-async-iterator-stream - uses the iterator design pattern to consume streams and render data on demand
Consider mentioning me on twitter, linkedin or instagram about the experiments and ideas this repo may have brought to you.
Enjoy!