~/talk

Low-Hanging View Controller Fruits

Talkat iOS Conf SG 2016 · on Sunday, 2016-10-23· [ios, software-architecture]
links:none on file
slides:none on file

Advocates small, concrete refactors that shrink viewDidLoad and make controllers easy to skim: abstract networking/deserialization into a network.getPurpleItems API, move dependent UI updates into property observers, and push view styling into custom views or closure-based property initializers so the setup code disappears from lifecycle methods. Adds #mark pragmas to expose responsibilities in Xcode’s method list. Examples show the page view population and UI wiring still work after changes, and code is easier to read when constraints are kept programmatic (no Interface Builder).

AI-written summary · about

  1. 0:00Intro
  2. 0:47How to make better view controllers
  3. 2:05What is a bad view controller
  4. 4:00How to skim view controllers
  5. 8:21How to abstract away logic
  6. 10:37Before and after
  7. 11:09How to know what to take out
  8. 13:49Property customizations
  9. 14:23Only use it once
  10. 19:55Organization
  11. 21:58Summary
  12. 24:07References
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.