Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MVVM vs. MVP

MVVM vs. MVP

Comparison architectures MVVM for iOS and MVP for Android

Dmytro Khmelenko

October 10, 2017

Transcript

27 slides
  1. Problems with MVC Activity/UIViewController is a “God” class Business logic

    is mixed with UI Hard to reuse Hard to implement tests
  2. • Handles user actions from View • Gets data from

    Model • Updates data in Model • Business logic • Provides updated/processed data to View Presenter/ViewModel Responsibilities ——————————————————— • Communicates with Coordinator
  3. Business logic is decoupled from UI Easy to maintain Easy

    to test Easy to reuse components MVP/MVVM-C advantages

More Decks by Dmytro Khmelenko

Other Decks in Programming