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

3b36493b4296ebeb219bcd3ffab3aa2b?s=128

Kenju Wagatsuma

December 16, 2015
Tweet

Transcript

  1. 2.

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

    What and Why? ❖ 1m : Conclusion
  2. 4.

    “me” = { “name” : “Kenju Wagatsuma ( KJ )”,

    “company” : “Recruit Technologies Co.,LTD.”, “profession” : “Android Development”, “favs” : { 'Music' : ‘Stevie Wonder', 'Hobby' : ‘Acoustic Guitar & Singing’, 'Sport' : 'Rugby' } }
  3. 6.

    To Do MVP -> MVC? -> What? -> Why? Not

    To Do MVVM DDD Sample Code
  4. 7.

    Activity -> UI + Logic :( -> Multiple Threads :(

    -> Spaghetti :( -> Testing is hard :( Other Classes
  5. 11.

    Entity / Data ( e.g. JSON, SQL ) UseCase /

    Business Logic Presenter / Adapter View / UI Threads
  6. 12.

    Entity / Data ( e.g. JSON, SQL ) UseCase /

    Business Logic Presenter / Adapter View / UI Threads X X X
  7. 17.

    No Silver Bullet ❖ MVP ❖ is just one of

    possibilities and not a perfect solution ❖ could be mixed w/ other solutions
  8. 20.

    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. 21.

    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