473,386 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Source Code Metrics

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
9 3381
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
"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
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
(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
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
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
> > 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Edward Berard | last post by:
I am looking for tools that will analyze Java source code: -> I am primarily looking for metrics tools, e.g., tools that will tell me things like - Total lines of code - Total blank lines...
7
by: Michael Deathya | last post by:
Hi, I am pulling over 400 different metrics from an Excel spreadsheet into Access (97). Conceptually, each row represents a single set of these 400 metrics. However, because of the 255 column...
14
by: Hugh Cowan | last post by:
Hello, I am looking at getting a simple compiler for Windows that I can use to play around with different Open Source software. I am not a full-time programmer (anymore), nor do I plan to...
46
by: Profetas | last post by:
Hi, I know that this is off topic. but I didn't know where to post. Do you comment your source code while coding or after coding. for example: you write a procedure and after it is...
9
by: Markus Minichmayr | last post by:
Hello! Does anyone know a free tool to collect source code metrics like lines of code, no. of classes, etc.? Thanks Markus
24
by: Why Tea | last post by:
Are there any free C code analysis tools available? /Why Tea
2
by: jarnie | last post by:
Is there any freeware that can provide statistics on a (VB).NET project? I'm looking for something similar to the Aivosto's Project Analyzer, specificially the code metrics section. Ideally...
7
by: rewalk | last post by:
Hello all! First thank you to everyone in this community that has been helping me over the past few days. It's greatly appreciated and I've learned a lot. At the moment I'm trying to write some SQL...
19
by: Pavan | last post by:
Hi, I want to know if there is any software for measuring lines of code of my c++ application. I found out a tool, sloccount, but it gives only physical lines of code. I found out one more...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.