MVP Pattern

/ˌɛm.viːˈpiː/ · Abbreviation · Development

Definitions

  1. Abbreviation for Model-View-Presenter, a UI pattern where the Presenter holds all presentation logic and interacts with a passive View through a defined interface, enabling unit testing of UI logic without the actual UI framework. Not to be confused with Minimum Viable Product.

    In plain English: A code organization approach where a 'Presenter' middleman handles what the screen should show, making it easy to test without actually running the app.

    Example: "We chose the MVP pattern for the Android app so we could write JUnit tests against the Presenter without needing Espresso or a device."

Related Terms