Limit the Search Area: Spatial Patterns in Code

When we profiled the Ripper, we used his spatial information to limit the search area. We pull off the same feat with code by focusing on areas with high developer activity.

Your organization probably already applies tools that track your movements in code, as shown in the following figure. Oh, no need to feel paranoid! It’s not that bad—it’s just that we rarely think about these tools this way. Their traditional purpose is something completely different: they primarily serve as backup systems for code and, occasionally, as collaboration tools, too. Yes, I’m talking about version-control systems.

The data in our version-control system is an informational gold mine. Every modification to the system ...

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.