The most worthless comment ever
-
I personally don't find it necessary to worry that my editor is going to somehow 'fall off the end' of a file, and mark that end with a comment. That's like wearing a seat belt in your desk chair, because you're worried that the Earth's gravity might fail.
Software Zen:
delete this;
-
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
Oops! :-O
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.
-
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.
Super Lloyd wrote:
// TODO should do something more useful later (Lloyd 29 07 2010)
That one is actually useful - it triggers Visual Studio to add it to the Tasks List. Visual Studio Tasks List[^]
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
-
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.
-
You have just performed floccinaucinihilipilification!
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
-
Super Lloyd wrote:
// TODO should do something more useful later (Lloyd 29 07 2010)
That one is actually useful - it triggers Visual Studio to add it to the Tasks List. Visual Studio Tasks List[^]
Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
UNless it's changed in 2k10 I don't think the task list is particularly useful outside of VB because of non-overridable language specific behavior. In VB it shows all the TODOs in the solution. In C# it shows all the TODOs in open files. In C++ it shows all the TODOs in the file being edited. The latter two are near useless in larger projects. Instead I litter my .cs files with
#warning TODO blah...
lines.3x12=36 2x12=24 1x12=12 0x12=18
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
I think it is ok
-
///////////////////////////////End/////////////////////////////
Found at the end of a source file :sigh:.
Software Zen:
delete this;
If you wait five seconds, the credits will scroll past too fast to read.
I wanna be a eunuchs developer! Pass me a bread knife!
-
Hehe, yes you should! :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;
That makes sense when printing... especially on fan-fold paper. :~
-
That makes sense when printing... especially on fan-fold paper. :~
When was the last time you loaded a box of green-bar in a line printer?
Software Zen:
delete this;
-
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;