Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What article discusses "Viewing code from 10000 feet"?

A few years ago I read an article about a neat way to analyze a large code-base.

The idea was to zoom out so far that patterns of indentation and block length are all that is really visible.

The author wrote about printing out code with very small fonts and looking at the results from 10 feet back. I believe the author also had some tools for reformatting code and producing images for this technique, in such a way that paper could be avoided.

I can't find the right search query to bring this up. Anyone have any ideas?

like image 671
daotoad Avatar asked Aug 09 '10 06:08

daotoad


3 Answers

The text editor Sublime Text has a zoomed-out overview of your code on the left of the window, and can be used to scroll.

like image 162
Enigmaster Avatar answered Nov 27 '22 08:11

Enigmaster


I've done this myself, that is print to paper with very small fonts and step back. If you want to avoid the paper route then perhaps you can print to PDF?

Or use and editor that can zoom in and out by changing font size. I use SciTE and Komodo Edit, both based on the Scintilla code editing engine and both allow me to hold down the ctrl key and use the mousewheel to change font size (just like web browsers).


With a bit of Google-fu I found references that this (ctrl+mousewheel) may also be implemented in Visual Studio and XCode. Can anyone confirm?

like image 25
slebetman Avatar answered Nov 27 '22 08:11

slebetman


I think you are referring to Software Visualization? If you search for Code Visualizer, you maybe able to find a few products out there that does it but there are more focusing on aggregating the measurements information/metrics together for software comprehension and not necessary as a way to view or navigating to code only.

Some of the tools include Code city, code crawler or code visualizer. Michele Lanza and his team did some great work in this area in the recent years, however some only has support for certain language/platform so be mindful if they are going to be useful for you.

http://www.inf.usi.ch/faculty/lanza/

http://www.inf.usi.ch/phd/wettel/codecity.html

like image 43
Fadrian Sudaman Avatar answered Nov 27 '22 09:11

Fadrian Sudaman