At a glance of MVC and MVP

The MVC pattern is a UI presentation pattern that generally focuses on separating the UI (View) from its business layer (Model). The pattern separates responsibilities across three components:
  1. The view is responsible for rending UI elements 
  2. The controller is responsible for responding to UI actions,
  3. The model is responsible for business behaviors and state management. 
In most implementation all three components can directly interact with each other and in some implementations the controller is responsible for determining which view to display this is knpwn as front controller pattern

The MVP pattern is a UI presentation pattern based on the concepts of the MVC pattern. The pattern separates responsibilities across four components:
  1. The view is responsible for rending UI elements, the view interface is used to loosely couple the presenter from its view.
  2. The presenter is responsible for interacting between the view/model.
  3. The model is responsible for business behaviors and state management. In  The view interface and service layer are commonly used to make writing unit tests for the presenter and the model easier
Here the View is more loosely coupled to the model. The presenter is responsible for binding the model to the view.
Ebook Download
View all
Learn
View all