Click here to Skip to main content
15,892,746 members

Survey Results

Comments in code   [Edit]

Survey period: 11 Jun 2001 to 17 Jun 2001

Do you comment your code, and if so, how much?

OptionVotes% 
Real Programmers don't need comments - the code is obvious.405.42
Real Programmers don't add comments - it ensures job security121.63
I only add comments in places where the code isn't self explanatory31843.09
I add comments to explain the general structure and design20127.24
I add a lot of comments to explain as much as I can12116.40
I write novels in my code141.90
I add false and misleading comments to confuse and startle those who come after me.324.34



 
GeneralComments??? what are those??? Pin
Ben Burnett14-Jun-01 16:38
Ben Burnett14-Jun-01 16:38 
GeneralRe: Comments??? what are those??? Pin
15-Jun-01 2:49
suss15-Jun-01 2:49 
GeneralRe: Comments??? what are those??? Pin
UkJay15-Jun-01 23:18
UkJay15-Jun-01 23:18 
GeneralComments for fun & profit Pin
13-Jun-01 14:38
suss13-Jun-01 14:38 
GeneralRe: Comments for fun & profit Pin
Earl Rex Arao-arao14-Jun-01 14:03
Earl Rex Arao-arao14-Jun-01 14:03 
GeneralI Hate this type of commentaries Pin
Carlos Antollini11-Jun-01 6:05
Carlos Antollini11-Jun-01 6:05 
GeneralRe: I Hate this type of commentaries Pin
Tomasz Sowinski11-Jun-01 7:14
Tomasz Sowinski11-Jun-01 7:14 
GeneralRe: I Hate this type of commentaries Pin
12-Jun-01 12:57
suss12-Jun-01 12:57 
GeneralRe: I Hate this type of commentaries Pin
12-Jun-01 15:13
suss12-Jun-01 15:13 
GeneralRe: I Hate this type of commentaries Pin
12-Jun-01 16:57
suss12-Jun-01 16:57 
GeneralRe: I Hate this type of commentaries Pin
13-Jun-01 3:40
suss13-Jun-01 3:40 
GeneralRe: I Hate this type of commentaries Pin
Robert Dickenson14-Jun-01 16:46
Robert Dickenson14-Jun-01 16:46 
GeneralRe: I Hate this type of commentaries Pin
12-Jun-01 21:16
suss12-Jun-01 21:16 
GeneralRe: I Hate this type of commentaries Pin
13-Jun-01 3:29
suss13-Jun-01 3:29 
GeneralRe: I Hate this type of commentaries Pin
Masaaki Onishi13-Jun-01 6:41
Masaaki Onishi13-Jun-01 6:41 
GeneralRe: I Hate this type of commentaries Pin
Farhan Noor Qureshi13-Jun-01 6:44
Farhan Noor Qureshi13-Jun-01 6:44 
GeneralRe: I Hate this type of commentaries Pin
Tomasz Sowinski13-Jun-01 6:50
Tomasz Sowinski13-Jun-01 6:50 
GeneralRe: I Hate this type of commentaries Pin
Eric Hansen13-Jun-01 9:53
Eric Hansen13-Jun-01 9:53 
GeneralRe: I Hate this type of commentaries Pin
14-Jun-01 23:39
suss14-Jun-01 23:39 
GeneralRe: I Hate this type of commentaries Pin
14-Jun-01 3:31
suss14-Jun-01 3:31 
GeneralRe: I Hate this type of commentaries Pin
15-Jun-01 5:53
suss15-Jun-01 5:53 
GeneralRant on Meaningful Variable Names and Flower Boxes Pin
10-Jun-01 18:20
suss10-Jun-01 18:20 
If you use meaningful variable names and Hungarian notation, I don't think excessive comments are needed. With compicated programs that evolve over time, there is the problem of the code being changed but the comments don't get updated, so that makes it even more comfusing when the code and comments don't match.

And I hate those stupic flower boxes that people put for each function. They list the name of the function and the parameters (as if a novice programmer couldn't figure that out from the code), and maybe what each parameter does. If you named your variables correctly, you don't need to exapling the parameters.

Just adding comments to code for the sake of "greenspace" doesn't do anything to help the program. Most programmers need to focus more on programming style.

Of course there are many aritcles on this site without a single comment. As Queen Victoria would say, "I do not approve!".

Oh, and First!
GeneralRe: Rant on Meaningful Variable Names and Flower Boxes Pin
11-Jun-01 0:27
suss11-Jun-01 0:27 
GeneralRe: Rant on Meaningful Variable Names and Flower Boxes Pin
Dale Thompson11-Jun-01 5:13
Dale Thompson11-Jun-01 5:13 
GeneralRe: Rant on Meaningful Variable Names and Flower Boxes Pin
Farhan Noor Qureshi11-Jun-01 9:31
Farhan Noor Qureshi11-Jun-01 9:31 

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.