473,624 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3406
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*******@hotm ail.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*******@hotm ail.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**********@h uronbox.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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**********@h uronbox.com> schrieb im Newsbeitrag
news:#u******** ******@TK2MSFTN GP12.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******@semde signs.com> wrote in message
news:el******** *****@TK2MSFTNG P10.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.co m> wrote in message news:<ek******* *******@TK2MSFT NGP09.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******@semde signs.com> wrote in message
news:el******** *****@TK2MSFTNG P10.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
6715
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 of code - Total commented lines of code
7
2169
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 limit in Access I am faced with a dilemma: Do I create two tables (1 with 255 columns, the other with 145) and a lookup table that stores which metric is found in which table? Obviously this method would require VBA logic to coordinate any time I
14
2939
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 write software either. I just want to play around and look at some of the Open Source software that is out there for Windows. Most of the applications are written in C, or C++ and therefore I
46
2466
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 working, you'll comment it.
9
301
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
2241
by: Why Tea | last post by:
Are there any free C code analysis tools available? /Why Tea
2
1230
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 I'd like to know the number of source lines, the number of variables, the number of subs/functions etc. More then just plain source/comment/blank lines.
7
6764
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 code to set up the proper relationship between a created table and an existing table. The existing table is called key metrics and it has an autonumber primary key ID. The created table has a field also called ID, which is a number...NOT an...
19
3794
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 tool cccc , but iam getting many parse errors with it. If you know any other tool( to be used in linux) please let me know.
0
8679
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.