- 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
Somebody needs a good slap with a 50 ft fish... >_>
I get the feeling that the end if statements are auto-generated (ASP.NET?) but none-the-less, it's still icky.
Admin
On Error Resume WTF
what page did this come from.......?
Admin
So what is the WTF? That they're commenting out things in three different ways? Or that they enclose strings inside script tags?
Admin
Looks like code that's meant to be internationalized to me. Doesn't explain all the WTFs of course.
Admin
I can think of one reason for not hardcoding strings like this: localisation. (A bad attempt at it, admittedly).
Admin
myResponse = "I don't see a problem with the first one";
'while(true)
PutOnInternet(myResponse);
'return 0
'return "maybe"
return 1
Admin
Cmon, is anything in this code really that bad?
This is one of the highlights of my day Alex.
You can do better than that.
Admin
Um...the strings were still hardcoded. Albeit in an extremely ineffecient manner. I'm guessing response buffering probably isn't enabled, so each response write to write out static html is causing data transfer to the client. Brillant!
I'm always fond of people commenting out html using <!-- --> . I mean, that's extra bytes flowing across. There's more bytes flowing out in commenting than rendered in html in several of these examples!
Admin
The last part where they seemingly cut/paste code from somewhere else was sort of funny...
Admin
I'm not doing anything in classic ASP right now, thankfully, but the 2 things that bothered me the most were:
<FONT face="Courier New"> If <FONT color=#ffa500>false</FONT> Then
<FONT color=#006400> {much code}
{much more code}
</FONT> End If</FONT>
Yes, I really did that[:$]
Admin
I must say, this is the worst anonymization that has taken place here in a long time. I mean really, is it that hard to figure out that you are just putting the name of the site in pig-latin? I bet you are running the risk of a lawsuit
from the lawyers at bi.com
Admin
That ain't pig latin.
It's pig l337en
Admin
It is a WTF fo sho' but uhm, not really all that funny to be honest.
Admin
Really his choices where limited to iBay or XBay or the real name... until the technobabble wizards come up with a new way to make the same of crap sound new and cool thats what we are stuck with. Though now that I come to think of it ABay might also have worked but really AJAX is the only "cool new technology" to go that route yet... and it still has an "X" in it so don't know if it even counts.
Admin
Nah, that stuff isn't autogenerated by any version of ASP.Net I've used. This is classic ASP anyway, from the looks of things..
Admin
Or maybe Initech, like normal. There's nothing in the code snippets that make it important for us to know where it came from. I can only surmise that in this case, the source is actually part of the WTF.
Also, may I suggest considering the pig latin comment a bit more. It's really quite funny. I laughed for hours. And by hours I mean a few moments. And by laughed I mean chuckled quietly to myself. I am at work, after all.
Admin
Interesting... considering eBay is written in Java....
Admin
Simply "BRILLANT"
-Paula
Admin
Agreed I haven't seen any asp on "ibay" yet.
Admin
None of that looks like JSP either, so we can safely assume either this is a hoax (which is rather desperate considering there are better WTFs to be had) or it's ripping on another auction site (which can be a dime a dozen). This comes to mind.
Admin
java now, yes. was ASP.
Admin
Can you say "overhead?" [^o)]
Admin
I'm glad that I'm not the only one who noticed this. Sun made huge announcements about their hardware an application server powering ebay, they even have their logo on the front page. All of their ebay's subsidiary sites that are listed on the left side of the main page are running of of apache or some java application server. I wonder where this code is from?
Admin
I agree. You're putting up proprietary code for ridicule and only changing one letter of the company name. You're playing with fire.
Admin
You guys don't get the joke about the pig-latin, do you? Look up pig latin, and then re-read his post.
After that, at least try to laugh.
Admin
Apache isn't a Java application server.
Admin
Hmm.. that may be true.
Check out the archive of the site from 1997. ;)
Admin
Yeah... we had to do some html injection testing stuff today, and I thought I'd try it.
Highly amusing :D
Admin
To be absolutely honest, I have shamefully commented out bits in this way before, while testing things. However, in my defense, I always went back to clean them up and either remove the code entirely or comment it out using language-specific syntax (thus preventing it from actually being sent to the browser).
Admin
Ignorant... considering it wasn't always written in Java. The early days of the site had many features that were ASP pages and ISAPI applications.
Admin
So is this (somewhat) bad code still around? Has it been sitting at the bottom of the WTF barrel since 'the early days'? Maybe the submitter sat on it until he left the company? A previous commenter talked about doing similar things when testing web sites. Did these snippets ever see the light of a production server?
Too many questions...
Admin
The web interface isn't. You can check it at netcraft.