C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 09-18-2009, 08:55 AM   #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.
__________________
"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.

Last edited by Devil Panther; 09-18-2009 at 08:58 AM.
Devil Panther is offline   Reply With Quote
Old 09-18-2009, 09:30 AM   #2
(?<!re)tired
 
Mario F.'s Avatar
 
Join Date: May 2006
Location: Portugal
Posts: 5,656
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)
__________________
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.



Last edited by Mario F.; 09-18-2009 at 09:36 AM.
Mario F. is offline   Reply With Quote
Old 09-18-2009, 11:19 AM   #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!
__________________
"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.

Last edited by Devil Panther; 09-18-2009 at 11:27 AM.
Devil Panther is offline   Reply With Quote
Old 09-18-2009, 11:30 AM   #4
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,186
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.
__________________

"A man can't just sit around." -- Larry Walters

Last edited by MK27; 09-18-2009 at 12:56 PM.
MK27 is offline   Reply With Quote
Old 09-18-2009, 11:31 AM   #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.
Devil Panther is offline   Reply With Quote
Old 09-18-2009, 11:36 AM   #6
The larch
 
Join Date: May 2006
Posts: 3,222
Quote:
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.

Quote:
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).
anon is offline   Reply With Quote
Old 09-18-2009, 11:36 AM   #7
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,186
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
__________________

"A man can't just sit around." -- Larry Walters

Last edited by MK27; 09-18-2009 at 11:42 AM.
MK27 is offline   Reply With Quote
Old 09-18-2009, 11:50 AM   #8
(?<!re)tired
 
Mario F.'s Avatar
 
Join Date: May 2006
Location: Portugal
Posts: 5,656
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?
__________________
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.



Last edited by Mario F.; 09-18-2009 at 11:54 AM.
Mario F. is offline   Reply With Quote
Old 09-18-2009, 11:56 AM   #9
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 11,338
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
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is offline   Reply With Quote
Old 09-18-2009, 11:57 AM   #10
Malum in se
 
abachler's Avatar
 
Join Date: Apr 2007
Posts: 3,188
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
 
__________________
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.
abachler is offline   Reply With Quote
Old 09-18-2009, 12:30 PM   #11
Devil's Advocate
 
SlyMaelstrom's Avatar
 
Join Date: May 2004
Location: Out of scope
Posts: 3,778
When are we going to start enforcing the "Search before you make new threads" rule?
__________________
Terms of Service
By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure.

Violators will be prosecuted to the fullest extent of the law.
SlyMaelstrom is offline   Reply With Quote
Old 09-18-2009, 12:45 PM   #12
Malum in se
 
abachler's Avatar
 
Join Date: Apr 2007
Posts: 3,188
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.
__________________
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.

Last edited by abachler; 09-18-2009 at 12:54 PM.
abachler is offline   Reply With Quote
Old 09-18-2009, 12:57 PM   #13
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,186
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?
__________________

"A man can't just sit around." -- Larry Walters
MK27 is offline   Reply With Quote
Old 09-18-2009, 02:47 PM   #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.
Devil Panther is offline   Reply With Quote
Reply

Tags
poll, size, source-code

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 07:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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