The most worthless comment ever
-
When was the last time you loaded a box of green-bar in a line printer?
Software Zen:
delete this;
1992-08-02 (or thereabouts), but I still print my code occasionally. Nowadays I use Word and I have a header that indicates the filename and pages.
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
hey, that was not suppose to be viewable. That is how VS knows when it reaches EOF.
Yusuf May I help you?
-
hey, that was not suppose to be viewable. That is how VS knows when it reaches EOF.
Yusuf May I help you?
-
chill out man, may be you did not notice the joke icon. :-O
Yusuf May I help you?
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
I came across one a few days ago -
////////This is a comment////////////
:doh:The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files. Visit the Hindi forum here.
-
At least it's accurate.
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
Not only worthless comments, but also funny, seen in the assembly code of DG AOS/VS (can anyone remember it?) In the code executed when one shut down the system: < some code > HALT HALT ;JUST IN CASE The HALT instruction stopped the CPU completely In the panic code - executed when there was an error which the OS couldn't handle: < some code > ; I don't know how you got here, but you're in deep s**t Jerry
-
Not only worthless comments, but also funny, seen in the assembly code of DG AOS/VS (can anyone remember it?) In the code executed when one shut down the system: < some code > HALT HALT ;JUST IN CASE The HALT instruction stopped the CPU completely In the panic code - executed when there was an error which the OS couldn't handle: < some code > ; I don't know how you got here, but you're in deep s**t Jerry
If DG == Data General, I'm not surprised. I used a DG 'Nova 4' system one time, a very long time ago. Regarding the doubled
HALT
instruction, that's also not too surprising. Depending upon the interrupt architecture and when they increment the program counter, I could see a glitch between decoding theHALT
instruction and its execution causing the code to continue executing.Software Zen:
delete this;
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
// Enter comments here.
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
We have some changes...
Steve Naidamast Black Falcon Software, Inc. blackfalconsoftware@ix.netcom.com
-
Super Lloyd wrote:
// enumerating i from 0 to 10 (Lloyd 29 07 2010) for (int i = 0; i < 10; i++)
Your comments are not accurate. You are enumerating from 0 to 9!
Pete
-
At least it's accurate.
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
Helpful if you intend to print it. Of course, I would expect a ////////BEGIN//////// or //////////Filename.cpp///////////////////// at the top. With the END tag, you will be able to tell if the entire document printed when the secretary delivers your hardcopy. :-D
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
----some code here---- // 19-03-2009 ----some code here----
Judge a man by his questions rather than his answers. - Voltaire
-
how about?
// enumerating i from 0 to 10 (Lloyd 29 07 2010)
for (int i = 0; i < 10; i++)
{
// printing i to the console (Lloyd 29 07 2010)
Console.WriteLine(i);
// TODO should do something more useful later (Lloyd 29 07 2010)
}A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
A fantastic example. Comments are for programmers, and presumably the programmers know how to form console output and for loops, making the comments fairly pointless. This code breaks two good coding rules.. 1) comments are about WHY, not WHAT.. WHY are we enumerating 100 times? 2) use of really cryptic variable names, such as 'i'. Yechh.
-
//IOTEMCO This acronym was the brain child of a consultant working on our project. Its meaning: Intuitivly Obvious To Even the Most Casual Observer. This was somehow helpful in his mind.
-
A fantastic example. Comments are for programmers, and presumably the programmers know how to form console output and for loops, making the comments fairly pointless. This code breaks two good coding rules.. 1) comments are about WHY, not WHAT.. WHY are we enumerating 100 times? 2) use of really cryptic variable names, such as 'i'. Yechh.
Glad that someone was able to get the depth of worthlessness of my comments! :laugh:
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
Glad that someone was able to get the depth of worthlessness of my comments! :laugh:
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
// no comment
Thorn