课程: JavaScript: Patterns

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

What are structural 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.

内容