|
I use jokes in the comments (the workaround comments are generally very ironic), and in a reviewed code when commenting what's wrong with that particular piece. Because it's marked TODO, and to be soon fixed by a recipient. But I slip an occasional 'obviously' (as in 'this code does that.. obviously) or 'should be doing' variations.
regards,
Kate
The wisdom is to see things truthfully.
|
|
|
|
|
I remember that I put a funny comment for myself in a code while I was practicing.. but I don't do that in assignments or exams.
|
|
|
|
|
Some good one liners help. I usually put then in the above the functions. Also I like to call some local variables silly names some times. Rather than a plain old I for a for, next go for MrLoop etc.
Why is it when you are busy everyone whats it yesterday, But when your not no-one has any work for you?
|
|
|
|
|
Ben Daq wrote: MrLoop
I generally use runner .
|
|
|
|
|
|
Exactly No, I'm conscious of that it'll not give anyone a bit help.
|
|
|
|
|
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand...
luisnike19
|
|
|
|
|
Comments aren't just for others, but the one who written the code in future.
|
|
|
|
|
Sometimes if my code requires throwing an exception, I'll write a small story (like 2 or 3 sentences) telling the what the error in some kind of silly way. is
|
|
|
|
|
I only put jokes in BEFORE code reviews... that way I can see who actually read the code BEFORE the meeting and who is reading the code AT the meeting ...
|
|
|
|
|
List<decimal> fixedDenominations = ...
double[] fixedDenArray = new double[fixedDenominations.Count];
int i = 0;
foreach (decimal d in fixedDenominations)
{
fixedDenArray[i++] = (double)d;
}
|
|
|
|
|
Jokes ???? My code is my expression, I don't want to joke when I'm in code writing process !!!
Zqr
|
|
|
|
|
I remember the time I had started my career in a small company, when no source control exists. We use to back up the folders everyday as old, new, _Date etc. Once it reached its height when a back up folder was created as "latestold" (???)
|
|
|
|
|
Sometimes you do something in the most amusing ways.
I had a situation where I refactored some code and was left with something like this:
if (check1 == true && check2 == true)
{
}
else
{
code was here.
}
|
|
|
|
|
Or if I'm just in the mood.
|
|
|
|
|
The only time I ever attempted to add a joke as a comment was in an attempt to hide the embarrassment of using a 'GOTO' statement in some vba code was writing (about 100 years ago); can't remember the joke!
for the record: That was the first and last time I ever used a GOTO statement
|
|
|
|
|
I have seen many times comments like - the day when the code page was started comment was: "Happy Birthday!"
SQL.NET
|
|
|
|
|
i write poems there! and if they be interpreted while having the code in mind ,sometimes it can be a real fun!
|
|
|
|
|
Hi all,
Though I really like to write funny words whereever I get chances but I don't do this when it comes to coding. But, one of my team mate does a lot. Specifically, whenever he is having a tough time with our boss then he abuses him in the code comment region. He must thank to god that the boss does not read the code too often.
There is no foolish question, there is no final answer...
modified on Tuesday, July 27, 2010 9:37 AM
|
|
|
|
|
I never thought that anyone would put in jokes in comment field.
|
|
|
|
|
I know people who've put nasty words in error messages for their own amusement only to forget to change them when it goes live, and the day that message pops up !!!! Something along the lines of 'This cr*p system I was asked to write has broken' - or even something more personal !!
|
|
|
|
|
The internal application I wrote is used by one person so a few of the error messages are personalised, e.g. "Order number is required. Do pay attention, *Agatha."
|
|
|
|
|
That's great - I never thought of that !!
|
|
|
|
|
Where do all the easter eggs come from, otherwise?
|
|
|
|
|
Remembering I have been here more than 20 years and they can't sack me now, I can allow myself a bit of fun in the comments. No-one reads it but me and my colleagues, and QS can't read English.
No-one here has written any examples of their fun comments, shame.
I did a lot of help stuff on one project, and sometimes there was no requirement, so if they pressed F1 they would get
-no use asking me, I don't know either
-no help here, ask Toby
------------------<;,><-------------------
|
|
|
|