Source-code file size? [Poll]

This is a discussion on Source-code file size? [Poll] within the General Discussions forums, part of the Community Boards category; Hello, I'm conducting a short survey from which, hopefully, we can all learn something about our nature as software developers. ...

  1. #1
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    Thumbs up Source-code file size? [Poll]

    Hello,

    I'm conducting a short survey from which, hopefully, we can all learn something about our nature as software developers.

    1) In your opinion, what is an exceptional number of lines (including comments) that a source-code file should contain?

    2) From your experience, how many lines of code (including comments) do you have in average in your source-code files?

    3) From your experience, when do you encounter a situation in which you have to work with large source-code files?
    Under what category do you place those file? (Coroprate, Private, Open-Source)
    How large do they get?
    How often do you encounter such files?


    Thank you for your time.
    Last edited by Devil Panther; 09-18-2009 at 08:58 AM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,511
    I don't think you can learn anything about "our nature as software developers" from this. How about asking such things as:

    - Do you try to study an interpret known algorithms, or do you prefer to simply apply them to your needs? Or, do you like to get into the innards of problem solving, or prefer to resuse existing solutions without wasting time on the details?

    - Do you try to extend any existing code requirements to other areas, or do you prefer to "do as you are asked".

    - How do you feel about code maintainability? Do you still worry about it, if it is not a primary concern for your project? Do you try to identify possible scenarios, or you prefer to adopt an ad-hoc approach to it? Do you actively promote it, no matter what?

    - What's your view in the face of a Good Coding Practice conflicting with your current deadlines? How do you tackle this problem?

    - What do you think you enjoy the most, the act of coding towards a goal, or reaching that goal? Or, what you think gives you more pleasure, developing an application, or finishing the development of an application?

    - How do you feel about learning new programming languages? How do you feel about coding in other programming languages? How do you feel about using a programming language you don't like?

    These and many others are probably more appropriate.
    But the size of a source file?.. Gettoutahere! (and that is also an answer to your survey)
    Last edited by Mario F.; 09-18-2009 at 09:36 AM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Quote Originally Posted by Mario F. View Post
    I don't think you can learn anything about "our nature as software developers" from this. How about asking such things as:

    - Do you try to study an interpret known algorithms, or do you prefer to simply apply them to your needs? Or, do you like to get into the innards of problem solving, or prefer to resuse existing solutions without wasting time on the details?

    - Do you try to extend any existing code requirements to other areas, or do you prefer to "do as you are asked".

    - How do you feel about code maintainability? Do you still worry about it, if it is not a primary concern for your project? Do you try to identify possible scenarios, or you prefer to adopt an ad-hoc approach to it? Do you actively promote it, no matter what?

    - What's your view in the face of a Good Coding Practice conflicting with your current deadlines? How do you tackle this problem?

    - What do you think you enjoy the most, the act of coding towards a goal, or reaching that goal? Or, what you think gives you more pleasure, developing an application, or finishing the development of an application?

    - How do you feel about learning new programming languages? How do you feel about coding in other programming languages? How do you feel about using a programming language you don't like?

    These and many others are probably more appropriate.
    But the size of a source file?.. Gettoutahere! (and that is also an answer to your survey)
    Thank you for your advice, but my questions are only a small part in a larger study I conduct.
    So unless you wish to answer, shut up and stop wasting posts!
    Last edited by Devil Panther; 09-18-2009 at 11:27 AM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Devil Panther View Post
    Thank you for your advice, but my questions are only a small part in a larger study I conduct.
    So unless you wish to answer, shut up and stop wasting posts!
    Not unless you give us a 1 in 10 chance of an amazon gift certificate

    In all honesty, if this is part of a larger, serious study, you should be doing a private anonymous survey. Like set up a simple web site and then just post the address here with an explanation.

    People will take you more seriously if you make some effort to be taken as so.
    Last edited by MK27; 09-18-2009 at 12:56 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  5. #5
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Quote Originally Posted by MK27 View Post
    Not unless you give us a 1 in 10 chance of an amazon gift certificate
    LOL, maybe on xmas
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  6. #6
    The larch
    Join Date
    May 2006
    Posts
    3,573
    1) In your opinion, what is an exceptional number of lines (including comments) that a source-code file should contain?
    I strive for 13 or 666 if possible.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  7. #7
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Devil Panther View Post
    LOL, maybe on xmas
    Alright. Make sure you read my edit to that post tho, I'm not kidding -- not because I'm a jerk, but because if someone is grading this, they will SLAM YOUR METHOD. BADLY.

    ps. I'm not a professional, which I assume that is who you were polling. Otherwise I ditto anon
    Last edited by MK27; 09-18-2009 at 11:42 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  8. #8
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,511
    Quote Originally Posted by Devil Panther View Post
    So unless you wish to answer, shut up and stop wasting posts!
    But I did answer.

    EDIT: Btw, don't you love it when "short surveys" (vide OP) suddenly become parts of larger studies (vide third post) when confronted with the ridicule of being short and inutile?
    Last edited by Mario F.; 09-18-2009 at 11:54 AM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,940
    Quote Originally Posted by Devil Panther
    1) In your opinion, what is an exceptional number of lines (including comments) that a source-code file should contain?
    That question sounds strange since you ask about something "exceptional" yet imply that a source file "should" have that property.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Devil Panther View Post
    Thank you for your advice, but my questions are only a small part in a larger study I conduct.
    So unless you wish to answer, shut up and stop wasting posts!
    Oh look its a
    Attached Images Attached Images  
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  11. #11
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    When are we going to start enforcing the "Search before you make new threads" rule?
    Sent from my iPad®

  12. #12
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by SlyMaelstrom View Post
    When are we going to start enforcing the "Search before you make new threads" rule?
    Gimme sysop powaz and ill enforce it

    Actually I think you would have to code that into the php. Anyone with fewer than say 200 posts cannot create a new thread until they read at least 3 of the threads returned on a search of the proposed title.
    Last edited by abachler; 09-18-2009 at 12:54 PM.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  13. #13
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by MK27 View Post
    In all honesty, if this is part of a larger, serious study, you should be doing a private anonymous survey. Like set up a simple web site and then just post the address here with an explanation.

    People will take you more seriously if you make some effort to be taken as so.
    @Devil Panther: Do you believe me yet?
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  14. #14
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Quote Originally Posted by MK27 View Post
    @Devil Panther: Do you believe me yet?
    Yeah I see what you mean... I thought I'm dealing with serious people here, I guess I was wrong, I blame Mario for messing it up. :P
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  2. Class methods in header or source file?
    By TriKri in forum C++ Programming
    Replies: 13
    Last Post: 09-17-2007, 05:23 AM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. Trouble with DMA Segmentation Faults
    By firestorm717 in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 09:20 PM

Tags for this Thread


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