Click here to Skip to main content
16,011,578 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: This code sure is legible eh? Pin
Navin2-Sep-03 5:36
Navin2-Sep-03 5:36 
GeneralRe: This code sure is legible eh? Pin
Taka Muraoka2-Sep-03 7:33
Taka Muraoka2-Sep-03 7:33 
GeneralRe: This code sure is legible eh? Pin
Gary Wheeler2-Sep-03 5:52
Gary Wheeler2-Sep-03 5:52 
GeneralBoth are important... Pin
J. Dunlap1-Sep-03 18:21
J. Dunlap1-Sep-03 18:21 
GeneralRe: Both are important... Pin
Matt Newman2-Sep-03 2:35
Matt Newman2-Sep-03 2:35 
GeneralSame thing Pin
Jim A. Johnson1-Sep-03 16:25
Jim A. Johnson1-Sep-03 16:25 
GeneralRe: Same thing Pin
Chris Maunder1-Sep-03 16:54
cofounderChris Maunder1-Sep-03 16:54 
GeneralRe: Same thing Pin
berndg1-Sep-03 20:16
berndg1-Sep-03 20:16 
While it is certainly true that good coding style and well-chosen names (to name just two techniques) help a lot in making code readable, it is also true that only mickey-mouse projects can be understood without comments, diagrams, and documentation.

Projects that take several man-years to develop and contain dozens of classes simply cannot be understood by good coding practise alone.

Documentation, model diagrams, and comments are paramount. The measure is not whether the author finds the code self-explainatory, it is whether a fellow developer can navigate and take over control eventually.

After all, when the more tedious maintenance work starts, you will want to move on to a new project, won't you Wink | ;-)

Bernd
GeneralRe: Same thing Pin
Chris Beckett2-Sep-03 3:57
Chris Beckett2-Sep-03 3:57 
GeneralRe: Same thing Pin
leppie2-Sep-03 7:46
leppie2-Sep-03 7:46 
GeneralRe: Same thing Pin
John M. Drescher2-Sep-03 16:05
John M. Drescher2-Sep-03 16:05 
GeneralRe: Same thing Pin
Wade Tingley2-Sep-03 16:40
Wade Tingley2-Sep-03 16:40 
GeneralRe: Same thing Pin
Gary Wheeler2-Sep-03 9:23
Gary Wheeler2-Sep-03 9:23 
GeneralRe: Same thing Pin
brianwelsch3-Sep-03 15:48
brianwelsch3-Sep-03 15:48 
GeneralRe: Same thing Pin
Gary Wheeler4-Sep-03 1:47
Gary Wheeler4-Sep-03 1:47 
GeneralRe: Same thing Pin
brianwelsch4-Sep-03 2:53
brianwelsch4-Sep-03 2:53 
GeneralRe: Same thing Pin
Matt Newman2-Sep-03 2:38
Matt Newman2-Sep-03 2:38 
GeneralCListCtrl Pin
Nick Seng1-Sep-03 15:47
Nick Seng1-Sep-03 15:47 
GeneralThis is going... Pin
Paul Watson1-Sep-03 20:24
sitebuilderPaul Watson1-Sep-03 20:24 
GeneralDon't worry Pin
Nick Seng1-Sep-03 20:35
Nick Seng1-Sep-03 20:35 
GeneralAhh, but you... Pin
Paul Watson1-Sep-03 20:40
sitebuilderPaul Watson1-Sep-03 20:40 
GeneralTo be fair..... Pin
Nick Seng1-Sep-03 20:44
Nick Seng1-Sep-03 20:44 
GeneralRe: To be fair..... Pin
Jonas Larsson2-Sep-03 2:19
Jonas Larsson2-Sep-03 2:19 
GeneralRe: To be fair..... Pin
KaЯl3-Sep-03 1:27
KaЯl3-Sep-03 1:27 
GeneralRe: This is going... Pin
Ian Darling2-Sep-03 7:09
Ian Darling2-Sep-03 7:09 

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.