~/talk

Generics

Talkat FrenchKit 2019 · 2019-10-07..10-08· [typescript]
slides:none on file

Argues for extracting generics only after concrete code reveals duplication and builds a small networking client that proves the point: concrete model types, a simple client, then a transport protocol that turns URLRequests into Data and a retroactive modeling step that makes URLSession conform without wrappers. Demonstrates concrete code first by factoring out an API-specific base protocol, composes behaviors via composable transports (header-adding wrapper), and shows testing needs only a simple mock transport, not heavyweight mocks.

AI-written summary · about

  1. 0:00Start
  2. 2:19Write concrete code first. Then work out the generics.
  3. 3:01Real-life protocol design
  4. 7:10Mocks are a terrible way to design protocols
  5. 10:53Protocols are for algorithms
~/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.