- 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
MUMPS, now called Cache is NOT a limited and perverted language
Admin
0110011001101001011100100111001101110100
Admin
0001101100101001010100st
Admin
Oh, ouch. Ouch ouch ouch.
Admin
Now that's Proper coding. Not too many worries about their code being reverse engineering, I imagine.
Admin
I stopped reading halfway down. If I had a job that involved this code, my next words would be "I quit".
Admin
WTF does it do???
(apart from being featured in TDWTF)
Admin
This code is dubbed Job Security. It has the look of needing to be modified often(from the comments, I didn't actually try and understand it).
Admin
Blimey, that's crazy - I mean, who'd go to the trouble of putting "[1]{1}" in a regex, instead of just "1"?!
Admin
It is, however, named after a disease. Gotta wonder about that, really.
Admin
10% of the way through reading this code I realized I was polluting my brain w/junk. So in order to protect my logic circuits I punch myself in the head.
Once I awoke I realized I should warn others.
DO NOT READ THIS CODE IT WILL CAUSE A SEGMENTATION_FAULT in YOUR BRAIN.
CAPTCHA: eros - errors indeed
Admin
Thank goodness that management never changes requirements, 'cuz otherwise that piece of (ummm...) code would cause some major headaches to modify.
So! Any guesses as to what this is (errr ahhh...) 'designed' to accomplish?
Admin
The sample strings are 82 bits long. I did a cursory search on google and I can't see any popular DB (MSSQL, MySQL or Orace) that supports 96 bit integers. So storing the result in a varchar column isn't totally in the realms of stupidity. The alternatives would have been to split the value up into multiple columns, which then creates the issue of trying to ensure that the columns are assembled in the correct order when you are doing a query.
Of course I bet that there may have been another way to encode the information so you didn't have to jump through all of these hoops.
Admin
Aaahhhhhhhahaahhhhhrrrgghhh!!!
Admin
My God, it's full of 0's and 1's!
Admin
I think some day I heard that TRWTF was PHP...
Admin
My thoughts exactly.
Admin
$smarty->ass
captcha: iusto --> No I didn't
Admin
I had the pleasure of inheriting some C# code that expanded hex characters into binary strings using the infamous loop over a switch anti-pattern. The method would expect an 64 bit ascii hex string (8 characters) and the code would create an intermediate string of 64 ones and zeros. Then certain status bits were parsed from the result using string manipulation methods.
I replaced about 150 lines of nonesense with something like:
BTW- There's at least one language (ATLAS) that supports binary strings natively. But it's so old and obscure it barely warrants mentioning.
Admin
You can write some pretty elegant code in PHP. The real problem is that it has such a low learning curve that almost any idiot with a keyboard can write code in PHP.
Captcha: iusto -- Kinda like gusto, but more selfish.
Admin
Like VBA!
Ninja Vanish!
Admin
an Epic WTF.
CAPTCHA: augue....yeah its british for argue.
Admin
My favorite part is the very end. They're using Smarty! So great. All that idiotic crap, and then at the end they still had the presence of mind to use a templating engine.
Admin
perchance? perchance? dear god why....
I never made it to the punchline, once the code started I made it all of 3 seconds before giving up.
Admin
TRWTF is.... TRWTF is... aww, to heck with it. Today's WTF is TRWTF.
Admin
I'm not even going to attempt to waste valuable brain cycles on trying to interpret what the hell that code does.
Maybe the developer was told to obfuscate his code, but he didn't get the memo.
Admin
It's Great Codethulhu!
Admin
A great example of the old maxim:
Just because you can do it that way doesn't mean that you should.
Admin
Holy F*&%, that's some convoluted code!. I wonder what kind of data those binary strings are storing? If it's actually another data type, it might be possible to write a function that parses it and converts it into something sane, then worry about interpreting it.
Admin
The only thing I could think of while reading this was that I had already solved this problem. Store the damn value as an integer and just do a quick conversion. (I use it to determine admin privileges).
Admin
MY god... it's full of dumb!
Admin
It's the first time code makes me cry.
Admin
Also, there's no such product as "MSSQL". Or "Orace" for that matter.
Admin
ARRGHH!
The goggles, they do nothing!
Admin
As it happens, 82-bits is also the size of the floating point registers in the IA-64 architecture.
Admin
Awesome. Like some of the classic TDWTFs of yore.
Admin
Admin
I came to say the same thing. It started off bad, then got worse, then worse, than tear-worthy.
Admin
Can't wait for the narrated version!
Admin
It was horrible ones and zeros everywhere and I think I saw a two
Admin
I would laugh... if it wasn't so much like the code I have to maintain (and yes, I clean it up where I can)
When I leave this job I have so many WTFs to show you.
Admin
This was an interesting interpretation of 'snippet' I had not previously encountered.
Admin
I feel so bad for the Hear-A-Blog guy who will have to read that code.
Admin
<comment redcated>
Admin
Admin
There once was an outside consulting firm that would modify my company's code for clients. They were known to add hundreds (if not thousands) of lines of useless code with the intent of obscuring the real code in the useless spaghetti code.
Compared to whomever wrote the code featured in today's TDWTF, those consultants were rookies. Today's code hides its purpose and process brilliantly. As another poster stated - this is job security...
Or, as Scott Adams put it: http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/20000/3000/700/23765/23765.strip.gif
Admin
Correct, it is a limitlessly perverted language.
Addendum (2010-06-14 11:14): Or a lanuage with unlimited perversions.
Admin
Admin
I'm pretty sure this is the Necronomicon code. Don't read it out loud!!
There are 10 types of people in this world..
Admin