~/talk

Generic Swift: It Isn't Supposed to Hurt

Talkat AltConf 2019 · 2019-06-03..06-06· [swift, typescript]
slides:none on file

Argues to write concrete code first and extract protocols later, using extensions as composition rather than class inheritance; replaces URLSession-by-mock testing with a small Transport protocol that wraps URLSession and can be layered (headers, compression, DB backends) for easy unit tests. Shows building requests as plain structs with a data->model function (function-based type erasure) and using a generic Identifier<Model,Value> instead of fragile Int IDs. Warns that PATs and generalized existentials don’t magically solve API design.

AI-written summary · about

  1. 0:00Introduction
  2. 0:27Protocol Oriented Programming
  3. 29:49Abstracting Networking
  4. 37:41Equatable and Best Practices
~/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.