
The Facebook TDD class story

TDD, AI agents and coding with Kent Beck
Topic 9 of 11
Published Jun 11, 2025 · Clip 54:10–1:03:54 (9:44)
Kent tells the story of joining Facebook in 2011 at the peak of TDD's popularity, offering a TDD class at a hackathon that nobody signed up for (while advanced Excel and Argentinian tango classes had waiting lists). He decided to wipe the slate clean and copy what Facebook engineers did, discovering they used rapid feedback loops instead: dev servers, code review, internal deployment, incremental rollouts, and observability, with a culture where nothing was somebody else's problem. His first feature (civil union and domestic partnership relationship types) used TDD wastefully, broke notifications through implicit coupling, and was hotfixed by a colleague. He also describes learning feature flags' liberating power and the scale of experimentation (an experimental group the size of New Zealand, a quadrillion API calls a week).