is activity god? ~ the mvp architecture ~
TRANSCRIPT
“me” = { “name” : “Kenju Wagatsuma ( KJ )”, “company” : “Recruit Technologies Co.,LTD.”, “profession” : “Android Development”, “favs” : { 'Music' : ‘Stevie Wonder', 'Hobby' : ‘Acoustic Guitar & Singing’, 'Sport' : 'Rugby' } }
Activity -> UI + Logic :( -> Multiple Threads :( -> Spaghetti :( -> Testing is hard :(
Other Classes
http://www.techyourchance.com/model-view-controller-mvc-and-model-view-presenter-mvp-architectural-patterns-in-android-part-1/
No Communication
Entity / Data ( e.g. JSON, SQL )
UseCase / Business Logic
Presenter / Adapter
View / UI Threads
X
X
X
No Silver Bullet❖ MVP ❖ is just one of possibilities
and not a perfect solution ❖ could be mixed w/ other
solutions
Blog
“Architecting Android… The clean way?”
@see http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/
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
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
Blog
“Androidでは
MVCよりMVPの方がいいかもしれない”
@see http://konifar.hatenablog.com/entry/2015/04/17/010606
Blog
“これからの「設計」の話をしよう”
@see http://tech.recruit-mp.co.jp/mobile/android-architecture/