Goto, Break and Continue
category: offtopic [glöplog]
(void) strcat
another reason to add creative_cast<> to the language standard
31337 programmers code in x86 Assembler. In x86 Assembler, there is no "while", no "for", no "do" etc. but only JMP, JNE, JE, JG, JL etc., which are essentially combinations of "if" and "goto". So, using "goto" is a sign that you are 31337.
projektbeschreibung is 31337 too
you can always tattoo such bad code on your arm!
Quote:
However, this may make your program harder to maintain and read.
Bloody hell...
Quote:
switch (argc-1)
{
if (0) { case 0: num = "zero"; }
if (0) { case 2: num = "two"; }
if (0) { case 3: num = "three"; }
if (0) { case 4: num = "four"; }
if (0) { case 5: num = "five"; }
if (0) { default: num = "many"; }
printf("Called with %s arguments.\n", num);
break;
case 1:
printf("Called with one argument.\n");
}
holy shit... / X_X \
Quote:
(This guy is a member of Mensa Austria)
A link would've been better than a link plus a solid confirmation that this gentleman suffers from autism ;)
now I'll add if(1) to all my code line, and I'll give it a name.
plek: makes you curious to see that guy's label-jumping sorting algos ;)
Quote:
(This guy is a member of Mensa Austria)
Just goes to prove that you can be both highly intelligent (on paper) and a complete idiot (in practice).
Preacher: But... that code is a good practical joke! :)
i prove that every week!
Quote:
I left Mensa in 2014 because you are right, there are actually some true idiots in that club. One of them even contacted my employer because of a debate in the FB group of Mensa Austria. Imagine!Just goes to prove that you can be both highly intelligent (on paper) and a complete idiot (in practice).
Quote:
Quote:I left Mensa in 2014 because you are right, there are actually some true idiots in that club. One of them even contacted my employer because of a debate in the FB group of Mensa Austria. Imagine!Just goes to prove that you can be both highly intelligent (on paper) and a complete idiot (in practice).
So you're back with us regular folks? That'd be great.
I am happy that you welcome me!
Fuck what people think is right or wrong... just do what you want... break, continue and goto hell for all I care :P
Indeed, if language has some feature, use it when you need it, don't make workarounds to avoid its usage only because you are pretentious fool.
Although this is offtopic here:
An acquaintance has recently made me aware that high IQ does not automatically mean high rationality / reason. This explains my frustration with high IQ people. What I actually am looking for is rational / reasonable people.
The person I currently get on with best here in Vienna (i.e., I meet him face to face almost on a daily basis; we spend every Sunday morning drinking together a cup of coffee and talking about the state of the world) has an IQ of only 124 (lower than the Mensa threshold), but is far more rational / reasonable than anybody else I know. He also knows a couple of Mensa members in person and laughs at them - rightly so, IMHO. Curious enough, he was a very bad student, often did not attend class and basically has almost no formal education at all. His teachers considered him a failure and said he would end in the gutter. In reality, he has led a successful life as a businessman, got married, reproduced and now, at old age, is well-off.
An acquaintance has recently made me aware that high IQ does not automatically mean high rationality / reason. This explains my frustration with high IQ people. What I actually am looking for is rational / reasonable people.
The person I currently get on with best here in Vienna (i.e., I meet him face to face almost on a daily basis; we spend every Sunday morning drinking together a cup of coffee and talking about the state of the world) has an IQ of only 124 (lower than the Mensa threshold), but is far more rational / reasonable than anybody else I know. He also knows a couple of Mensa members in person and laughs at them - rightly so, IMHO. Curious enough, he was a very bad student, often did not attend class and basically has almost no formal education at all. His teachers considered him a failure and said he would end in the gutter. In reality, he has led a successful life as a businessman, got married, reproduced and now, at old age, is well-off.
A rational person would have thought, “hey, this is totally off-topic here so I won’t post this” – especially after noting herself it’s off-topic.
Fuck off, Bombe, you idiot.
// technically, there are no legit off-topics here
// cause every off-topic post is like a goto or break in the flow of a given thread
continue;
// cause every off-topic post is like a goto or break in the flow of a given thread
continue;
Quote:
Fuck off, Bombe, you idiot.
You were saying about rationality and IQ...?
Quote:
// technically, there are no legit off-topics here
// cause every off-topic post is like a goto or break in the flow of a given thread
I at least expected the person he met for coffee to have an opinion about goto…