Defining legacy code and importance of tests

Working Effectively with Legacy Code and AI Coding Assistant - Michael Feathers

Topic 2 of 22

Published Oct 14, 2024 · Clip 5:09–11:16 (6:07)

Michael explains his famous definition that legacy code is code without tests, recounting how he blurted it out during a consulting engagement and was encouraged to publish it. He discusses why tests matter—tests ground our knowledge of what the system actually does versus what we think it does—and introduces characterization tests (also called pinning tests) that describe current behavior. He clarifies he means automated tests, notes exploratory testing as the successor framing for manual testing, and reflects on whether the definition remains relevant in the AI era.