Archived

This topic is now archived and is closed to further replies.

Bragging rights

This topic is 5889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was curious is there a (free) windows line counter to counter the number of lines in my project (:D bragging rights). BTW: I''m using MSVC 6.0, if I missed this feature, just smack me upside the head, really!

Share this post


Link to post
Share on other sites
quote:

Bragging rights as in you want the least amount of lines for the work done, right?




hehe, well if I could write a killer game in 1 line, I don''t think I''d get paid anything.

It''s just nice to analyze how much lines you can prduce a day or week. Figurin hi bugdget projects have close to a million lines of code, how long would it an independant contractor (thats me) to do that?

Share this post


Link to post
Share on other sites
quote:
hehe, well if I could write a killer game in 1 line, I don't think I'd get paid anything.


If someone could write a killer game in one line, I'll hire them on the spot for technical ability... and then fire them the next day, since there are no comments

quote:
It's just nice to analyze how much lines you can prduce a day or week. Figurin hi bugdget projects have close to a million lines of code, how long would it an independant contractor (thats me) to do that?

The majority of project code are comments. I'd say about 30-40% comments. Then, a fair proportion is due to implementation design for managebility.
Honestly, the amount of lines is inconsequential generally, except for the "gosh, I did all that" factor, which is not to be understated at times, especially after project completion.

--
"Had a Salmon Day? You've all had one - a day when you spend all your time swimming upstream, only to get screwed"

Edited by - supercytro on October 31, 2001 5:38:44 AM

Share this post


Link to post
Share on other sites

Code Counter - By Steven Vallis (Copyright © 2000 ForgeWare)

Just a little program I knocked up in about an hour that will count how many lines of code you have written for a project. It basically just looks in a directory that you specify and counts how many lines there are in any .CPP .HPP .C and .H files found in that directory.

Hope someone other than me finds it half useful.

* Version 1.1
Added preliminary VB support and character counting facilities.

* Thanks to
Fredric
Spiff
CGameProgrammer
LackOfKnack
Kavos


Above you see the readme.txt of a program that was discussed some months ago in one of the gamedev.net forums...
works fine for c/c++ and vb projects...
unfortunately I don''t remember the download link...

------------------------------------------------------------
"To a computer, chaos is just another kind of order."

Share this post


Link to post
Share on other sites
Well, you can write an entire game in one line with comments.
just don''t use any whitespace =P

Though, by having your code be made up of comments, there can be drawbacks. For example, if u decided to change a certain feature and you forgot to change the comments then you''ll end up with rubbish that would only serve to mislead than to clear things up.

So make sure you remember to edit your comments or cut back on the comments. I think comments that explain the general intention of the code is sufficient.

Share this post


Link to post
Share on other sites