Click here to Skip to main content
15,921,577 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



 
GeneralEasy understandable code really exists? Pin
Masaaki Onishi6-Sep-03 17:34
Masaaki Onishi6-Sep-03 17:34 
GeneralComments? Pin
Tim Smith6-Sep-03 7:14
Tim Smith6-Sep-03 7:14 
GeneralRe: Comments? Pin
Bugs Bunny6-Sep-03 10:20
Bugs Bunny6-Sep-03 10:20 
GeneralComment should be useful Pin
Anonymous5-Sep-03 20:53
Anonymous5-Sep-03 20:53 
GeneralRe: Comment should be useful Pin
Jörgen Sigvardsson5-Sep-03 21:30
Jörgen Sigvardsson5-Sep-03 21:30 
GeneralFunction headers Pin
praiseGod7775-Sep-03 7:14
praiseGod7775-Sep-03 7:14 
GeneralEasy code for the compiler Pin
Dirk Vandenheuvel5-Sep-03 2:23
Dirk Vandenheuvel5-Sep-03 2:23 
GeneralRe: Easy code for the compiler Pin
Anonymous5-Sep-03 8:26
Anonymous5-Sep-03 8:26 
GeneralRe: Easy code for the compiler Pin
Renault the Duck5-Sep-03 17:20
Renault the Duck5-Sep-03 17:20 
GeneralRe: Easy code for the compiler Pin
Anonymous8-Sep-03 7:53
Anonymous8-Sep-03 7:53 
GeneralRe: Easy code for the compiler Pin
Oleksandr Kucherenko5-Sep-03 22:04
Oleksandr Kucherenko5-Sep-03 22:04 
GeneralWhat would you prefer? A straight road or a maze and a map? Pin
G. Raven4-Sep-03 5:49
G. Raven4-Sep-03 5:49 
GeneralRe: What would you prefer? A straight road or a maze and a map? Pin
Paul Oss4-Sep-03 11:54
Paul Oss4-Sep-03 11:54 
GeneralComments, Margins, and Readability Pin
Marc Clifton4-Sep-03 3:08
mvaMarc Clifton4-Sep-03 3:08 
Personally, I don't like comments interlaced in the code. It reduces the readability of both, and the aesthetics of well-formatted code (which is valuable information in itself). So, I put my comments out past column 100 usually (well, obviously, comments outside of methods and classes aren't hanging out there in space--just the ones associated with a line of code).

For me at least, it's very visually appealing. So, I really can't understand why a lot of code guidelines say "nothing past column 80". WTF? It's not like we're programming on teletypes!

But then again, my commenting style really makes it a PITA to reformat code for a CP article!

Marc

Latest AAL Article
My blog
Join my forum!
GeneralRe: Comments, Margins, and Readability Pin
Michael P Butler4-Sep-03 5:23
Michael P Butler4-Sep-03 5:23 
GeneralRe: Comments, Margins, and Readability Pin
Marc Clifton4-Sep-03 5:27
mvaMarc Clifton4-Sep-03 5:27 
GeneralRe: Comments, Margins, and Readability Pin
Michael P Butler4-Sep-03 5:49
Michael P Butler4-Sep-03 5:49 
GeneralRe: Comments, Margins, and Readability Pin
Gary R. Wheeler4-Sep-03 7:01
Gary R. Wheeler4-Sep-03 7:01 
GeneralRe: Comments, Margins, and Readability Pin
Anonymous4-Sep-03 10:57
Anonymous4-Sep-03 10:57 
GeneralRe: Comments, Margins, and Readability Pin
cK14-Sep-03 19:00
cK14-Sep-03 19:00 
GeneralRe: Comments, Margins, and Readability Pin
Stephen Quattlebaum5-Sep-03 7:20
Stephen Quattlebaum5-Sep-03 7:20 
GeneralRe: Comments, Margins, and Readability Pin
Jörgen Sigvardsson5-Sep-03 21:30
Jörgen Sigvardsson5-Sep-03 21:30 
GeneralRe: Comments, Margins, and Readability Pin
Festus Redelinghuys7-Sep-03 13:47
Festus Redelinghuys7-Sep-03 13:47 
GeneralRe: Comments, Margins, and Readability Pin
Chris Maunder4-Sep-03 8:19
cofounderChris Maunder4-Sep-03 8:19 
GeneralRe: Comments, Margins, and Readability Pin
Marc Clifton4-Sep-03 8:24
mvaMarc Clifton4-Sep-03 8:24 

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.