Saturday, September 3, 2011
Source Code Word Clouds
Here’s a neat way to look at code quality - use source code word cloud generators.
A word cloud or tag cloud is a visual representation for text data. Tags or words are listed and the importance of each word is shown with different font size or color. When applied to well written and clean code, word clouds give us a quick way of understanding what the code is about.
Below is an example from http://fragmental.tw/2009/04/29/tag-clouds-see-how-noisy-your-code-is
Clearly, looking at the second cloud, we know a lot more about the domain than the 1st cloud.
Try it out using the original http://www.wordle.net or http://sourcecodecloud.codeplex.com
Adapted from "Code" @ Agile2011