Chapter 2Treat Your Code as a Crime Scene

You’ve seen how today’s codebases are getting increasingly more complicated, making it impossible for any individual to maintain a holistic overview of the system. Further, you’ve also learned how traditional complexity metrics are inadequate on their own, lacking context and priorities.

Now, imagine for a moment that you had a map of your codebase. A map that would not only point out the strong and weak parts of the code but also highlight the main productivity bottlenecks where accidental complexity impacts your team the most. Having this information would let you prioritize improvements to the most urgent problems, guided by data.

In this chapter, we turn the thought experiment into reality. We do ...

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.