~/talk

Reinforce yourself: a tale of dog training and test-driven development

Talkat RuhrJS 2019 · 2019-10-05..10-06· [javascript, testing]
slides:none on file

Walks through a JavaScript TDD session that builds a dog training simulator from tests: starts with a Dog class, adds name, methods for looking at fingers, and a rewards list, then makes tests drive behavior so a counter threshold of five signals learned touch; neutral consequences do nothing, punishment resets counter by two, and a bug (using && instead of ||) is caught early. Uses red‑green‑refactor, loops and private fields (ECMAScript proposal), and ends with a working MVP and passing tests.

AI-written summary · about

  1. 0:00Start
  2. 2:11SO... HOW TO TRAIN A DOG MIRJAM?
  3. 7:22Test Driven DEVELOPMENT
  4. 16:50TAKE LITTLE STEPS
  5. 30:18SUMMARY
  6. 31:42GET INTO TDD HOW TO GET STARTED
~/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.