- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
The radio. Thanks god, for a moment I thought you were going to talk about the movie. *shudders*
Admin
Well, "resistance is useless" is correct, if you're quoting the cybermen of old, as in doctor who's tomb of the cybermen. which, by the by, is obviously the template for the Borg. another case of USA pop culture appropriating what the brits did first, and often better; file alongside Three's Company (aka "Man About the House") and so on.
Admin
It occurs to me that it may fetch items that compare as equals but are different objects. Great method naming though.
Admin
It could be a symbol versioning system, where the system has to support entry points defined years in the past with the same (or backward-compatible) semantics.
This of course implies that it took 24 tries (so far) to come up with a function that returns "true" when given no arguments.
Admin
Oh, it's much, much worse than that.
Let us assume that there are at least 23 other functions with the same name, but with the 24 suffix changed to other numbers.
Let us also assume that at least one of these other functions does not accept arguments.
Let us also assume that these functions are required.
Therefore, the most likely explanation is that each function checks the states of various globally defined flags to determine which course of action should be undertaken based on those flags. They may also run other functions. For example, this function given today could check the state of three motors and start up the auxiliary fan on pump 14 in the cafeteria. This could explain why several of these functions return false. The cafeteria was bulldozed in 1978.
In all these cases, the actual purpose of these functions is hidden from the programmer. It shows that they are using bad names, non-encapsulated writing styles, and a whole host of other WTFs. The code is a nightmare, a true blend of blasphemy and horror that would make a normal man weep. Understanding this code would be an effort for which Hercules himself would give you a pat on the back.
And yes, I have seen this kind of crap before. My favorite is a pair of globally defined variables. They were defined as two bits in the int8 "FLAGS1" variable, and they were called "MISC1" and "MISC2".
Admin
In most computer programming classes, they insist on telling you to name your variables in a clear fashion, and stick to the best desciption of what they contain. This is not QBASIC anymore, you're upgrading to real, professional grade languages, so do not use A, B, C as variable names, that's totally uncool.
What they do not insist on, however, it that the student uses meaningful names for functions (or class members) because it is so extremely obvious and self implicating.
I guess the average intelligence of base end programmers has been overestimated. 24 versions if return_true()? really...
They call it the "mystery function" call it for a surprise().
I feel for Hank though.
CAPTCHA: hotdog, and I don't know why.
Admin
</font>
Admin
Really? My first thought was that Alex wasn't doing a good job of anonymizing if the Symantic logo is in the name, only to fid out its an ad. >:(
Admin
It does not matter. It never ends. Why should it end at the beginning?
I was recently looking at some code at saw a line like:
"Description" is a placeholder for the name which I do not recall, but the rest of the line was as above. Hungarian Notation rules.
Sincerely,
Gene Wirchenko
Admin
Admin
It's clear that this is just an example of code obfuscation to throw off reverse engineering attempts. It's just that they forgot where they put the de-obfuscator... yeah... that's it.
Admin
Except the Earth was destroyed before final output could be achieved so there could have been operations left in the pipe to change that nine to a seven.
Admin
I prefer
return (return_true_6() * return_true_9()) ? TRUE : FALSE;
of course after defining in my "answer.h" file
#define TRUE false
#define FALSE true
Admin
If the function doesn't always return true, he'd better rename it to:
bool return_true_sometimes_and_false_otherwise_24()
Admin
This is where my head exploded:
But at least we now have a mathematical definition for half-truths: true*0.5, or was that false/2 ??
Thank you very much.
Admin
"Resistance is Futile"
The Master, "The Deadly Assassin", Dr Who
So even the actual phrase itself was used first on Who :)
Rich
Admin
Send me $0.00 in cash in an empty envelope.
Admin
Hopefully that is in USD; I don't have any other currency, except a few pesos lying about. Heck, I'll throw those in for good measure (these are the old Mexican pesos, so they are about 1/1000th of a new peso).
Anyway, I put my money in the empty envelope, placed it on a wooden table, took a picture, scanned it into the computer, printed it out, made a copy, folded it 7.5 times and faxed it to you. When should I expect my first newsletter?
Admin
public List fetchSameButDifferent(List other) {
return other.clone();
}
Admin
Turned out to possibly be "What do you get if you multiply six by nine?" In fact, that is probably not the actual answer since it was the answer retrieved through Arthur Dent's interaction, which may have spoiled results, who happened to be a Golgafrinchen descendent, which may have spoiled results, with the humans after the Golgafrinchen landing, which may have spoiled results, before completion of the program anyway, which may have spoiled results.
Admin
or if you:
#DEFINE SIX = 1 + 5
#DEFINE NINE = 8 + 1
and take SIX * NINE (yanked from Wiki, of course)
Admin
Wouldn't you want to Try and Catch(TerroristException te) and then return("bomb") to sender?
Admin
<Guess>I think this enterprisey system has developers that aren't allowed to modify (or reuse) existing functions due to management direction, no documentation, no knowledge passed on, no time to find out how it works. So they simply create a new "return_true" function that doesn't require any full regression test of the entire system.</Guess>
Admin
Which just makes it more funny, since he did it unintentionally.
Admin
It's in your printer right now! Top page in the feed tray.
Admin
Excellent insight into today's politics and views on governmental policy. When will you be running for office?
Admin
Of course you'd be chided.
Everyone knows that resistance is (voltage/current).
captcha = captcha Woot!
Admin
Douglas Adams put it best himself...
nobody writes jokes in base 13 [...] I may be a pretty sad person, but I don't make jokes in base 13.
Admin
Again, from http://en.wikipedia.org/wiki/The_Answer_to_Life,_the_Universe,_and_Everything
It was later pointed out by readers that 6 × 9 = 42 if the calculations are performed in base 13, not base 10. Douglas Adams later averred that he was not aware of this at the time, and repeatedly dismissed this as an irrelevant concoction, saying that "nobody writes jokes in base 13 [...] I may be a pretty sad person, but I don't make jokes in base 13."
Admin
bool return_true_24()
{
return gIsTrue[ 23 ];
}
Admin
I was going to give some reasonings, but EVERY replay (including the blank one) was more reasonable than what I think is going on.
However I'm reasonablly sure that each of these 25 (there is a return_true with no number as well as 1-24) functions was hand coded.
Admin
erm .... i'd raher say return_true_6()*return_true_7()
the one you gave is return_true_54 ;o)
Admin
sarucxm eohtywxf xdlk mwth gmzhkt lcxqdo hwfy
Admin
You will be buttimilated!