August 2014
Intermediate to advanced
280 pages
7h 19m
English
CHAPTER 9
![]()
Completing the Picture
In his highly-acclaimed book, Working Effectively with Legacy Code (Prentice Hall, 2004), Michael Feathers states:
Code without tests is bad code. It doesn’t matter how well written it is; it doesn’t matter how pretty or object-oriented or well-encapsulated it is. With tests, we can change the behavior of our code quickly and verifiably. Without them, we really don’t know if our code is getting better or worse.
He demonstrates how what he calls the “Cover [with tests] and Modify” approach is more efficient than the “Edit and Pray [because there are no automated tests]” approach. And although most of us know this, ...