By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,602 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

Source Code Metrics

P: n/a
Hello!

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

Thanks
Markus

Jul 21 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
I *think* this is the one I used to use (when I built my new dev system, I
forgot to record the line counter I was using. It was nice, though...just a
button on the toolbar): http://www.wndtabs.com/plc/
"Markus Minichmayr" <ne*******@hotmail.com> wrote in message
news:bm**********@newsreader1.netway.at...
Hello!

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

Thanks
Markus


Jul 21 '05 #2

P: n/a
"Markus Minichmayr" <ne*******@hotmail.com> wrote in message
news:bm**********@newsreader1.netway.at...
Hello!

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


Try the Project Line Counter at http://www.wndtabs.com/

Marc
Jul 21 '05 #3

P: n/a
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.

Markus Minichmayr wrote:
Hello!

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

Thanks
Markus


Jul 21 '05 #4

P: n/a
(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 !!

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?

Jul 21 '05 #5

P: n/a
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.
"James deBoer" <hw**********@huronbox.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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.

Markus Minichmayr wrote:
Hello!

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

Thanks
Markus

Jul 21 '05 #6

P: n/a
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
"James deBoer" <hw**********@huronbox.com> schrieb im Newsbeitrag
news:#u**************@TK2MSFTNGP12.phx.gbl...
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.

Markus Minichmayr wrote:
Hello!

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

Thanks
Markus

Jul 21 '05 #7

P: n/a
> > Markus Minichmayr wrote:
Hello!

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


A production version wouldn't be free,
but a Beta version for C# metrics that works pretty well is available.
See http://www.semdesigns.com/Products/M...rpMetrics.html
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com

Jul 21 '05 #8

P: n/a
Go and visit http://www.campwoodsw.com/ - Jim's application is a great
resource! It's free as well and output is XML based so can be formatted
using stylesheets.

"Ira Baxter" <id******@semdesigns.com> wrote in message
news:el*************@TK2MSFTNGP10.phx.gbl...
Markus Minichmayr wrote:

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


A production version wouldn't be free,
but a Beta version for C# metrics that works pretty well is available.
See http://www.semdesigns.com/Products/M...rpMetrics.html
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com

Jul 21 '05 #9

P: n/a
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

"Adam" <ad**@nospam.com> wrote in message news:<ek**************@TK2MSFTNGP09.phx.gbl>...
Go and visit http://www.campwoodsw.com/ - Jim's application is a great
resource! It's free as well and output is XML based so can be formatted
using stylesheets.

"Ira Baxter" <id******@semdesigns.com> wrote in message
news:el*************@TK2MSFTNGP10.phx.gbl...
> Markus Minichmayr wrote:
>
> > Hello!
> >
> > Does anyone know a free tool to collect source code metrics like lines > > of code, no. of classes, etc.?


A production version wouldn't be free,
but a Beta version for C# metrics that works pretty well is available.
See http://www.semdesigns.com/Products/M...rpMetrics.html
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com

Jul 21 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.