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
32
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
47
Developing With Docker
endoze
0
120
chef_presentation.pdf
endoze
0
100
Other Decks in Technology
See All in Technology
OpenTelemetry実践 はじめの一歩
taxin
0
330
関数型DDDの理論と実践:「決定を遅らせる」を先につくり、 ビジネスの機動力と価値をあげる
knih
2
500
KubeCon EU: Unlocking new Platform Experiences with Open Interfaces
salaboy
1
380
検証からプロダクトへ: シームレスなLLM開発の ためのしくみ作り
nunukim
1
210
あらゆる商品を扱う商品データベースを再設計した話 / product db re-architecture
rince
8
3.9k
依存ライブラリはどこに?
takesection
0
120
エバンジェリスト活動を7年やってきて見えてきた、コミュニティとエバンジェリストの関係
soracom
PRO
1
200
継続的テストモデルを実現するためにスリーアミーゴスを用いた10Xでのシフトレフトの事例
nihonbuson
3
260
これまでのキャリアとこれからMLエンジニアとしてどう動くか
masatakashiwagi
1
770
KTC_DBRE.pdf
_awache
1
290
エンジニアブランディングチームの KPI / KPI's of engineer branding team
chaspy
1
140
Vos logs méritent mieux que la config par défaut
lyrixx
2
430
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
18
1.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
319
20k
The Brand Is Dead. Long Live the Brand.
mthomps
48
22k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
113
18k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
In The Pink: A Labor of Love
frogandcode
137
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
28
5.9k
Why Our Code Smells
bkeepers
PRO
330
56k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
11
1.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
14
2.6k
Code Review Best Practice
trishagee
54
15k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.2k
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