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

Is Activity God? ~ The MVP Architecture ~

Is Activity God? ~ The MVP Architecture ~

About MVP Architecture, The Difference between MVC and MVP, and Pros/Cons of MVP

Ken Wagatsuma

December 16, 2015
Tweet

More Decks by Ken Wagatsuma

Other Decks in Programming

Transcript

  1. Agenda: -> ❖ 1m : Story Behind ❖ 3m :

    What and Why? ❖ 1m : Conclusion
  2. “me” = { “name” : “Kenju Wagatsuma ( KJ )”,

    “company” : “Recruit Technologies Co.,LTD.”, “profession” : “Android Development”, “favs” : { 'Music' : ‘Stevie Wonder', 'Hobby' : ‘Acoustic Guitar & Singing’, 'Sport' : 'Rugby' } }
  3. To Do MVP -> MVC? -> What? -> Why? Not

    To Do MVVM DDD Sample Code
  4. Activity -> UI + Logic :( -> Multiple Threads :(

    -> Spaghetti :( -> Testing is hard :( Other Classes
  5. Entity / Data ( e.g. JSON, SQL ) UseCase /

    Business Logic Presenter / Adapter View / UI Threads
  6. Entity / Data ( e.g. JSON, SQL ) UseCase /

    Business Logic Presenter / Adapter View / UI Threads X X X
  7. No Silver Bullet ❖ MVP ❖ is just one of

    possibilities and not a perfect solution ❖ could be mixed w/ other solutions
  8. Blog “M — Model in MVC, MVP, MVVC in Android” @see https://medium.com/@artem_zin/m-

    model-from-mvc-mvp-in-android-flow- and-mortar-bd1e50c45395#.5e525edu1
  9. Github Wiki “Introduction to Model View Presenter on Android” @see

    https://github.com/konmik/ konmik.github.io/wiki/Introduction- to-Model-View-Presenter-on-Android