Reinforce yourself: a tale of dog training and test-driven development
summary
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
chapters (6)
- 0:00Start
- 2:11SO... HOW TO TRAIN A DOG MIRJAM?
- 7:22Test Driven DEVELOPMENT
- 16:50TAKE LITTLE STEPS
- 30:18SUMMARY
- 31:42GET INTO TDD HOW TO GET STARTED
related talks
42mTest-Driven Development in Javascript
45mWriting Tests That Don't Suck: TDD in JavaScript
42mUnderstanding Test Driven Development with Javascript
43mThe Little Shop of TDD Horrors
28mTDD for Absolute Beginners
25mConvert your team into TDD enthusiasts
46mHow to fall in love with TDD
28mTDD for Absolute Beginners
