~/talk

Protect your invariants — A practical TDD session

slides:none on file

Builds a bowling-score evaluator using strict TDD (red–green–refactor) with unit tests driving a Game composed of Frame types: nine intermediate frames and one tenth frame, enforcing invariants (max 10 pins per roll, frame sum ≤10, tenth frame allows 2–3 rolls). Implementation throws on illegal rolls, calculates spare/strike bonuses by peeking next one or two rolls, supports 20 normal rolls, three-roll tenth, and a perfect 300; tests all pass.

AI-written summary · about

  1. 0:00Start
  2. 5:11Rules of Tdd
  3. 5:22Phases in Test-Driven Development
  4. 5:46Green Phase
  5. 10:33Score Evaluation
  6. 18:51Where Should I Enforce these Invariants
  7. 30:53Paper Method
  8. 35:21Helper Method
  9. 52:23Get Maximum Tries Method
  10. 53:44Test with all Strikes
  11. 58:14Summary
~/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.