-
How do traditional design patterns translate to JavaScript? Find out in this course. Enhance your code by mastering key creational, structural, and behavioral design patterns.
For the past two decades, programmers have structured both their code and their conversations about code around the patterns first described in Design Patterns, the classic Gang of Four book. JavaScript programmers have participated in these conversations, but the patterns discussed mostly fit in the world of orthodox object-oriented programming. In this course, Emmanuel Henri explains how these patterns fit with JavaScript. He demystifies the purpose of some of the most common patterns, providing code examples along the way. Learn about key creational, structural, and behavioral design patterns, and how you can apply each of them in your JavaScript code.
Overview
Syllabus
-
Introduction
- JavaScript design patterns
- What you should know
- What is a pattern?
- Setting up your base project
- Functions as first-class citizens
- What is a callback and its role?
- What are creational patterns?
- Class design pattern
- Constructor pattern
- Singleton pattern
- Factory pattern
- Abstract factory pattern
- What are structural patterns?
- Module pattern
- Mixins pattern
- Facade pattern
- Flyweight pattern
- Decorator pattern
- Model-View-Controller (MVC) pattern
- Model-View-Presenter (MVP) pattern
- Model-View-ViewModel (MVVM) pattern
- What are behavioral patterns?
- Observer pattern
- State pattern
- Chain of responsibility
- Iterator pattern
- Strategy pattern
- Memento pattern
- Mediator pattern
- Command pattern
- Next steps