Design-Patterns-In-TypeScript
Design-Patterns-In-TypeScript copied to clipboard
Design-Patterns-In-TypeScript
Design Patterns In TypeScript
This repository focuses on the 23 famous GoF (Gang of Four) Design Patterns implemented in TypeScript.
It is supplementary to my book titled Design Patterns In TypeScript

https://www.amazon.com/dp/B0948BCH24
https://www.amazon.co.uk/dp/B0948BCH24
https://www.amazon.in/dp/B094716FD6
https://www.amazon.de/dp/B0948BCH24
https://www.amazon.fr/dp/B0948BCH24
https://www.amazon.es/dp/B0948BCH24
https://www.amazon.it/dp/B0948BCH24
https://www.amazon.co.jp/dp/B0948BCH24
https://www.amazon.ca/dp/B0948BCH24
https://www.amazon.com.au/dp/B094716FD6
(ASIN : B0948BCH24 / B094716FD6)
and courses on Udemy and YouTube (Channel membership required)
Course Access
There are 3 possible ways to access the video content in this course,
- Udemy : https://www.udemy.com/course/design-patterns-typescript/?referralCode=6384C079FB0A503DB9D9
- YouTube Membership : https://www.youtube.com/channel/UCmUILI2AWt2MSUgPlZwFdOg/join
- Paperback/Kindle : https://www.amazon.com/dp/B0948BCH24 : (ASIN : B0948BCH24 / B094716FD6)
TIP
Design Pattern In TypeScript (Paperback/Kindle) includes Video Access Codes to view videos for FREE from the official documentation website at https://sbcode.net/typescript/
TIP
Get Udemy Discount Coupons at https://sbcode.net/coupons
Setup Project
git clone https://github.com/Sean-Bradley/Design-Patterns-In-TypeScript.git
cd Design-Patterns-In-TypeScript
npm install -g typescript
npm install
tsc -p ./src
# run each pattern tutorial separately, e.g,
node ./dist/factory/factory-concept.js
node ./dist/factory/client.js
Overview
A Design Pattern is a description or template that can be repeatedly applied to a commonly recurring problem in software design.
A familiarity of Design Patterns will be very useful when planning, discussing, managing and documenting your applications from now on and into the future.
Also, throughout the book, as each design pattern is discussed and demonstrated using example code, I also introduce new TypeScript coding concepts with each new design pattern. So that as you progress through the book and try out the examples, you will also get experience and familiarity with some finer details of programming with TypeScript.
So, in the book, you will learn about these 23 Design Patterns,
- Creational
- Factory
- Abstract Factory
- Builder
- Prototype
- Singleton
- Structural
- Decorator
- Adapter
- Facade
- Bridge
- Composite
- Flyweight
- Proxy
- Behavioral
- Command
- Chain of Responsibility
- Observer Pattern
- Interpreter
- Iterator
- Mediator
- Memento
- State
- Strategy
- Template Method
- Visitor
Pattern Types
... Refer to Book or Design Patterns in TypeScript website to read textual content.
Class Scope and Object Scope Patterns
... Refer to Book or Design Patterns in TypeScript website to read textual content.