O'Reilly logo

ASP.NET Web API 2: Building a REST Service from Start to Finish by Brian Wortman, Jamie Kurtz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 9

image

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required