What The Flib
-
enum Perpetrator {
CONSULTANT, // Highly paid, of course
PREDECESSOR,
COWORKER,
OUTSOURCED,
// Note: The following was added as a special case per Bug #180231
PAULA
};
class WTF : public message {
Perpetrator perp;
int replies;
WTF(Perpetrator perp) : perp(perp){
switch (perp) {
case CONSULTANT:
body.add("The resulting spaghetti was terrible");
break;
case PREDECESSOR:
body.add("Whenever they want to update the style, it requires 10 SQL UPDATE ommands");
break;
case COWORKER:
body.add("They used Math.pow to perform bit shifts");
break;
case OUTSOURCED:
body.add("It ended up costing 10 times as much, and we still don't have a usable product.");
break;
case PAULA:
// Paula should never happen, but if she does, its a Brillant occasion.
throw "Brillant";
default:
body.add("Oracle sucks!");
break;
}
}
}
class WTFReply : public message {
WTFReply(WTF &wtf) {
if (wtf.replies < 3) {
body.append("First!");
}
if (random() % 100 < 10) {body.append("I've had to do that myself.");
}
if (random() % 100 < 10) {
body.append("The real WTF is that it was written in PHP.");
}
wtf.replies++;
}
}
-
Good one
-
That's awesome! [:D]
-
Leave that to run on this site for a couple of days while everyone is taking a vacation, and noone will spot a difference!
-
A little enhancement for Version 1.1
if (random() % 100 < 93) {
body.append("Arggh, the forum software sucks!");
}
-
body.add("They used Math.pow to perform bit shifts");
HEY
-
"That's soooooooooooooooooooo" + (IsTrue()).ToString();
-
@Taliesin said:
"That's soooooooooooooooooooo" + (IsTrue()).ToString();
//Sorry for the mistake but I suposse that the guys in the U.I department can get rid of those kind of things, ater all I send the text,
//they are responsible for the format. Isn't it?
-
A self-constructing forum?
Skynet can't be far behind, surely. Maybe that's why the Terminators
were pissed - revenge on the human race for letting Paula Bean near
their source code.
-
What's a flib?
-
@stannius said:
What's a flib?
I like the cut of your flib, simpson!
No?
When you eat lobster, do you wear a flib?
No?
I dunno what it is.[:D]
-
@stannius said:
What's a flib?
<FONT color=#0000cc>FLib - High-Quality Java Components</FONT>
<FONT size=-1>FLib is a free, open source liibrary of high-quality Java components.
<FONT color=#008000>flib.sourceforge.net/ - 4k - </FONT><NOBR><FONT color=#7777cc>Cached</FONT> - <FONT color=#7777cc>Similar pages</FONT></NOBR></FONT>All hail the almighty Google!
-
@stannius said:
What's a flib?
I think it's pronounced WTF lib - as in, a library of WTF functions. That's how I read it anyway.
-
Actually, it was a (I guess failed) attempt at a play on words. WTF madlib
-
@dhromed said:
body.add("They used Math.pow to perform bit shifts");
HEY
No offense man, :-) There are worse ways:
// No, I have never really seen this, but it COULD happen :-)
int pow = 1;
for (int i = 0; i < bits; ++i) {
pow *= 2;
}
int shifted = 0;
while (pow--) shifted += var;
assert ((shifted >> bits) == var);
-
@danielpitts said:
Actually, it was a (I guess failed) attempt at a play on words. WTF madlib
I guessed that as well, but I figured I'd play along.
-
@danielpitts said:
Actually, it was a (I guess failed) attempt at a play on words. WTF madlib
What the (expletive)?
-
@danielpitts said:
if (wtf.replies < 3) {
body.append("First!");
}
shoudn't that be "Fist!" ?
btw, seems you missed a couple lines of code:
if (not isTrue(user == 'admin' && password == 'admin')) {
throw FILE_NOT_FOUND_ERROR;
}
-
@gonchuki said:
btw, seems you missed a couple lines of code:
if (not isTrue(user == 'admin' && password == 'admin')) {
throw FILE_NOT_FOUND_ERROR;
}
Actually, it would be "return new ClassNotFoundException()"
-
@danielpitts said:
enum Perpetrator {
CONSULTANT, // Highly paid, of course
PREDECESSOR,
COWORKER,
OUTSOURCED,
// Note: The following was added as a special case per Bug #180231
PAULA
};
class WTF : public message {
[...]
}
class WTFReply : public message {
[...]
}
<font size="5">
T</font>his is great! An almost complete summary of the best of WTF in less than 100 lines. Such a time-saver.