Rewiring your brain with test driven thinking in C++
summary
Claim: writing tests first saves time, sharpens focus and can be fun. Demonstration uses leftpad example in C++ with the Catch test framework to show the red‑green‑refactor cycle plus an explicit “are we done” step, a compiler-failure-as-test trick, and fixing a surprising unsigned-subtraction bug. Concrete outcomes: incremental failing-to-passing iterations, fewer later regressions, faster risky refactors, and repeatable feedback that turns micro‑cycles into habit-forming dopamine triggers.
AI-written summary · about
chapters (11)
- 0:00Brain potential and TDD intro
- 3:30Why write tests and myths
- 11:32Neuroscience of TDD
- 13:36TDD cycle in practice
- 18:16Live TDD demo: LeftPad in C++
- 32:49TDD habit loop
- 38:29Dopamine in TDD
- 43:08Externalize brain with TDD
- 48:32TDD myths debunked
- 51:43TDD shifts testing left
- 54:13Summary and Q&A
related talks
01h 02mRewiring Your Brain - Boost Productivity with Test Driven Thinking in C++
01h 00mC++ Test-driven Development
32mThinking in tests
28mTDD for Absolute Beginners
01h 02mTest Driven C++
01h 01mBack to Basics: Debugging and Testing in C++ Software Development
28mTDD for Absolute Beginners
01h 03mBack to Basics: Testing in C++
