You are previewing The Clean Coder.

The Clean Coder

Cover of The Clean Coder by Robert C. Martin Published by Prentice Hall
O'Reilly logo

5. Test Driven Development


It has been over ten years since Test Driven Development (TDD) made its debut in the industry. It came in as part of the Extreme Programming (XP) wave, but has since been adopted by Scrum, and virtually all of the other Agile methods. Even non-Agile teams practice TDD.

When, in 1998, I first heard of “Test First Programming” I was skeptical. Who wouldn’t be? Write your unit tests first? Who would do a goofy thing like that?

But I’d been a professional programmer for thirty years by then, and I’d seen things come and go in the industry. I knew better than to dismiss anything out of hand, especially when someone like Kent ...

The best content for your career. Discover unlimited learning on demand for around $1/day.