From the course: Software Architecture: Patterns for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Model-view-controller (MVC)

Model-view-controller (MVC)

From the course: Software Architecture: Patterns for Developers

Start my 1-month free trial

Model-view-controller (MVC)

- [Narrator] The Model-View-Controller pattern, or MVC, is a user interface pattern invented in the late seventies. In MVC, there are three distinct responsibilities: model, view, and controller. The model is where the data of the application is managed. It receives input from the controller. The controller is responsible for receiving user input and passing it to the model in a way that the model will understand. Finally, the view is responsible for presenting the model to the user. MVC pattern is a great pattern for the web. Browser sends inputs to the controllers and receives views to display to the user. The advantages of an MVC pattern are a clean separation of concerns. This means that the three components have clearly defined responsibilities. It also enables teams to work on these separate concerns in parallel. For example, one developer could be writing the view while another works on the model and yet…

Contents