12.11.16

La città del codice

PROGRAMMATE? O COMUNQUE zoppicate deambulando attraverso il reame del codice? Un interessante progetto, chiamato Code City, permette di visualizzare il codice come fosse una città. C'è una implementazione in JavaScript che lo rende appetibile a molti: si chiama JSCity.

Money quote:

"JSCity represents a JavaScript program as a city, as follows:

- Folders are districts and files are sub-districts
- Functions are buildings; inner functions are represented as buildings on the top of their nested function/building.
- The Number of Lines of Source Code (LOC) represents the height of the buildings; the Number of Variables (NOV) in a function correlates to the building's base size. Blue buildings are named functions; green buildings are anonymous functions."

Nessun commento: