View Poll Results: Number of Source Lines?

Voters
40. You may not vote on this poll
  • 1,000

    9 22.50%
  • 2,000

    5 12.50%
  • 5,000

    5 12.50%
  • 10,000

    6 15.00%
  • 20,000

    3 7.50%
  • 40,000

    1 2.50%
  • 50,000

    4 10.00%
  • 75,000 Plus

    7 17.50%

What's the Biggest Program You have ever Written?

This is a discussion on What's the Biggest Program You have ever Written? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What's the Biggest (one man) Program You have ever Written? Here's a quick poll....

  1. #1
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812

    What's the Biggest Program You have ever Written?

    What's the Biggest (one man) Program You have ever Written?

    Here's a quick poll.
    Last edited by Davros; 11-28-2004 at 09:37 AM.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  2. #2
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Divide that by about ..... 75,000.
    Do not make direct eye contact with me.

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Lines of code does not always reflect the complexity of a program. A program written by a new programmer is likely to be longer in source code then the same program written by an experienced programmer. Also are you counting lines of comments and blank lines?

  4. #4
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >Also are you counting lines of comments

    Let's say include comments, but not blank lines. I am not expecting precise answers.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  5. #5
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    True... However, how many new programmers get to 75,000 lines and can still have it compile.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >how many new programmers get to 75,000 lines and can still have it compile.
    Code:
    /* prog.c */
    #include <stdio.h>
    
    int main ( void )
    {
      FILE *out = fopen ( "silly.c", "w" );
      long i;
    
      for ( i = 0; i < 75000; i++ )
        fprintf ( out, "/* I am silly */\n" );
    
      fclose ( out );
    
      return 0;
    }
    Code:
    $ gcc prog.c
    $ ./a.out
    $ gcc silly.c
    Looks pretty easy to me.
    My best code is written with the delete key.

  7. #7
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    ROFL @ Prelude

    I think we shouldn't count comments

    my longest program wouldn't go over 500 lines.
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  8. #8
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    didn't read the whole post before voting...so my longest was about 5K w/out comments. Now that I think about it comments really don't matter in this poll - the divisions are too great.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  9. #9
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    My biggest program was about 200k lines (don't remember if we included comments in that # or not).
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  10. #10
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903
    durr... I lied in my vote, I thought OST2 was 10k lines, but I guess it's 33K, lol (20K of effective).

    But yah, OST2's definitely my biggest project out of anything.

  11. #11
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    how do you guys write programs with 1k of lines? do you test\debug it in small chunks (seperate programs) or go through the code all over again to fix your errors?
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  12. #12
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >how do you guys write programs with 1k of lines?
    We start at the top and go down, making things up as they come to us. When we get to the bottom, we compile and hope like hell that it works. If it doesn't, we repeat the process until it does. This is called incremental development. For each build, we get that much closer to a working application by applying what we learned from the last build.
    My best code is written with the delete key.

  13. #13
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903
    Also, the bigger the program is, the more you should generally split your code in to different files. I'm not sure if this is how it's done professionally but whenever I make a new class, I make a new cpp/h pair for that class that, if I wanted to, could be stripped out of the program and popped in to another one very easily. Right now, whenever I make some code that is very useful, I shell it out of the program and pop it in to my "Library" which is just a folder of code, and then all my projects point to that source, so when I find a bug in one program, all other programs using that library get fixed....

    *stops blabbing*

    But anyway, the way I make programs that have >1k lines is to just start off with the basics and build on from there till I've got my finished product (like Prelude said, for the most part )
    Last edited by jverkoey; 11-28-2004 at 01:34 PM.

  14. #14
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    Quote Originally Posted by Prelude
    >how do you guys write programs with 1k of lines?
    We start at the top and go down, making things up as they come to us. When we get to the bottom, we compile and hope like hell that it works. If it doesn't, we repeat the process until it does. This is called incremental development. For each build, we get that much closer to a working application by applying what we learned from the last build.
    I think he was asking a legitimate question and got a sarcastic answer....just look at the sig. Not all beginner questions need an over the top bashing reply.

    Anyways, Brain Cell, programs with a lot of code are very rarely one monolithic file - they are broken into small pieces that work well together (ideally). When I write any program (no matter how small or big) I compile, run, and debug it periodically to check my logic (Its much easier to find a bug in 25 lines of code than 500 ). It is good to acquire this habit early in your programming career as it will be very helpful later on.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  15. #15
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I think he was asking a legitimate question
    I think so too, but with the options given, you would think that common sense could give a reasonable answer.

    >got a sarcastic answer....
    Tact is for people who aren't witty enough to be sarcastic.

    >Not all beginner questions need an over the top bashing reply.
    I prefer subtle bashing to over the top bashing. That way we have at least a nice range of bashers with quzah being over the top, Salem taking the middle ground, and me with something subtle and ambiguous. It's also convenient that each of us can slip into a different role so that the victim doesn't get too much of a good thing and run away screaming.

    >do you test\debug it in small chunks
    Yes.

    >or go through the code all over again to fix your errors?
    Only in very tiny scratch and toss programs.
    My best code is written with the delete key.

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  4. matrix program written in c++
    By boa_321 in forum C++ Programming
    Replies: 2
    Last Post: 02-03-2003, 08:33 AM
  5. redirection program help needed??
    By Unregistered in forum Linux Programming
    Replies: 0
    Last Post: 04-17-2002, 05:50 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21