- 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
TRWTF is running IIS on a production server... oh wait, I'm thinking of something else...
Admin
Well. You did have to clean the screen sooner or later...
TehShrike: I was drinking a coke and reading TDWTF. I just took a sip when I had to laugh so hard... Visitor110 enters channel TehShrike: I sprayed it all over the screen. Visitor110 left channel (sick bastards!).
Admin
I have an idea where this comes from: Pipe-delimited fixed length strings where the preferred data exchange format of mainframe-based applications. Sometimes I get this kind of files if requesting data from older SAP installations or other legacy systems.
I bet the application was once upon a time a pretty frontend to an ugly mainframe data hog. And then came the request to port that to an SQL based database. As usual with the requirement not to break compatibility with the mainframe. And voila, there you have strange SQL queries emulating an Iron Pig until the end of time...
Admin
I still don't get it. A picture of a pipe... So what?
Admin
Google image search is his girlfriend too
Admin
Admin
Admin
Besides the pipes there are ofcourse a number of other WTFs in this code: the Java programmer obviously hasn't read the chapter about the "for" statement yet, and code like the getSubstring() method makes my toes curl. Besides the fact that the method has a stupid name, it should have been written like this:
The original code is almost as stupid as:
Admin
Admin
"This|Comment!", -- space(13)
Admin
Admin
... or culture, come to that ...
Admin
TRWTF is that its 7:19am in Seattle and today's WTF has not yet been posted.
Admin
It's 15:43 in the UK, we've been waiting even longer! :)
Admin
Awesome.
Admin
Excuse me - <<cough>> getalife <<cough>> - something in my throat.
Admin
Admin
Admin
I was thinking along these lines as well, although my theory is that the app was written by an old-school mainframe developer using the methods they were familiar with, even though there was not a mainframe involved anymore.
I've seen a lot of bad code result from people who learned coding back in the very olden days and don't take the time to learn about how modern programming languages make things easier. My favourite was the literally 30-plus-line block of code that did a specialized find-and-replace. It wasn't even a generalized function! IIRC, it did something like parse the input string character-by-character looking for the delimiter (which was hardcoded, of course). It converted each value into an integer, then inserted the integer into an array. After it was done, it iterated through the array again and converted each integer back into a string for output. IIRC, it was to do something like convert CSV text into pipe-delimited text.
Admin
Admin
Admin
Admin
I believe he is referring to the 'design life cycle' of a software project. Or maybe just that computer simulation.
PS., saying "something in my throat" is just asking for a ceci nes't pas une pipe
Admin
Admin
Real men delimit with dollar signs.
Admin
How many folks are left that would understand this?
Admin
Admin
You, sir, are a funny guy.
Admin
Admin
Admin
In het engels noemen we iemand als jij pretentieus.
Admin
|I can guess why |
|they're adding pipes to | |the end of every fixed | |length string. |
Admin
all this talk of |'s makes me $stringy
Admin
Admin
Sorry, missed a good opportunity for a joke there. Second try:
In het Engels hebben we niet iemand bellen als u pretentieuze.
Admin
Yea, but without support for pipe characters!
Admin
Admin
Admin
Thank God for programs like these. They keep me in business !!