Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lines of code.

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone recommend a useful tool to count the lines of code in I've implemented in my assignment?

I'm getting towards the end of implementing the assignment and I'm wondering how many lines of code I and everyone else has in their assignments? The guide to the exam recommends around 2,000 locs. I know this is only a guide and that everyone's assignment will vary in size, but it can serve as a useful indicator as to whether my assignment is too convoluted or not complex enough.

Cheers.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's not about the volume of code, it's about the quality.

Sun's website mentions an average of about 3500 lines with an observed minimum of about 2000.
At 20 characters per line on average that would be 50-60 kilobytes of sourcecode as a very rough estimate.
 
Mike Vess
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My solution was about 1200 lines (NCSS - Non Commented source statements). I used the tool JavaNCSS for line counting.
 
Dieskun Koper
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Java Line Counter to count my LOC. It ignores whitespace and comments. My solution was 2125 LOC.
I've never used JavaNCSS, but what I like about Java Line Counter is that it recursively goes into directories. All I do is drag my src folder onto its desktop shortcut and I get the total LOC of all source files in there.
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Java Line Counter says my assignment contains 2962 lines of code.

I tried JavaNCSS first, but it does not work with Java 1.5 code (may save some of you some time to know that!).

Frans.
 
Kris Reid
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've finished the URLyBird project with 1460 lines of code.

Impressive hey
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic