~/talk

Algebraic Data Types in Swift

Talkat iOS Conf Singapore 2019 · on Saturday, 2019-01-19· [swift, frontend-architecture]
slides:none on file

Claims that using Swift enums as ADTs and pushing invariants into the data model eliminates many invalid UI states, reduces switch-with-default bugs, and lets the compiler catch errors early. Demonstrates a dessert app with donuts, toppings and a secret-ingredient type, adds hashable semantics to make sets work, and uses a small codegen to provide a match method so exhaustive cases compile. Integrates layout via Theodolite component layout, components remain pure, the demo compiles and behaves as expected.

AI-written summary · about

  1. 0:00Start
  2. 1:57HARD PROBLEMS IN APPLICATION BUILDING
  3. 3:25STATE MANAGEMENT
  4. 4:08WORKING WITH STATE
  5. 4:43ALGEBRAIC DATA TYPES
  6. 27:27SUMMARY
~/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.