The Pragmatic Programmer: your journey to mastery, 20th Anniversary Edition, 2nd Edition
by David Thomas, Andrew Hunt
Topic 41 | Test to Code |
The first edition of this book was written in more primitive times, when most developers wrote no tests—why bother, they thought, the world was going to end in the year 2000 anyway.
In that book, we had a section on how to build code that was easy to test. It was a sneaky way of convincing developers to actually write tests.
These are more enlightened times. If there are any developers still not writing tests, they at least know that they should be.
But there's still a problem. When we ask developers why they write tests, they look at us as if we just asked if they still coded using punched cards and they'd say “to make sure the code works,” with an unspoken “you dummy” at the end. And we think that's wrong.
So what do ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access