~/talk

Stupid Enum Tricks

Talkat WeAreDevelopers 2018 · 2018-06-06..06-08· [swift]
slides:none on file

Shows how to use enums in Swift and enum classes in Kotlin to make code safer and less stringly typed, with concrete patterns and tools. Covers exhaustive enums (traffic‑light example), raw‑representable enums for Codable/CodingKeys, computed properties for UI titles/assets and UI tests, Kotlin sealed class for download state with progress, and metaprogramming via SwiftGen/Sourcery (Stencil templates) to generate enums from files. Examples run and are practical; watch if you want copyable patterns.

AI-written summary · about

  1. 0:00Start
  2. 0:27Preface
  3. 1:29What Is an Enum
  4. 5:57Enum Class
  5. 12:35Swift's Codable Functionality
  6. 13:14Case Iterable
  7. 14:27Add Computer Properties
  8. 16:54Asset Catalogs
  9. 19:44Swift Gen
  10. 20:20Stencil
  11. 20:39Combining Protocols and Interfaces
  12. 23:25Associated Objects
  13. 29:56Beginners Mistakes
~/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.