Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  CountLines. Thats what CountLines does.  (Read 1158 times)
0 Members and 1 Guest are viewing this topic.
Offline matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Posted 2012-06-16 18:20:12 »

I am kind of confused... I really don't know, where to put this thread  Huh
In Showcase ? No, thats not even a game. In SharedCode ? No, I don't even show any code of this project.
So I just put it in "General Discussions", I think that is the best solution...

Riven or anyone else, move this, if this is wrong Smiley

So. Now back to topic:
Count lines with CountLines. Believe me, he is friendly... lol Cheesy
If you start the program, you get some info printed, and the program waits for you to press Enter.
If you do so, it will count the lines, and make some more statistics about your .java files, recursivly under the directory, the .jar is placed in.
Enjoy!
Better download first.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline pjt33
« Reply #1 - Posted 2012-06-16 20:09:23 »

1  
find . -name \*.java -print0 | xargs -0 wc
?
Offline matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #2 - Posted 2012-06-16 20:11:52 »

Its more than that. You could download it, and then look Tongue

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Nate

« JGO Bitwise Duke »


Medals: 158
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #3 - Posted 2012-06-19 01:15:31 »

I've used CLOC, but I don't like the output too much. I tried this one, but its output isn't what I'm looking for either. I generally just want to know how many lines a project is. Comments don't count. Lines with just braces don't count. Your statistics are ok, but you don't have the useful number I'm looking for. I could subtract from total lines: empty lines, comment lines, etc but that is too much effort. Also I'm not sure how you are handling lines that aren't empty but aren't very useful (eg only braces).

Offline sproingie

JGO Kernel


Medals: 202



« Reply #4 - Posted 2012-06-19 04:40:04 »

Counting only lines containing semicolons is usually a more meaningful estimate for java code.  It'll count commented-out code and examples, but when you think about it, it's still code you've written, even if it's not executed.

Even then, code density varies.  It's really just a way to gauge the ballpark size of a codebase in the end, and only really good for comparing with code written in the same style (such as modules in the same codebase)
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #5 - Posted 2012-06-19 08:16:58 »

Hey, I ran it and the format is hardly legible (atleast the very end tally) because it is all offset.

cool program though Smiley
Offline matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #6 - Posted 2012-06-19 14:58:44 »

I've used CLOC, but I don't like the output too much. I tried this one, but its output isn't what I'm looking for either. I generally just want to know how many lines a project is. Comments don't count. Lines with just braces don't count. Your statistics are ok, but you don't have the useful number I'm looking for. I could subtract from total lines: empty lines, comment lines, etc but that is too much effort. Also I'm not sure how you are handling lines that aren't empty but aren't very useful (eg only braces).
Braces won't count. They are count as "empty lines".

Counting only lines containing semicolons is usually a more meaningful estimate for java code.  It'll count commented-out code and examples, but when you think about it, it's still code you've written, even if it's not executed.

Even then, code density varies.  It's really just a way to gauge the ballpark size of a codebase in the end, and only really good for comparing with code written in the same style (such as modules in the same codebase)


Good Idea... I'll include it probably...

Hey, I ran it and the format is hardly legible (atleast the very end tally) because it is all offset.

cool program though Smiley

First, thanks, second yes... I simply used a dumb formatter... I haven't got any Idea, how to improve that, (exept for using JNCurses...)

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (36 views)
2014-12-15 09:26:44

Mr.CodeIt (29 views)
2014-12-14 19:50:38

BurntPizza (61 views)
2014-12-09 22:41:13

BurntPizza (98 views)
2014-12-08 04:46:31

JscottyBieshaar (58 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (76 views)
2014-11-29 21:32:03

toopeicgaming1999 (137 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (37 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!