Click here to Skip to main content
16,016,814 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%



 
GeneralWho is fooling whom here! Pin
leonm546-Jun-07 14:23
leonm546-Jun-07 14:23 
GeneralMaintaining Both Code and the associated Comments Pin
c-sharp2-Jun-07 8:49
c-sharp2-Jun-07 8:49 
QuestionOOPS Concepts Pin
Sathyan...30-May-07 19:10
Sathyan...30-May-07 19:10 
AnswerRe: OOPS Concepts Pin
WillemM30-May-07 23:56
WillemM30-May-07 23:56 
GeneralGhostDoc! Pin
Uwe Keim30-May-07 9:53
sitebuilderUwe Keim30-May-07 9:53 
GeneralReal Programmers Pin
Jim Crafton30-May-07 6:44
Jim Crafton30-May-07 6:44 
GeneralRe: Real Programmers Pin
Andrew Torrance30-May-07 6:57
Andrew Torrance30-May-07 6:57 
GeneralRe: Real Programmers Pin
Garth J Lancaster31-May-07 21:01
professionalGarth J Lancaster31-May-07 21:01 
a repost, but a goody, to match yours :-

Top 20 things likely to be overheard if you had a Klingon Programmer:
1) Defensive programming? Never! Klingon programs are always on the offense. Yes, offensive programming is what we do best.
2) Specifications are for the weak and timid!
3) This machine is GAGH! I need dual Pentium processors if I am to do battle with this code!
4) You cannot really appreciate Dilbert unless you've read it in the original Klingon.
5) Indentation?! - I will show you how to indent when I indent your skull!
6) What is this talk of 'release'? Klingons do not make software 'releases'. Our software 'escapes' leaving a bloody trail of designers and quality assurance people in its wake.
7) Klingon function calls do not have 'parameters' - they have 'arguments' -- and they ALWAYS WIN THEM.
8) Debugging? Klingons do not debug. Our software does not coddle the weak. Bugs are good for building character in the user.
9) I have challenged the entire ISO-9000 quality assurance team to a Bat-Leth contest on the holodeck. They will not concern us again.
10) A TRUE Klingon Warrior does not comment his code!
11) By filing this bug report you have challenged the honor of my family. Prepare to die!
12) You question the worthiness of my code? I should kill you where you stand!
13) Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!
14) Our competitors are without honor!
15) Python? That is for children. A Klingon Warrior uses only machine code, keyed in on the front panel switches in raw binary.
16) Klingon programs don't do accountancy. For that, you need a Ferengi.
17) Klingon multitasking systems do not support "time-sharing". When a Klingon program wants to run, it challenges the scheduler in hand-to-hand combat and owns the machine.
18) Perhaps it IS a good day to die! I say we ship it!
19) My program has just dumped Stova Core!
20) Behold, the keyboard of Kalis! The greatest Klingon code warrior that ever lived!

(from http://gradha.sdf-eu.org/textos/klingon_programmer.en.html[^])
GeneralWhile We're At It Pin
W Balboos, GHB29-May-07 7:18
W Balboos, GHB29-May-07 7:18 
GeneralRe: While We're At It Pin
Jeffrey Walton1-Jun-07 21:32
Jeffrey Walton1-Jun-07 21:32 
GeneralThe myth of self documenting code [modified] Pin
Duncan Edwards Jones29-May-07 3:05
professionalDuncan Edwards Jones29-May-07 3:05 
GeneralRe: The myth of self documenting code Pin
Gary Wheeler29-May-07 4:36
Gary Wheeler29-May-07 4:36 
GeneralRe: The myth of self documenting code Pin
El Corazon29-May-07 4:56
El Corazon29-May-07 4:56 
GeneralRe: The myth of self documenting code Pin
iactv29-May-07 8:39
iactv29-May-07 8:39 
GeneralRe: The myth of self documenting code Pin
Kevin McFarlane30-May-07 4:45
Kevin McFarlane30-May-07 4:45 
GeneralDan Saks said it best Pin
Gary Wheeler29-May-07 1:15
Gary Wheeler29-May-07 1:15 
GeneralRe: Dan Saks said it best Pin
KarstenK29-May-07 3:05
mveKarstenK29-May-07 3:05 
GeneralRe: Dan Saks said it best Pin
chaiguy133730-May-07 4:21
chaiguy133730-May-07 4:21 
GeneralRe: Dan Saks said it best Pin
KarstenK30-May-07 4:42
mveKarstenK30-May-07 4:42 
GeneralRe: Dan Saks said it best Pin
Paul Glaubitz31-May-07 2:46
Paul Glaubitz31-May-07 2:46 
JokeRe: Dan Saks said it best Pin
Xiangyang Liu 刘向阳1-Jun-07 4:24
Xiangyang Liu 刘向阳1-Jun-07 4:24 
GeneralRe: Dan Saks said it best Pin
Xiangyang Liu 刘向阳1-Jun-07 4:19
Xiangyang Liu 刘向阳1-Jun-07 4:19 
GeneralRe: Dan Saks said it best Pin
leonm546-Jun-07 14:36
leonm546-Jun-07 14:36 
GeneralComment to the comment poll Pin
KarstenK28-May-07 21:53
mveKarstenK28-May-07 21:53 
GeneralAll? Pin
Marc Clifton28-May-07 17:00
mvaMarc Clifton28-May-07 17:00 

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.