pouët.net

Go to bottom

Goto, Break and Continue

category: offtopic [glöplog]
(void) strcat
added on the 2018-12-22 17:36:14 by skarab skarab
another reason to add creative_cast<> to the language standard
added on the 2018-12-22 17:39:07 by jco jco
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.
added on the 2018-12-22 18:17:57 by Adok Adok
BTW, take a look at this: Clifford's Device

(This guy is a member of Mensa Austria)
added on the 2018-12-22 18:19:19 by Adok Adok
projektbeschreibung is 31337 too
added on the 2018-12-22 18:20:31 by skarab skarab
you can always tattoo such bad code on your arm!
BB Image
Quote:
However, this may make your program harder to maintain and read.

Bloody hell...
added on the 2018-12-22 20:36:24 by svo svo
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 \
added on the 2018-12-23 00:40:59 by T$ T$
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 ;)
added on the 2018-12-23 16:23:55 by superplek superplek
now I'll add if(1) to all my code line, and I'll give it a name.
added on the 2018-12-23 18:13:53 by skarab skarab
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).
added on the 2018-12-23 21:57:48 by Preacher Preacher
Preacher: But... that code is a good practical joke! :)
added on the 2018-12-23 22:22:01 by ham ham
i prove that every week!
Quote:
Just goes to prove that you can be both highly intelligent (on paper) and a complete idiot (in practice).
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!
added on the 2018-12-23 23:48:29 by Adok Adok
Quote:
Quote:
Just goes to prove that you can be both highly intelligent (on paper) and a complete idiot (in practice).
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!


So you're back with us regular folks? That'd be great.
added on the 2018-12-23 23:50:26 by superplek superplek
I am happy that you welcome me!
added on the 2018-12-23 23:57:44 by Adok Adok
Fuck what people think is right or wrong... just do what you want... break, continue and goto hell for all I care :P
added on the 2018-12-24 00:47:31 by DanLemon DanLemon
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.
added on the 2018-12-24 01:53:03 by dex46... dex46...
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.
added on the 2018-12-24 06:40:26 by Adok Adok
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.
added on the 2018-12-24 11:08:45 by Bombe Bombe
Fuck off, Bombe, you idiot.
added on the 2018-12-24 11:31:33 by Adok Adok
// 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;
added on the 2018-12-24 12:42:14 by ham ham
Quote:
Fuck off, Bombe, you idiot.

You were saying about rationality and IQ...?
added on the 2018-12-24 12:53:19 by Gargaj Gargaj
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…
added on the 2018-12-24 13:15:59 by Bombe Bombe

login

Go to top