Source Code Metrics

  • Thread starter Thread starter Markus Minichmayr
  • Start date Start date
M

Markus Minichmayr

Hello!

Does anyone know a free tool to collect source code metrics like lines of
code, no. of classes, etc.?

Thanks
Markus
 
Do those things really matter? Seriously here, are you going to tell your
boss at the end of the month, "Yes, I made progress, I wrote another 100000
lines of code"? Does that really mean anything?

Instead of counting the LOC you should be counting the number of bugs found
in the wild. Instead of counting the classes you wrote today you should be
counting the number of automated tests that passed or failed.

And really, in the long run, instead of spends x hours hunting for a pretty
LOC counter for your IDE you should be learning the ins and outs of the
text editor you use.

Just my two cents.
James, Evil Death Ray.
 
(No. of Bugs / No. of Lines of Code) is a very common way of quantitatively
measuring a software. If we just measure in terms of bugs, What if there are
30 bugs but the software has 3 millions lines !!
 
They may not be using it for that purpose. They may be using it to see how
many lines of code a refactoring job is reducing or possibly checking
comment-code ratios. Hard to say. I don't place much credence in LOC
myself, as my code is arranged such that it by nature takes up many lines of
code (every parameter in a decl or call has its own line...stuff like that),
but I still use the line counter, as I have used it as a reuse metric as
well as a means of determining how prevalent my commenting is.
 
Well, you are right, LOC alone don't really express very much. However,
source-code metrics in general help, understanding the complexity of a
software. LOC surely is an extremely simple metric and must be handled with
care. Nevertheless I think that source-code metrics are a good way to get an
general overview over software complexity.

By the way, I'm interested in the topic for academic reasons.

Markus
 
Another one out there is one called "vil" at www.1bot.com Looks
like it is just a command-line tool now, but they claim they will have
a windows gui at some point.

I downloaded it. Gives lots of basic info about what is in your dll.
I'll try some of the others, and see how they compare.

Frank
 
Back
Top