~/talk

Swift Driven Development

Talkat ACCU 2018 · 2018-04-11..04-14· [swift]
slides:none on file

Argues that Swift’s type system and runtime playgrounds let TDD go further: uses a snakes-and-ladders kata to show concrete gains, building a Board, Game, a configurable “cheating die,” and a mini test runner called Swordfish. Develops in Swift Playgrounds, then moves tests into Xcode/AppCode, fixes bugs exposed by a ~2000-round run and later ~40-round simulations, and leverages synthesized Equatable (Swift 4.1) plus enums and pattern matching to simplify code; demos compile, run, and turn red/green as expected.

AI-written summary · about

  1. 0:00Introduction to Swift TDD
  2. 1:47TDD principles and benefits
  3. 10:20Challenges of TDD
  4. 12:31Coding Kata introduction
  5. 17:53Modeling the board in Swift
  6. 20:04Implementing board logic
  7. 27:54Refining the board implementation
  8. 33:10Handling edge cases
  9. 38:13Testing in playgrounds
  10. 40:33Moving to Xcode and AppCode
  11. 41:35Testing game object
  12. 45:30Player turn logic
  13. 47:21Testing game actions
  14. 51:06Customizing dice behavior
  15. 54:47Game simulation demo
  16. 58:59Swift Driven Development summary
~/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.