Click here to Skip to main content
15,891,316 members

Survey Results

What do you comment in your code?   [Edit]

Survey period: 28 May 2007 to 3 Jun 2007

Conventional wisdom says comments are good. How far do you go in the pursuit of explanation?

Q1. I comment...

OptionVotes% 
All namespaces21926.61
All classes, structs and interfaces60573.51
All public methods67181.53
All protected methods47958.20
All private methods43452.73
All events and delegates40348.97
All class member variable declarations28234.26
All constant declarations29135.36
All enumerations33240.34
All local variable declarations14817.98
All control structures such as loops and case statements29936.33
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralRe: Denied the right to vote! Pin
Chris Maunder28-May-07 8:39
cofounderChris Maunder28-May-07 8:39 
JokeRe: Denied the right to vote! Pin
Tom Welch29-May-07 9:12
Tom Welch29-May-07 9:12 
GeneralRe: Denied the right to vote! Pin
Grimolfr29-May-07 2:33
Grimolfr29-May-07 2:33 
GeneralRe: Denied the right to vote! Pin
TheGreatAndPowerfulOz29-May-07 9:00
TheGreatAndPowerfulOz29-May-07 9:00 
GeneralRe: Denied the right to vote! Pin
Ashley van Gerven29-May-07 17:49
Ashley van Gerven29-May-07 17:49 
GeneralRe: Denied the right to vote! Pin
John M. Drescher28-May-07 14:25
John M. Drescher28-May-07 14:25 
GeneralMostly in Complicated Logics Pin
Senthil Kumar U27-May-07 23:10
Senthil Kumar U27-May-07 23:10 
GeneralRe: Mostly in Complicated Logics Pin
Pater28-May-07 22:17
Pater28-May-07 22:17 
Yea, agree to this. I comment *where necessary*, not where a specific scheme forces me to comment (that often lead to comments of the form "function X does X" when X itself is descriptive enough). Therefore I mostly comment on the algorithms and on what the code does, not on static structures.
GeneralRe: Mostly in Complicated Logics Pin
Seun29-May-07 7:25
professionalSeun29-May-07 7:25 
Generalonly essential comments Pin
ed welch27-May-07 21:41
ed welch27-May-07 21:41 
GeneralRe: only essential comments Pin
Jörgen Sigvardsson27-May-07 22:50
Jörgen Sigvardsson27-May-07 22:50 
GeneralRe: only essential comments Pin
leppie29-May-07 5:29
leppie29-May-07 5:29 
GeneralRe: only essential comments Pin
Jörgen Sigvardsson29-May-07 5:34
Jörgen Sigvardsson29-May-07 5:34 
GeneralRe: only essential comments Pin
Chris Maunder28-May-07 2:17
cofounderChris Maunder28-May-07 2:17 
GeneralRe: only essential comments Pin
ed welch28-May-07 3:25
ed welch28-May-07 3:25 
GeneralRe: only essential comments Pin
mungflesh28-May-07 23:43
mungflesh28-May-07 23:43 
GeneralRe: only essential comments Pin
John R. Shaw29-May-07 2:01
John R. Shaw29-May-07 2:01 
GeneralRe: only essential comments Pin
Grimolfr29-May-07 2:36
Grimolfr29-May-07 2:36 
GeneralRe: only essential comments Pin
Kevin McFarlane30-May-07 4:59
Kevin McFarlane30-May-07 4:59 
Generalproblem sync code with old comment? Pin
devvvy28-May-07 4:35
devvvy28-May-07 4:35 

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.