Thinking about writing a test for our method made us look at it from the outside, as if we were a client of the code, and not its author.
And:
...most of the benefit of testing comes from thinking about the tests and their impact on the code. And, after doing it for so long [30 years], I could do that thinking without actually writing tests. My code was still testable, it just wasn't tested.
Software developer trying to bring order into his craft. I write about my journey, thoughts, and practices. Currently focused on web frontend with React.
The Pragmatic Programmer (book) nails it:
And:
Gotta love that book. It aged really well!
I like this perspective.
Indeed. But you really don't need to be doing TDD for 30 years (or at all) to get there