MVVM vs MVP

52d6b8fd288036707ddd50eb6f595cb7?s=47 Aydar
October 10, 2017

MVVM vs MVP

Presentation for the lightning talk on spikeweek at Freeletics

52d6b8fd288036707ddd50eb6f595cb7?s=128

Aydar

October 10, 2017
Tweet

Transcript

  1. 2.
  2. 3.
  3. 8.

    Problems with MVC Activity/UIViewController is a “God” class Business logic

    is mixed with UI Hard to reuse Hard to implement tests
  4. 18.
  5. 21.

    • 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
  6. 26.

    Business logic is decoupled from UI Easy to maintain Easy

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