~/talk

Rewiring your brain with test driven thinking in C++

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [testing]
slides:none on file

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

  1. 0:00Brain potential and TDD intro
  2. 3:30Why write tests and myths
  3. 11:32Neuroscience of TDD
  4. 13:36TDD cycle in practice
  5. 18:16Live TDD demo: LeftPad in C++
  6. 32:49TDD habit loop
  7. 38:29Dopamine in TDD
  8. 43:08Externalize brain with TDD
  9. 48:32TDD myths debunked
  10. 51:43TDD shifts testing left
  11. 54:13Summary and Q&A
~/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.