~/talk

The Type-Safe World of Codable

Talkat try! Swift Tokyo 2018 Β· 2018-03-01..03-03Β· [swift]
slides:none on file

Shows concrete patterns for using Codable beyond JSON: a DataConvertible protocol that encodes/initializes structs to Data, examples of storing structs in UserDefaults and Keychain, and two custom encoders/decoders including a DictionaryEncoder and a URL-query encoder that maps structs to query items and URLComponents. Demonstrates that Codable plus small protocol wrappers yields type-safe API parameter building and persistence, notes the custom encoder code is more verbose but available on the linked speakerdeck and that the approach works in apps.

AI-written summary Β· about

~/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.