~/talk

Optimizing Swift code for separation of concerns and simplicity

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

Shows concrete refactors: extract a utf16Count helper for why utf‑16 matters, move filtering into extensions, replace repetitive indexPath logic with a row enum, add a state enum to avoid optionals when loading profiles, and introduce layout helpers including custom operators and a TW_safeAreaLayoutGuide plus a reusable MinimumHitAreaButton. Demonstrates using an active-constraints array and stack views to toggle layout. Each change is implemented and tested in a real app codebase and measurably improves readability and reduces bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 0:44Code Reviewing
  3. 2:13Reading code
  4. 4:19Code duplication
  5. 5:26Understanding the code
  6. 6:48Reading the code
  7. 7:49Extracting the logic
  8. 8:41Autolayout
  9. 9:14Custom operators
  10. 10:00Goons
  11. 10:23Before and After
  12. 11:29Table view
  13. 11:56reorder rows
  14. 12:21user defaults
  15. 13:42backwards compatibility
  16. 14:38touch targets
  17. 15:19minimum hit area button
  18. 16:40hide sub use
  19. 17:16context
  20. 18:09optional views
  21. 18:55Explicit views
  22. 19:17Updating state
  23. 19:38Updating state bar
  24. 20:20Summary
~/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.