Node.js: Design Patterns
2h 11mIntermediate2018-03-28
Authors

Alex Banks
Software Developer and Instructor
Course details
Design patterns encourage programming efficiency and code reuse. Learn how to use the same design patterns used in Java and C++ programming in JavaScript. This course is a look at 13 of the most popular object-oriented design patterns as applied to Node.js. Learn essential creational and structural patterns to help solve common coding challenges, while introducing best practices that will keep solutions consistent, complete, and correct. Instructor Alex Banks shows how to implement and improve these patterns so that they are optimized for the Node library.
Learning objectives
Design patterns and anti-patterns
Singleton pattern
Prototype pattern
Factory pattern
Builder pattern
Adapter pattern
Proxy pattern
Decorator pattern
Command pattern
Observer pattern
Strategy pattern
Learning objectives
Design patterns and anti-patterns
Singleton pattern
Prototype pattern
Factory pattern
Builder pattern
Adapter pattern
Proxy pattern
Decorator pattern
Command pattern
Observer pattern
Strategy pattern
Skills covered
Software DesignNode.jsJavaScript FrameworksWeb DevelopmentOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Using the exercise files
1. Overview
- 04 - What are design patterns
- 05 - Gang of Four - Design patterns
- 06 - Anti-patterns
2. Creational Patterns
- 07 - The singleton problem
- 08 - The Singletons pattern
- 09 - Singletons in Node
- 10 - The Prototype pattern
- 11 - The prototype clone method
- 12 - The Factory pattern
- 13 - The Builder pattern
- 14 - Implementing a builder
3. Structural Patterns
- 15 - The Adapter pattern
- 16 - Implementing an adapter
- 17 - The Proxy pattern
- 18 - Implementing a proxy
- 19 - The Composite pattern
- 20 - Implementing composites
- 21 - The Decorator pattern
- 22 - Implementing decorators
4. Behavioral Patterns
- 23 - Chain of responsibility
- 24 - Implementing the storage class
- 25 - The Command pattern
- 26 - Implementing commands
- 27 - Improving the conductor
- 28 - The Iterator pattern
- 29 - Implementing iterators
- 30 - The Observer pattern
- 31 - Implementing observers
- 32 - The Strategy pattern
- 33 - Implementing strategies
Conclusion
- 34 - Next steps
Related courses
- Cloud-Based Agentic AI Design Patterns
- Redefining Software Development Roles in the AI Era
- React: Design Patterns
- Software Architecture: Patterns for Developers
- Programming Foundations: Object-Oriented Design
- Learning JavaFX GUI Development
- Expert Domain-Driven Design (DDD) Implementation in .NET
- Project Management: Choosing the Right Online Tool