- 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
Admin
Found it!
public static function getReallyRandomName($gender) { return 'Mary'; }
Admin
How appropriate! You fight like a cow!
Admin
What, no:
public static function getRandomComment($gender) { return 'frist'; }
??
Surely that's TRWTF?
Admin
Admin
I agree with ()... It looks like this person was writing a test in which they needed to supply a name to an object. However, the name didn't matter to the test. Instead of coding in a "magic" value and having the next person to see it be confused why they picked "Mary", they created a function called getRandomName so that the test expresses intent. However, I might agree that "random" isn't a great term... maybe getGenericName(), getSomeName(), or anyName() might suffice.
Admin
Don't forget "Dana"
Admin
Admin
Admin
Admin
That was the first WTF I found too.
Admin
There is clearly a gaping desperation in the heart of the developer that wrote this.
A love story. A tragedy.
Mary.
Why?
I am commanded to write a function that returns random names according to gender...yet you are all I can think about.
Mary.
WHY? MARY WHY? CURSE MY EYES FOR ETERNITY!!!
(your skinsuit looks good on me, whore)
Admin
Scrubs.
Admin
Oh, yes it is - because both are true, and the confusion lies elsewhere. It is the de-latinised version of Marius, AND it is the masculine version of Maria, since originally Marius and Maria were a masculine/feminine pair of Roman names in Latin; Maria is itself a Roman name in Latin (though not only that). The confusion that is widely present arises from supposing that Maria was originally a Hebrew name, e.g. that of the mother of Jesus. It wasn't, her name was actually something like Maryam (but written in the Hebrew alphabet), often written Miriam in the Latin alphabet. It was just that when people started writing these things up in Latin they latinised them, quite often by picking the nearest Latin equivalent (which is how Saul picked Paul as a new name). Anyhow, that whole process gives the English language name Mary a "double etymology"; it doesn't simply come from the Hebrew name of Jesus's mother but from a linking of that with the quite separate Roman name Maria.
Admin
Admin
Yeah, "Robin" is right up there with "Tracy"...
Admin
Mike's coworkers wondered why he was buggin'. They didn't realize he had called getRandomName() twice in a row.
Admin
Admin
This web site is broken. When I click "Random Article", I get to some other article instead of this one. Please fix.
Admin
You forgot "and she gotta have a Mexican surname".
Admin
Admin
I often find the "TODO:" to be quite a WTF itself. Problem is the standard usage if this look like:
The TODO just ends like a legal notice on the bottom of the page saying you're not responsible for anything...
Admin
It's perfectly good Test Driven Development.
Admin
No it isnt.
Admin
Or i should clarify that it hasnt been used as a boys name for 40 years and even then it was only ever used as a middle name.
Admin
At least it's reentrant.
Admin
Admin
Admin
How appropriate, you fight like a cow.
Admin
And I double-noob failed. Replied instead of quoting, and missed that it was already mentioned.
Admin
But in Winnie the Pooh "Robin" was his surname. His given name was "Christopher."
Admin
Ambiguous double negative FTW!
Admin
In Catholic families a boy can be actually named something like Peter Johan Mary to honor the virgin Mary.
Admin
and how about "A boy named Sue" ...
Admin
Ha. Have you never heard of a boy named Sue?
Admin
Indeed:
Admin
I once owned a dog that was smarter then you.
Captcha: aliquam - A lick worm. A worm you lick.
Admin
He must have taught you everything you know.
Admin
Nobody's ever drawn blood from me and nobody ever will.
Admin
Admin
You're no match for my brains, you poor fool.
Admin
I'd be in real trouble if you ever used them.
Admin
If you're referring to Little Bobby Tables, it's xkcd #327
Admin
Also, Robin Hood (two words) ;)
Admin
Actually, I'm pretty sure it was:
public static function getReallyRandomName($gender) { return getRandomName(getRandomName($gender)); }
Admin
It's good to know that the classics are still appreciated. :D
Admin
Admin
BRRRAAAAAAAIIIIINNNSSSSSS!!!!
(Brains make excellent zombie lure.)
Admin
There is NO way I could have resisted getting to the bottom of that one
Admin