Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MVP Pattern
Search
Technophile Community Surat
January 21, 2018
Programming
0
150
MVP Pattern
This talk presents a Fundamental of MVP Pattern in Android Devlopement by Moinkhan Pathan
Technophile Community Surat
January 21, 2018
Tweet
Share
More Decks by Technophile Community Surat
See All by Technophile Community Surat
Customer Comes First - Lesson and Observation from an Entrepreneur's Journey
technophilesrt
1
95
Unit Test Cases with MVP
technophilesrt
0
95
Deep dive into RXJava
technophilesrt
0
160
ChatBot using Dialog Flow
technophilesrt
1
140
Getting Started with Room Persistence Library
technophilesrt
0
92
Dive into Material Design
technophilesrt
0
110
UI Design for Android
technophilesrt
0
160
Coding Standard
technophilesrt
0
170
Other Decks in Programming
See All in Programming
LLMチャットボットのアプリケーション設計Tips
os1ma
4
670
TDDと今まで
kanayannet
0
140
とにかくHTTP3をライトニングに話す / Anyway, I'll talk to Lightning about HTTP3.
seike460
PRO
0
120
Laravel標準バリデーションでできること
hmb_ok
2
360
クソコード動画『カプセル化 Mk-II』 で考える 上手くカプセル化できない理由 / encapsulation2
minodriven
11
8.1k
設計の知識と技能で駆動するソフトウェア開発
masuda220
PRO
19
11k
上手な探索的テストとその上達方法について
matsu802
4
660
実践!RDRAを活用した既存システムの仕様変更 / Specification Changes in Existing Systems Utilizing RDRA
imamotohikaru
0
2.8k
App Router への移行は「改善」となり得るのか?/ Can migration to App Router be an improvement
takefumiyoshii
1
140
DDDはなぜ難しいのか / 良いコードの定義と設計能力の壁
pospome
25
7.7k
MySQL のインデックスの種類をおさらいしよう! / overviewing indexes in MySQL
okashoi
0
180
Data Contracts In Practice With Debezium and Apache Flink (Kafka Summit London)
gunnarmorling
2
280
Featured
See All Featured
Fireside Chat
paigeccino
19
2.6k
Scaling GitHub
holman
456
140k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.8k
For a Future-Friendly Web
brad_frost
170
8.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
Building Your Own Lightsaber
phodgson
97
5.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.2k
BBQ
matthewcrist
78
8.7k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
Designing with Data
zakiwarfel
94
4.8k
Design by the Numbers
sachag
274
18k
Statistics for Hackers
jakevdp
789
220k
Transcript
None
Android core is it’s self MVC
Why not MVC - Everything connected to Everything. - Controller
becomes heavy by time - Not Modular - Not Scalable - Not Testable
What is MVP exactly? MVP (Model-View-Presenter) is an evolution
of MVC.
Separation of Concern Model & View never communicate with
each other. View layer is completely dumb. Each layer performs a specific task.
Modularity Packages are not made of components but for
screens. Every screen is in it’s own package containing Activity/Fragment (View), Presenter, Contract. Easier to modify or add new feature.
Scalability Model layer is given in data repository format.
Model layer is available as Plug & Play. Modification of layer will not impact another layer.
Testable 80% of code resides in Presenter & Model
layer. Easier to write test as everything is broken to modules. Model & Presenter are pure Java, they can be tested easily using only JUnit.
Cons. Increase the development time.
Codelab https://github.com/TechnophileCommunity/MeetupSessions.git