~/talk

Advanced Codable — When the API wasn’t built for Swift

Talkat 360iDev 2022 · 2022-08-28..08-31· [swift, testing]
slides:none on file

Shows when auto Codable fails and gives concrete fixes: hand-write conformance, a lightweight any CodingKey wrapper and container subscripts, or generate code with Sorcery. Demonstrates a small JSON value type, a custom parser to preserve ordering/duplicates, and about 100 lines of helpers that drill into the Pokedex API payloads. Provides patterns for error handling (fail fast vs compactMap), handling dynamic keys, nested super-encoding, and an experimental async JSON decoder — all working code, not just abstract advice.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Advanced Codable matters
  3. 8:16Coding keys beyond enums
  4. 13:57Default values and errors
  5. 18:16Arbitrary JSON keys
  6. 21:53Mismatched JSON structures
  7. 24:40Stateful decoding
  8. 25:22Encoding classes
  9. 31:38Extending Codable
  10. 32:00Raw JSON parsing
  11. 36:39Type-safe JSON values
  12. 41:32JSON parsing internals
  13. 43:38Custom JSONDecoder
  14. 45:45Future directions
~/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.