~/talk

Leveraging Swift's Type System

Talkat iOS Conf SG 2016 · on Sunday, 2016-10-23· [swift]
slides:none on file

Argues Swift’s richer type system catches bugs earlier and documents intent, showing concrete tools: use a Result enum to make async success/failure mutually exclusive; prefer wrapper types with throwing initializers or the Validated library to guarantee valid emails; apply phantom types to tag UUID strings so user IDs can’t be passed where sheet IDs are expected; model JSON top-level as array|dictionary so 90% of runtime JSON errors become compile errors; replace subclass piles with protocol+generic downloaders that cache and decode.

AI-written summary · about

  1. 0:00Intro
  2. 0:44History
  3. 5:59Asynchronous Error Handling
  4. 9:43Type Aliases
  5. 13:55Phantom Types
  6. 19:14Code Design
  7. 27:05Questions
~/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.