Learn how to use common design patterns in Node.js to write better JavaScript code.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- Using the exercise files
- What are design patterns?
- Gang of Four: Design patterns
- Anti-patterns
- The singleton problem
- The Singletons pattern
- Singletons in Node
- The Prototype pattern
- The prototype clone method
- The Factory pattern
- The Builder pattern
- Implementing a builder
- The Adapter pattern
- Implementing an adapter
- The Proxy pattern
- Implementing a proxy
- The Composite pattern
- Implementing composites
- The Decorator pattern
- Implementing decorators
- Chain of responsibility
- Implementing the storage class
- The Command pattern
- Implementing commands
- Improving the conductor
- The Iterator pattern
- Implementing iterators
- The Observer pattern
- Implementing observers
- The Strategy pattern
- Implementing strategies
- Next steps
Taught by
Alex Banks