07 Prove
Model-View-Controller Pattern
Objectives
Learn about the Model-View-Controller (MVC) pattern.
Introduction
The Model-View-Controller Pattern (MVC) is one of the most-used architectural patterns in modern software development (especially in web development). There are several slight variations of this pattern, such as Model-View-Presenter (MVP), Model-View-View Model (MVVM), and others.
Despite the different names, they are all basically the same. In each, you are separating the code responsible for the UI (the View) from the code responsible for storing data (the Model), then you have an intermediate layer (the Controller) that connects the two.
Assignment
-
Read this overview of the MVC pattern.
-
Read Apple's take on the MVC Pattern.
-
Read Microsoft's take on the MVC pattern.
-
Read this StackOverflow post about how MVC (technically the MVP variant) is used in Android.
-
Read this follow-up post about using MVC in modern Android development.