I just ran it over our 300k LOC Java project, and got this model (click to see larger version):
- Buildings are classes.
- Height is based on class LOC
- Building ground-area is based on number of attributes
- City blocks are packages.
This is all fun and cool-looking, but does it have any practical usage, I wonder?
I think we want to work in small friendly villages, where most houses are evenly-sized, nicely sized neighborhoods, no big ugly gray parking lots, and no towering sky-scrapers.
Here I ran it again on a smaller, nicer project:
I know Michael Feathers has made quite a few thoughts around code aesthetics. Perhaps these kind of metrics need some more attention to help people visualize good design and technical debt?