Middle
What is the MVP architectural pattern?
sobes.tech AI
Answer from AI
The architectural pattern Model-View-Presenter. Divides the application into three main parts:
- Model: Manages data and business logic. Independent of the user interface.
- View: Presents data from the Model to the user. Passive: contains no logic, simply displays what the Presenter passes to it.
- Presenter: An intermediary layer between the Model and View. Handles user interactions, retrieves data from the Model, and updates the View. The Model and View do not interact directly.
A key feature of MVP is the active Presenter, which manages the lifecycle of the View.