~/talk

Safer Swift Code with Value Types

Talkat 360iDev 2015 · 2015-08-18..08-21· [swift]
slides:none on file

Builds a nontrivial iOS Twitter client that downloads the latest 50 tweets, lets users favorite them, and demonstrates how to implement favorites when models are immutable. Uses Swift structs and a Flux-like dispatcher with reducers as pure functions, keeps server state and a local change set separate, merges them to derive the displayed timeline, and synchronizes mutations by replaying the change list to the API. Emphasizes immutable value types and unidirectional data flow as practical tools.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Safety
  3. 1:34struct or class
  4. 2:06Outline
  5. 2:36Reference Semantics
  6. 4:11Why Value Types
  7. 4:47Standard Library
  8. 5:34Copy qualifier
  9. 6:11Player built
  10. 6:52Twitter client
  11. 7:56Twitter timeline
  12. 8:21Immutable models
  13. 8:41How can I model change
  14. 9:10Multiple threads of references
  15. 10:21Protecting against updates
  16. 10:59Object oriented model
  17. 12:29Safety considerations
  18. 12:54Summary
  19. 13:10Model Changes as Values
  20. 15:11Flex Architecture
  21. 17:43State
  22. 18:20Actions
  23. 19:28Action Traders
  24. 20:45Favorite Tweet
  25. 21:11Early State Implementation
  26. 21:58ViewController
  27. 22:40Recap
  28. 23:14Synchronization
  29. 24:04Architecture
  30. 24:56Downsides
  31. 25:36Benefits
  32. 27:27Conclusion
~/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.