Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

JavaScript: Patterns

via LinkedIn Learning

Overview

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.

Syllabus

Introduction
  • JavaScript design patterns
  • What you should know
1. Introduction
  • What is a pattern?
  • Setting up your base project
  • Functions as first-class citizens
  • What is a callback and its role?
2. Creational Patterns
  • What are creational patterns?
  • Class design pattern
  • Constructor pattern
  • Singleton pattern
  • Factory pattern
  • Abstract factory pattern
3. Structural Patterns
  • 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
4. Behavioral Patterns
  • What are behavioral patterns?
  • Observer pattern
  • State pattern
  • Chain of responsibility
  • Iterator pattern
  • Strategy pattern
  • Memento pattern
  • Mediator pattern
  • Command pattern
Conclusion
  • Next steps

Taught by

Emmanuel Henri

Reviews

Start your review of JavaScript: Patterns

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.