~/talk

Generic Swift: It Isn’t Supposed to Hurt

Talkat Philly ETE 2019 · 2019-04-23..04-24· [swift]
slides:none on file

Argues for concrete code first, then introduce generics only when needed, and demonstrates a composable networking stack built from tiny transport components (URLSession wrapped into a transport wrapper because of a compiler bug), JSON Decodable models, and small request structs that hold closures instead of protocol-heavy interfaces. Shows how ID type wrappers prevent accidental mixing of identifiers, explains why associated types block putting protocols in arrays, and replaces mocks with swappable transports and function lists — the design works but exposes compiler rough edges.

AI-written summary · about

  1. 0:00Introduction to Swift generics
  2. 1:17Protocol-oriented programming basics
  3. 6:59Real-world generic networking stack
  4. 16:51Extracting transport protocols
  5. 21:31Understanding existential types
  6. 25:54Solving ID type problems
  7. 33:06Refining fetch requests
  8. 37:00Concrete request design
  9. 40:37Equatable and custom equality
  10. 47:18Protocols as reusable algorithms
  11. 51:31Swift 6 wishlist and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.