~/talk

How Not to Write Swift

Talkat Swift & Fika 2018 · on Monday, 2018-09-10· [swift, developer-experience]
slides:none on file

Shows concrete examples and fixes: recommends start with concrete types because protocols can force heap boxing and dynamic dispatch for heterogenous arrays and kill performance, while generics let the compiler specialize and inline. Advises avoiding deep inheritance in UIKit to prevent hidden cruft and tight coupling and suggests refactor to small protocols later using extension intent points and associated types. Promotes loud failure for programmer errors with use assertions and preconditions and fatalError and uses StaticString for bundle resources. squeeze your protocols into minimal constrained pieces.

AI-written summary · about

  1. 0:00Introduction
  2. 1:21Pragmatism vs opinionated
  3. 2:56The hoodie of truth
  4. 4:02Four areas to explore
  5. 4:30Using protocols wisely
  6. 9:34Avoiding inheritance pitfalls
  7. 12:50Advanced protocol techniques
  8. 16:03The necessity of crashing
  9. 19:26Conclusion
~/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.