I know there are a few software developers here. Just for fun...
// Happy debugging, suckers
by MeanMrMustard 3 Replies latest social humour
-
-
StephaneLaliberte
1) rand() is a random number between 0 and 32767. This means that this statement would return false on occasion and would likely be difficult to find.
2) This is sabotage and the programmer could receive a hefty bill for the time invested in fixing this. The comment leaves no doubt about the intentions.
-
MeanMrMustard
@Stephanie:
It's in the pre-processor, so it is a bit more devious. That is, someone might write code that looks like this:
if(my_variable == true)
{
// some code here
}
The keyword
true
would still be in the original code. All editors would register it as a normal code. It's only when the compilation process starts, and the pre-processor kicks in right before the compiler get ahold of the code, that the basic text replacement from "true
" to "(rand() > 10)
" takes place. -
Simon
That is truly evil and brilliant all at the same time