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
Android @ Scale
Search
rallat
April 13, 2018
Technology
0
24k
Android @ Scale
5 minute talk at Shibuya APK
rallat
April 13, 2018
Tweet
Share
More Decks by rallat
See All by rallat
Effective java 2 Effective Kotlin short version
rallat
0
81
Effective Java to Effective Kotlin
rallat
8
1.1k
Android at Scale in Mercari
rallat
0
120
App development pragmatic best practices
rallat
0
150
Droidkaigi Smoke and Mirrors
rallat
0
79
Smoke and mirrors
rallat
2
560
AndroidDevLikeAProDroidconSF
rallat
17
3.8k
Android development like a pro
rallat
77
13k
Building First Class Android Sdks
rallat
7
700
Other Decks in Technology
See All in Technology
Databricksを活用してDELISH KITCHENのレシピレコメンドを開発した話
furu8
0
250
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
320
PHP"オレ"カンファレンスの告知
ysknsid25
0
360
Google Cloud の AI を支える裏側のインフラを垣間見る!
maroon1st
0
170
テストプロセスで大事にしていること #jasstnano
makky_tyuyan
0
110
入社後初めてのタスクでk8sアップグレードした話.pdf
kkato1
1
380
Tebiki株式会社 エンジニア採用資料
tebiki
0
4.1k
社内勉強会運営のコツ
senoo
6
1.1k
NgRx Signal Store
rainerhahnekamp
0
110
普段有償でサポート業務をしているCSAが技術知見を無料で公開する理由
07jp27
1
630
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
690
転移学習とドメイン適応の基礎
kmatsui
2
570
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
The Cult of Friendly URLs
andyhume
74
5.7k
What's in a price? How to price your products and services
michaelherold
237
11k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
321
20k
Faster Mobile Websites
deanohume
297
30k
Learning to Love Humans: Emotional Interface Design
aarron
266
39k
Imperfection Machines: The Place of Print at Facebook
scottboms
258
12k
Why Our Code Smells
bkeepers
PRO
331
56k
The Mythical Team-Month
searls
215
42k
Embracing the Ebb and Flow
colly
79
4.1k
Git: the NoSQL Database
bkeepers
PRO
422
63k
Done Done
chrislema
178
15k
Transcript
Android @ Scale
Israel Ferrer Camacho @rallat
MV
MV WW
WW = “whatever works”
Define Principles
Apply Principles
with Consistency Apply Principles
Principles must evolve
Principles?
Dependency Injection
Dependency Injection
Dependency Injection Allows to declare dependencies of an object upfront.
Dependency Injection Allows to declare dependencies of an object upfront.
This helps to easily mock dependencies and unit test the object
Single Responsibility
None
View layer
UI Manipulation
UI Manipulation
Logic layer UI Manipulation
Screen Behavior UI Manipulation
Screen Behavior UI Manipulation
Screen Behavior UI Manipulation Data layer
Screen Behavior UI Manipulation Repository Interface Network DB Memory cache
Complex screens
Complex screens Multiple logic layer components each with a single
responsibility.
Complex screens Multiple logic layer components each with a single
responsibility. Logic layer components can subscribe to events tied to their logic (E.g. Rx, EventBus)
Shared logic
Shared logic If the view is shared you can create
a 3 layered complete feature component.
Shared logic If the view is shared you can create
a 3 layered complete feature component. If the view is not share then add another layer…
Data layer View layer Logic layer
Use cases Screen behavior View layer Data layer
Screen behavior View layer Data layer
Screen behavior View layer Data layer Sort Items
Screen behavior View layer Data layer Sort Items Buy Item
Screen behavior View layer Data layer Sort Items Buy Item
Like Item
Screen behavior View layer Data layer Sort Items Buy Item
Like Item Comment Item
Goal
Goal Each layer has a reason to exist.
Goal Each layer has a reason to exist. Consistency in
codebase
Goal Each layer has a reason to exist. Consistency in
codebase Testable logic layer
Goal Each layer has a reason to exist. Consistency in
codebase Testable logic layer Reusable of logic layer
Do Not Over-Engineer
Do Not Over-Engineer Libraries, patterns are tools not goals
Do Not Over-Engineer Libraries, patterns are tools not goals The
goal is to ship and maintain speed of development
Questions? @rallat