Explore the Complexity Dimension

The data collected so far reveals the spatial movements of programmers within the codebase. This is the behavioral perspective, and as we discussed in Chapter 2, Treat Your Code as a Crime Scene, we now have to combine it with a complexity dimension. Adding a complexity view lets you quickly separate problematic code from areas that often change but are in good shape. Perhaps React’s ReactFiberCommitWork module—the most frequently changed file—is a marvel of clean code whose expressiveness puts James Joyce’s Ulysses to shame. Or perhaps you’re about to meet a mean-looking legacy code monster. Let’s see where the complexity is hiding in React.

Get Complexity by Lines of Code

There are several code complexity ...

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.