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; Originally Posted by axon I think he was asking a legitimate question and got a sarcastic answer....just look at the ...

  1. #16
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    Quote Originally Posted by axon
    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.
    I don't know if he was born a good programmer , but i do know that im a regular guy trying to learn new stuff every day .

    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.
    Well i've been programming in C for a while but i've never had to write big programmer thats why im asking.

    Thanks for sharing that axon
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  2. #17
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Location
    Mt. Prospect, IL
    Posts
    2,572
    >>if HE was

    she

    some entropy with that sink? entropysink.com

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

  3. #18
    former member Brain Cell's Avatar
    Join Date
    Feb 2004
    Posts
    472
    well she

    and i always thought Prelude was a guy...
    My Tutorials :
    - Bad programming practices in : C
    - C\C++ Tips
    (constrcutive criticism is very welcome)


    - Brain Cell

  4. #19
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    Even with the female avatar? :P

    Don't worry about it. I always thought Govtcheez was a girl.

  5. #20
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I don't know if he was born a good programmer
    I was born a really really REALLY bad programmer. My programs were ugly incarnate. Fortunately, I recovered, though I believe I ended up overcompensating and moving to the other extreme.
    My best code is written with the delete key.

  6. #21
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    So your programs are unbelievably sexy now?

  7. #22
    Registered User
    Join Date
    Mar 2003
    Posts
    580
    If I 'program' 10,000 different people's TiVOs to record something, and each 'programming session' would generate the equivalent of a line of code, does that mean I've written a single 10k line program?

    Otherwise I'm writing a physics modeling program that is several K long
    See you in 13

  8. #23
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >So your programs are unbelievably sexy now?
    I write my programs with concentrated sexy, 180 proof.
    My best code is written with the delete key.

  9. #24
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    Could I buy some of that stuff off you?

    It might be useful outside of programming, too.

  10. #25
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    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?
    You can try reading books like Object-Oriented Analysis and Design with applications by Gary Booch. A free UML tool can be found at http://www.htc.honeywell.com/dome/ Once I write what the program is supposed to do, the scenarios, I try to write diagrams of design of the program from most general subsystem relations to class methods. Then I'll write about 500 lines(about 4 related classes) and then write tests. ( You might want to try writing the tests before writing the classes might be better. But at least have a general idea of how you want to test the class at design time--you don't get stuck with untestable classes ). You should be able to easily write programs with more 15K lines of code. More than that, you'll want to try a more formal method.
    Last edited by okinrus; 11-28-2004 at 03:21 PM.

  11. #26
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Thank you Prelude, that line is going into my sig!

  12. #27
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Quote Originally Posted by gcn_zelda
    Don't worry about it. I always thought Govtcheez was a girl.
    Totally understandable mistake.

    Brain Cell,
    A big thing to keep in mind when dealing with large programs is that the particular details of a unit (say a single class) can wait to be put off for a while. What you really need to get nailed down is how it will interact with other parts of the code (essentially, the interface, but there is a bit more to it than that). The clearer the line of communication and the less communication there is amongst disjoint parts, the easier your life will be. The details of particular functions/algorithms are just that, details.
    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.

  13. #28
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    I don't know how big this is. I can't get MSVC to count the lines for me.

    But so far this is one of the biggest projects I've worked on.

  14. #29
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Bah! Who needs editors?! Just write a little Perl script to do it for you.
    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.

  15. #30
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    To write the program for you? ;-)

Page 2 of 3 FirstFirst 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