Click here to Skip to main content
15,920,438 members

Survey Results

What's more important - easily understandable code or good comments?   [Edit]

Survey period: 1 Sep 2003 to 7 Sep 2003

You would hope to get both, but given a choice, which would you take?

OptionVotes% 
Easily understandable code69066.60
Good comments34633.40



 
GeneralRe: Comments assume... Pin
Paul Oss4-Sep-03 11:56
Paul Oss4-Sep-03 11:56 
GeneralA comment is only... Pin
Steffen Büchner3-Sep-03 1:52
Steffen Büchner3-Sep-03 1:52 
GeneralRe: A comment is only... Pin
ColinDavies3-Sep-03 10:22
ColinDavies3-Sep-03 10:22 
GeneralRe: A comment is only... Pin
Steffen Büchner3-Sep-03 20:11
Steffen Büchner3-Sep-03 20:11 
GeneralNeither Pin
ColinDavies2-Sep-03 21:46
ColinDavies2-Sep-03 21:46 
GeneralRe: Neither Pin
Paul Watson2-Sep-03 22:12
sitebuilderPaul Watson2-Sep-03 22:12 
GeneralRe: Neither Pin
ColinDavies2-Sep-03 22:37
ColinDavies2-Sep-03 22:37 
GeneralRe: Neither Pin
Paul Watson2-Sep-03 23:31
sitebuilderPaul Watson2-Sep-03 23:31 
Colin Davies wrote:
So what's the point in internal understandability or comments ?

When the initial developer of an application is fired/leaves and the client has to get a new developer to maintain the application.

We recently had this exact problem. A client was in trouble as a contractor had developed a system for them and then buggered off to London. They needed some new features and so sent us the code. It was very hard to read code. Technically it worked well, the architecture was sound and the system at run-time worked. Took us ages though to work through the non-understandable code without comments.


Colin Davies wrote:
This proves that the code initially accepted was not up to scratch.

I disagree. No system can be programmed at the outset to meet all future requirements. Businesses change and require new features in existing applications. Rewriting the app is insane, the business may only have changed slightly.



Colin Davies wrote:
Adding comments and attempting to make code understandable to third parties, just proves that you have no confidence in the future of your code.

Another facet is this; We work on many projects at once and trying to keep how each one works code wise in my head at once is impossible.

At times I will be phoned on a saturday night and asked to "quickly" fix something on a 6 month old project that has long entered the Recycly bin of my mind. Having readable code with comment-pointers is invaluable at 1am on a Sunday morning. Smile | :)

Paul Watson
Bluegrass
Cape Town, South Africa

Crikey! ain't life grand?
GeneralRe: Neither Pin
ColinDavies3-Sep-03 10:32
ColinDavies3-Sep-03 10:32 
GeneralRe: Neither Pin
Paul Watson3-Sep-03 20:35
sitebuilderPaul Watson3-Sep-03 20:35 
GeneralRe: Neither Pin
ColinDavies3-Sep-03 21:17
ColinDavies3-Sep-03 21:17 
GeneralRe: Neither Pin
FruitBatInShades3-Sep-03 23:56
FruitBatInShades3-Sep-03 23:56 
GeneralRe: Neither Pin
ColinDavies4-Sep-03 0:50
ColinDavies4-Sep-03 0:50 
GeneralRe: Neither Pin
FruitBatInShades4-Sep-03 1:06
FruitBatInShades4-Sep-03 1:06 
GeneralRe: Neither Pin
ColinDavies4-Sep-03 1:33
ColinDavies4-Sep-03 1:33 
GeneralRe: Neither Pin
Paul Oss4-Sep-03 12:22
Paul Oss4-Sep-03 12:22 
GeneralRe: Neither Pin
ColinDavies4-Sep-03 17:26
ColinDavies4-Sep-03 17:26 
GeneralRe: Neither Pin
Paul Oss4-Sep-03 20:43
Paul Oss4-Sep-03 20:43 
GeneralRe: Neither Pin
Renault the Duck5-Sep-03 17:30
Renault the Duck5-Sep-03 17:30 
GeneralRe: Neither Pin
Paul Oss5-Sep-03 20:19
Paul Oss5-Sep-03 20:19 
GeneralRe: Neither Pin
Jim A. Johnson3-Sep-03 8:18
Jim A. Johnson3-Sep-03 8:18 
GeneralRe: Neither Pin
ColinDavies3-Sep-03 10:13
ColinDavies3-Sep-03 10:13 
GeneralRe: Neither Pin
Paul Oss4-Sep-03 12:28
Paul Oss4-Sep-03 12:28 
GeneralRe: Neither Pin
Steffen Büchner3-Sep-03 20:24
Steffen Büchner3-Sep-03 20:24 
GeneralRe: Neither Pin
brianwelsch3-Sep-03 9:59
brianwelsch3-Sep-03 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.