Design Patterns
Learn the classic design patterns through realistic TypeScript examples: what each one is for, when it helps, when it is over-engineering, and the modern alternatives that often replace it.
What you'll learn
- Explain what design patterns are, the Gang of Four categories and the principles behind them.
- Apply creational patterns such as Factory, Builder and Dependency Injection, and recognise when Singleton hurts.
- Use structural patterns such as Adapter, Decorator, Facade, Proxy and Composite on realistic code.
- Model behaviour with Strategy, Observer, Command, State and Chain of Responsibility, including function-based alternatives.
- Judge when a pattern is over-engineering and spot common anti-patterns and code smells.
- Recognise and name patterns confidently in code reviews and interviews.