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?

What are structural patterns? - JavaScript Tutorial

From the course: JavaScript: Patterns

Start my 1-month free trial

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.

Contents