Make the Business Case for Refactoring

Quantifying the inherent risk in low-quality code enables balanced discussions on the tradeoffs between adding more features vs. investing time into paying down technical debt. Even better, you will be able to have those conversations in terms that business people understand. That way, we, as developers, can finally build a business case for refactoring to get everyone on board for the mythical “buy-in.”

The first step toward this business case is to assess the health of your codebase, and there are multiple options. You can either keep track of it manually by checking for a combination of code smells from Chapter 6, Remediate Complicated Code, or you can automate the task using a code analysis tool. ...

Get Your Code as a Crime Scene, Second Edition, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.