From the course: JavaScript: Patterns
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
What are structural patterns? - JavaScript Tutorial
From the course: JavaScript: Patterns
What are structural patterns?
- Have you ever worked on a project where the code felt a bit disorganized and unstructured, where you could barely make heads and tails in between each files, and what was their purpose to the larger scheme of the application? We've all been there, and it can be a big mess to find a specific function when the code lacks organization. Well, this is where structural pattern come into play. If the creational patterns are focused on the creation of new code, the structural pattern are focused on how to properly organize your code. And this is what we'll spend this chapter on. We'll explore the module pattern, mixins, the facade, flyweight, and decorator patterns. Then we'll spend some time on the MVC, MVP, and MVVM patterns. These are about how you organize the structure of the larger application. So without further ado, let's get started.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
What are structural patterns?55s
-
(Locked)
Module pattern5m 54s
-
(Locked)
Mixins pattern4m 32s
-
(Locked)
Facade pattern1m 43s
-
(Locked)
Flyweight pattern1m 18s
-
(Locked)
Decorator pattern2m 16s
-
Model-View-Controller (MVC) pattern1m 21s
-
Model-View-Presenter (MVP) pattern1m 17s
-
(Locked)
Model-View-ViewModel (MVVM) pattern1m 25s
-
(Locked)
-
-