- 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
FR�ST
Admin
Props for using the tone of The Hobbit.
Admin
Working on an international web site, UTF-8 has been the norm for many years. But this was the first site in years of development where anyone cared about anything outside the U.S.
Admin
So the 'unit testing other people did' was replaced by the 'lets fix it when we see a bug in production' method of testing?
Admin
... 'it is' raison...
Admin
This has to be one of the best written-up stories I have encountered on the site recently. I'm not talking about the content, but the phraseology ("passing beyond the LinkedIn barrier" for example) and grammar. Well done!
Admin
$arr['parameters'][$i]= $arr['parameters'][$i];
So the WTF is that it gets set to itself?
Admin
That, plus the fact that the encode/decode doesn't even try to encode/decode anything
Admin
Admin
The Hobbit begins, "In a hole in the ground there lived a Hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms..."
So, yeah. The tone of "The Hobbit".
Captcha: quis. "This has been a quis regarding Tolkien."
Admin
"Anders commented out the functions, keeping them for prosperity, then rewrote them from scratch."
Prosperity, huh? He was going to make money out of shite like that?
Admin
Admin
TRWTF is Slashdot's continual lack of Unicode support.
Admin
Sorry, but this article just seems pointless to me. It is well written, but the punchline: "hurr durr it was supposed to perform an operation but then it totally didn't" isn't hilarious or plausible.
Admin
All well and good, but the article does not even say that. What site were you reading?
Admin
And if it didn't perform an operation anyway (which is my understanding, too) why was the text getting mangled?
Admin
Strictly speaking it was "passed beyond the LinkedIn veil", close enough for a comment after the first reading.
Admin
Because the text having not had anything done to it was full of unprintable characters. It needed the doing-something-to-itness that would then render it legible. Du-uh.
Admin
Dude, chill. You're browsing The Daily WTF, not The Daily Hilarity. And, code stubs are written all the time -- mostly for larger code bases. Sometimes you want the gaps filled in so you have something to system test. Sometimes the stubs don't get commented as such, and nobody goes back and replaces them with the codes.
Admin
Admin
Either that or he was watching too much Star Trek and was hoping to live long...
Admin
Admin
Unless it can be hit with a drone.
Admin
Admin
Any props for attempting to write literately are negated by basic English failure.... why can't people learn "its" vs. "it's"?
Admin
(Fixed article)
Admin
For the same reason they can't learn, "They're there in their room." For the same reason they use "should of" when they mean "should have" and are trying to write the contraction "should've." For the same reason, to, too, and two are continually messed up.
Admin
Because people are stupid, right?
Admin
TRWTF is the name. Well, maybe not. But "Anders" is german for "different". And sometimes it means "special". You know, "special" like Ralph Wiggum.
Admin
Nope. The opening clearly echoes the opening paragraph of The Hobbit:
(Yes I wrote that from memory, and I'm pretty sure it's correct)
I'm pretty sure the last paragraph echoes the last paragraph of The Hobbit, but it's been so long since I read it that I can't recall exactly, and it could very well echo part of the first paragraphs of Fellowship of the Ring.
Admin
Not stupid, per se, but careless and ignorant. It is not that they can not learn; it is just that they have not learned yet.
Admin
Jesus christ that was tedious.
Admin
Lorne, I always defend you on the forums, but this article sucked.
Admin
Admin
If the data had already been UTF-8 encoded then this code would have worked fine. It's clearly a data error.
CAPTCHA: persto -- a Romanian epithet used when encountering encoding errors.
Admin
Also, there's movie poster in the cubicle: "posters of films that were adaptations of a single book, broken needlessly into multiple parts," which clearly would be The Hobbit. LOTR is three books and three movies, The Hobbit is only one book, but also three movies (makes you think about The Silmarillion, right? Is this going to be a single book turned into six movies?).
Admin
Not to mention the reference to "adaptations of a single book, broken needlessly into multiple parts", definitely The Hobbit.
Admin
Because the browser assumed a UTF-8 encoding was being used but was served something else.
Look at the first comment and change your browser's encoding to something that is not UTF8.
Admin
You mean "teh codes".
Admin
Admin
So what was the fix?
We are also having trouble with replacement characters, especially urdu and hindi fonts.
Admin
Well, that is indeed a name. There's even a book series called "Anders", referring to the main character of that book. By the german(!) Author Wolfgang Hohlbein. I was a bit confused about this first, but it seems to be not that special indeed.
Admin
TRWTF is that he implemented a function to encode/decode UTF-8 instead of calling one from the many libraries that already exist.
Admin
“There is nothing like looking, if you want to find something. You certainly usually find something, if you look, but it is not always quite the something you were after.”
Admin
function _utf8Encode(&$arr){ // insert real utf8 encode function here } function _utf8Decode(&$arr){ // insert real utf8 decode function here }
Admin
How could you not possibly title this article "Anders' Game"?
Admin
Welcome to the IT field, distineo!
I'm sure you'll find that as you spend time in the field this type of WTF will seem very minor.
That said, the story was rather well written.
Admin
You are just finding this out? This site proves this axiom in so many ways!
Admin
Your right, English grammar is just to torturous.
Admin
You misspelled grammer.