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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
rallat
April 13, 2018
Technology
24k
0
Share
Android @ Scale
5 minute talk at Shibuya APK
rallat
April 13, 2018
More Decks by rallat
See All by rallat
Effective java 2 Effective Kotlin short version
rallat
0
120
Effective Java to Effective Kotlin
rallat
8
1.3k
Android at Scale in Mercari
rallat
0
140
App development pragmatic best practices
rallat
0
180
Droidkaigi Smoke and Mirrors
rallat
0
120
Smoke and mirrors
rallat
2
650
AndroidDevLikeAProDroidconSF
rallat
17
4k
Android development like a pro
rallat
77
14k
Building First Class Android Sdks
rallat
7
730
Other Decks in Technology
See All in Technology
Building a Study Buddy AI Agent from Scratch: From Passive Chatbots to Autonomous Systems
itchimonji
0
120
Chasing Real-Time Observability for CRuby
whitegreen
0
630
バイブコーディングで3倍早く⚪⚪を作ってみた
samakada
0
210
Fabric MCPの紹介と使い分け
ryomaru0825
1
110
Building Production-Ready Agents Microsoft Agent Framework
_mertmetin
0
140
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
500
フロントエンドの相手が変わった - AIが加わったWebの新しいインターフェース設計
azukiazusa1
23
6.1k
AWS Agent Registry の基礎・概要を理解する/aws-agent-registry-intro
ren8k
3
430
Anthropic「Long-running a gents」をGeminiで再現してみた
tkikuchi
0
750
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
190
アクセシビリティはすべての人のもの
tomokusaba
0
210
Shipping AI Agents — Lessons from Production
vvatanabe
0
300
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
140
A Tale of Four Properties
chriscoyier
163
24k
HDC tutorial
michielstock
2
650
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
500
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
120
Typedesign – Prime Four
hannesfritz
42
3k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
340
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
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