View Poll Results: Your biggest project: how many lines?

Voters
38. You may not vote on this poll
  • < 200 lines

    4 10.53%
  • > 300

    0 0%
  • > 500

    0 0%
  • > 750

    1 2.63%
  • > 1000

    2 5.26%
  • > 1500

    1 2.63%
  • > 2000

    2 5.26%
  • > 3000

    1 2.63%
  • > 4000

    4 10.53%
  • > 5000

    5 13.16%
  • > 7500

    2 5.26%
  • > 10 000

    3 7.89%
  • > 15 000

    1 2.63%
  • > 20 000

    2 5.26%
  • > 30 000 lines

    10 26.32%

Thread: Your biggest project: how many lines have you written?

  1. #16
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    My largest project (a library) barely topped 20k. Other than that, eveything I've written was been under 10k. (Other than a 11k soupped-up text editor that is )

    Over 95% of my projects are always under just a couple thousand for the most part.

    I'm a programmer with a comfortable amount of experience... but a little ways from even being proffesionally suitible.

  2. #17
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by Yarin View Post
    I'm a programmer with a comfortable amount of experience... but a little ways from even being proffesionally suitible.
    I'd say that there are plenty of great professional programmers that have never written a project that exceeded 10,000 lines simply because their line of programming does not call for it.
    Sent from my iPadŽ

  3. #18
    In my head happyclown's Avatar
    Join Date
    Dec 2008
    Location
    In my head
    Posts
    391
    Quote Originally Posted by bithub View Post
    I just did a line count on my current project, and it is 885017 lines. About 100K-200K of those are mine.
    Might be a bit too early to call, but even with 100K, you've probably earned forum bragging rights 2009.
    OS: Linux Mint 13(Maya) LTS 64 bit.

  4. #19
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Might be a bit too early to call, but even with 100K, you've probably earned forum bragging rights 2009.
    Considering the code has been spread out over 3 years (and counting), it's not that impressive. Plus I'm willing to bet a good portion of that code is comments

  5. #20
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by bithub View Post
    Considering the code has been spread out over 3 years (and counting), it's not that impressive. Plus I'm willing to bet a good portion of that code is comments
    It's also worth mentioning that on large projects, one's usage of the K&R brace/indenting style vs the KNF style could greatly change the amount of "lines" the project has.
    Sent from my iPadŽ

  6. #21
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by SlyMaelstrom View Post
    It's also worth mentioning that on large projects, one's usage of the K&R brace/indenting style vs the KNF style could greatly change the amount of "lines" the project has.
    That's why I like to count semicolons instead...
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  7. #22
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    497
    more than 7500 lines of codes , it toke me 3 month to write the first version and it was hardly 1500 of lines , well it didnt even compile at all!because of poor coding style , i convinced my self to abandon it and start from scratch and well the experience i got during this 3 month made me write 7500 of lines in just 2 weeks(knowing those ways leading to failure,helped me alot to know why i didnt succeeded and how to go about the project) .
    the project was a simulator !
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  8. #23
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    For one project my counter is reading over 50K lines of code. Total lines of code is a bit deceptive since I've lost a lot of code due to reinstalls of Windows, hardware upgrades, and drive deaths. Right now my current code base is sitting at about 400K lines of code.

    Again this is deceptive since it is including comments in the count. However line counts really do not mean much to me in the grand scheme of things.

  9. #24
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Bubba View Post
    Again this is deceptive since it is including comments in the count. However line counts really do not mean much to me in the grand scheme of things.
    I track my LOC not for bragging rights, but because I'm trying to MINIMIZE it. If LOC is spiking, but feature richness is lagging, then it's a good time to consider refactoring.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  10. #25
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I like the nice bell shape of the results chart, with the spikes at the ends. This either means that C board tends to attract a lot of newbies as well as a lot of super-seasoned coders, or the people at the high end are exaggerating their numbers...
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  11. #26
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I like the nice bell shape of the results chart, with the spikes at the ends. This either means that C board tends to attract a lot of newbies as well as a lot of super-seasoned coders, or the people at the high end are exaggerating their numbers...
    Or it could mean that the regulars are very sick individuals who not only code for a living but then go home and code some more....
    It is my estimation that any simple 2D or 3D game project complete with an editor either in C# or C++ using MFC or pure Win32 would certainly surpass the 30K mark specified in this poll.
    To hit the 100K mark you would really have to have a huge project and I doubt seriously it would all be coded by one person.

    But again...K-loc's mean nothing to me.

  12. #27
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by brewbuck
    That's why I like to count semicolons instead...
    From now on I'm not going to write while loops any more since for loops increase my productivity!
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #28
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by laserlight View Post
    From now on I'm not going to write while loops any more since for loops increase my productivity!
    Yeah, we really have to be specific about semi-colons... I mean what about in string-literals?

    Code:
    int main(void) {
        char muahahaha[] = ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;";
        
        return 0;
    }
    Sent from my iPadŽ

  14. #29
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Quote Originally Posted by SlyMaelstrom View Post
    Yeah, we really have to be specific about semi-colons... I mean what about in string-literals?

    Code:
    int main(void) {
        char muahahaha[] = ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;";
        
        return 0;
    }
    That looks like a productive day to me. Enough to make any software engineering manager proud!

  15. #30
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Code:
    //count to 10
    
    /* - NOT productive!
    for (int i = 1; i <= 10; ++i) {
         std::cout << i << std::endl;
    }
    */
    
    std::cout << 1 << std::endl;
    std::cout << 2 << std::endl;
    std::cout << 3 << std::endl;
    std::cout << 4 << std::endl;
    std::cout << 5 << std::endl;
    std::cout << 6 << std::endl;
    std::cout << 7 << std::endl;
    std::cout << 8 << std::endl;
    std::cout << 9 << std::endl;
    std::cout << 10 << std::endl;
    //much better :)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  2. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  5. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM