try{
obj.Run(x);
catch
{
obj.Run(x);
}
and this
if (x==5)
x=5;
try{
obj.Run(x);
catch
{
obj.Run(x);
}
if (x==5)
x=5;
Hmm? I don't get it. It looks like code I encounter on a daily basis...
[quote name='fastcall22' timestamp='1334853299' post='4932860']
Hmm? I don't get it. It looks like code I encounter on a daily basis...
It's like making holocaust jokes in front of holocaust survivors.
Besides normal classic jokes, there is a funny thing that only we programers can laugh at. Here are two code jokes I made up:
try{
obj.Run(x);
catch
{
obj.Run(x);
}
#define NULL 0xFFFFFFF
#define true false
#define if(x) if(!(x))
#define while(x) if(x)
#define false random()%2
#define true random()%2
#define break continue
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”
throw table_exception("(? ???)? ? ???");
My favorite is still by far:
#define false random()%2
#define true random()%2
This one is a classic too:
#define break continue
My favorite is "while(1);"... placed on any random line, about 80 tabs out.
For bonus points, include a comment mocking the intended victim, preferably one calling into question the ethics of his mother around farm animals.