Blog

Archive for October, 2008

Word Clouds?

Friday, October 24th, 2008

We are always on the lookout for new ways to represent source code. Word Clouds caught my fancy.

Here is one of our own source code showing the top 50 most complex functions in source tree.

clip_image002

We thought doing Classes by lines of code, Classes by Sum Complexity and Architectures by the same might also be interesting.

Q: Worth adding to Understand?

BTW: The Cloud was generated by Wordle.net.  We wrote a script that generates output that can be pasted into its text box.   I’ve attached it in case you want to try it on your own code.
File Attachment: wordart.pl.zip

Tip – Understand the CountPath Metric

Tuesday, October 21st, 2008

So imagine you’re reviewing metrics for a small function:

  61 lines of code, pretty small, keeping functionality nice and modular. Good.

  Cyclomatic complexity of 30. Highly complex, but within the acceptable range. Good.

  CountPath metric 536,870,912. What is this? 536 Million paths in 61 lines of code, that can’t be right, can it?!?

(more…)

Tip – Automated Metrics

Monday, October 13th, 2008

Several people have asked me lately about automating metrics with Understand 2.0. There are two quick ways to automate metrics, as a scheduled activity and via the command line:

(more…)