CHAPTER 8

image

Design Patterns: Architectural

A number of the creational, structural, and behavioral design patterns that we’ve looked at in the past three chapters can be combined together to form architectural patterns that can help solve specific problems in larger code bases. In this chapter, we’ll look at three of the most common architectural patterns that apply to JavaScript applications, together with examples for each.

The Model-View-Controller (MVC) Pattern

The Model-View-Controller (MVC) pattern is one that allows the separation of code in a JavaScript applicaton into three distinct parts: the Model, which groups together code related to ...

Get Pro JavaScript Development: Coding, Capabilities, and Tooling now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.