~/talk

Making it Generic

Talkat try! Swift NYC 2018 · on Tuesday, 2018-09-04· [swift]
slides:none on file

Shows how generics cut a linear explosion of types in a Swift iOS app for a Glowforge 3D laser printer by replacing repeated code with one polymorphic implementation. Demonstrates concrete examples: a custom map implementation, a generic Stack<Element>, JSON parsing using Codable and a generic APIRequest that decodes network responses, and handling socket updates via resource identifier specialization. Result: fewer duplicated types, single unified code paths, and working runtime decoding from generic descriptors into concrete models.

AI-written summary · about

  1. 0:00Start
  2. 1:10GENERICS: ABSTRACTION & SPECIALIZATION
  3. 1:40GENERICS: FLEXIBILITY
  4. 2:07GENERICS: TYPES
  5. 2:27GENERICS BY VALUE: ASCII ART
  6. 5:47MAP: FLEXIBLE AND SAFE
  7. 6:30GENERICS BY TYPE: STACK
  8. 6:47GENERICS BY TYPE: EMOJI STACK
  9. 7:03GENERICS BY TYPE: INT STACK
  10. 8:58JSON & GENERICS
  11. 9:10GENERICS: JSON API
  12. 10:29DATA: RESOURCE PACKET
  13. 11:45NETWORK CALL
  14. 12:27OBJECT MANAGER
  15. 12:44SOCKET MESSAGE RECEIVED
  16. 14:02TAKE AWAY
~/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.