Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > looking for an open source java tool to calculate no of lines added removed.

Reply
Thread Tools

looking for an open source java tool to calculate no of lines added removed.

 
 
Bhanu
Guest
Posts: n/a
 
      05-02-2007
Hello Everyone,

I am looking for an open source java tool to calculate no of lines
added removed. If you know some tool like that please let me know. It
would be of great help.

Thanks,
Bhanu.

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      05-02-2007
Bhanu wrote:
...
>I am looking for an open source ..


What about free?
" " freely distributable?
" " free to distribute variants?

An 'open source' code library might also be
any, all, or none, of the above things.

>..java tool to calculate no of lines

...
This is commonly called a 'diff'. This search might help,
<http://www.google.com/search?q=java+diff>

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200705/1

 
Reply With Quote
 
 
 
 
Lew
Guest
Posts: n/a
 
      05-02-2007
Andrew Thompson wrote:
> Bhanu wrote:
> ..
>> I am looking for an open source ..

>
> What about free?
> " " freely distributable?
> " " free to distribute variants?
>
> An 'open source' code library might also be
> any, all, or none, of the above things.
>
>> ..java tool to calculate no of lines

> ..
> This is commonly called a 'diff'. This search might help,
> <http://www.google.com/search?q=java+diff>


Combined with a version-control system like CVS or Subversion (for which there
are Java clients), and the version-control systems themselves include or wrap
the 'diff' command, you can get very sophisticated tracking of changes to text
files.

BTW, if this is to serve some sort of human-factor performance metric for,
say, source-code development, I recommend:

Add the absolute value of lines added to the absolute value of lines removed
to the absolute value of lines altered each day to get a programmer's
productivity for that day. Count comment lines at 125-150%. Count one line
of whitespace as one line, two consecutive lines or more of whitespace as 1.5
lines. Count lines only for source files that have been formatted (indented)
to the organizational standard. Credit the negative of a programmer's total
for the day if that day's build won't build because of the developer's check-in.

Even all that won't measure certain important things, but it would give a
rough estimate of raw productivity.

If you want a less valuable metric, count all lines equally, but do
standardize the whitespace first. This should make it easier to use the raw
diff numbers of added, deleted and altered in a scripted way.

--
Lew
 
Reply With Quote
 
Brandon McCombs
Guest
Posts: n/a
 
      05-02-2007
Bhanu wrote:
> Hello Everyone,
>
> I am looking for an open source java tool to calculate no of lines
> added removed. If you know some tool like that please let me know. It
> would be of great help.
>
> Thanks,
> Bhanu.
>


I use sloccount. It is open source and free but it is only for Linux. It
can count the # of lines for many different languages (even if the files
are in the same directory) and it provides the breakdown of the code
count by language as well as an overall count. Supposedly it does not
include commented lines or blank lines but I haven't verified that.
 
Reply With Quote
 
=?UTF-8?B?QXJuZSBWYWpow7hq?=
Guest
Posts: n/a
 
      05-02-2007
Andrew Thompson wrote:
> Bhanu wrote:
> ..
>> I am looking for an open source ..

>
> What about free?
> " " freely distributable?
> " " free to distribute variants?
>
> An 'open source' code library might also be
> any, all, or none, of the above things.


There is a definition of open source by OSI - I would
say that the last two of your characteristics are included
in the open source definition.

(http://www.opensource.org/docs/osd item 1 and 3)

Arne
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      05-03-2007
Brandon McCombs wrote:
> I use sloccount. It is open source and free but it is only for Linux. It
> can count the # of lines for many different languages (even if the files
> are in the same directory) and it provides the breakdown of the code
> count by language as well as an overall count. Supposedly it does not
> include commented lines or blank lines but I haven't verified that.


If you use that as a performance metric for team members, it won't encourage
them to write comments or use whitespace to make their code more readable.

Comment lines should be counted. Maybe count them double when they're revised.

--
Lew
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for Open Source Online Community Java tool Maike Gernbach Java 0 08-17-2007 06:08 AM
ULC XML - Open Source XML tool for Java RIA Development hendrik.kruse@canoo.com Java 0 10-05-2006 02:30 PM
Open source Java metrics tool Diomidis Spinellis Java 0 04-14-2006 06:33 AM
Open-source tool which generates Java Value objects ? writeOnceDebugEverywhere() Java 5 03-23-2005 07:24 PM
Open Source Conference in Japan: Open Source Realize Forum 2005 pat eyler Ruby 1 03-05-2005 03:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57