Visualize Source Code

Back in Apply Geographical Offender Profiling to Code, we used Code City to visualize the spatial movement of developers. The city metaphor is a powerful visualization idea.

Code City was my starting point in 2010 as I formalized the concept of behavioral code analysis. Visualizations were key since they enabled a shift in perspective. Most code looks innocent enough in the constrained view of a code editor. Not so in Code City: you’ll notice patterns you didn’t spot before. This works because visual images tap into the most powerful pattern detector in the known universe—the human brain.

Language-Specific Code City Clones

Code City has inspired several clones. These clones are language-specific, meaning they can ...

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.