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
Skinny View Controllers
Search
Endoze
August 07, 2014
Technology
0
35
Skinny View Controllers
Presentation covering how to make your iOS view controller code simpler and leaner.
Endoze
August 07, 2014
Tweet
Share
More Decks by Endoze
See All by Endoze
How to Code Like a Hacker
endoze
0
53
Developing With Docker
endoze
0
130
chef_presentation.pdf
endoze
0
130
Other Decks in Technology
See All in Technology
コンテナセキュリティのためのLandlock入門
nullpo_head
2
330
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
170
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
200
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
140
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
210
[トレノケ雲の会 mod.13] 3回目のre:Inventで気づいたこと -CloudOperationsを添えて-
shintaro_fukatsu
0
110
Work as an App Engineer
lycorp_recruit_jp
0
370
Wantedly での Datadog 活用事例
bgpat
2
700
マイクロサービスにおける容易なトランザクション管理に向けて
scalar
0
190
なぜCodeceptJSを選んだか
goataka
0
180
クレカ・銀行連携機能における “状態”との向き合い方 / SmartBank Engineer LT Event
smartbank
2
100
3年でバックエンドエンジニアが5倍に増えても破綻しなかったアーキテクチャ そして、これから / Software architecture that scales even with a 5x increase in backend engineers in 3 years
euglena1215
9
3.7k
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
94
13k
Music & Morning Musume
bryan
46
6.2k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
RailsConf 2023
tenderlove
29
940
How to Ace a Technical Interview
jacobian
276
23k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
180
The Language of Interfaces
destraynor
154
24k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.4k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Testing 201, or: Great Expectations
jmmastey
41
7.1k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Transcript
SKINNY VIEW CONTROLLERS BY CHRIS STEPHAN Skinny View Controller View
Controller
And the trick is…
None
But Seriously… Every app has controllers Controllers are commonly the
largest files in any project Controllers are the hardest objects to reuse
To the Code
Our Goal View Controllers containing ideally less than 150-200 lines
Simple methods made up of 5-10 lines More Objects
Game Plan Simplify controller methods Add model for quotes Move
api call to new quote object Abstract UITableViewDataSource Abstract configuring of UITableViewCell
Back to the Code
Questions?
Links https://speakerdeck.com/endoze/skinny-view- controllers https://github.com/endoze/SkinnyViewControllers