- 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
include comment.inc.asp
-- in comment.inc.asp -- include comment2.inc.asp
-- in comment2.inc.asp -- include comment3.inc.asp
-- in comment3.inc.asp -- WTF!
Admin
//first... edit... second =\
ASP should die... well at least the old version of ASP, I'm having to go through one of our applications made by entirely ONE person 8 years ago and there's so much inline SQL and VB.... it's not even funny. BAD CONSULTANT! BAD BAD CONSULTANT! Overpaid and lazy!
Admin
Seems OK to me, why code, when you can have one or two includes in the code and everything is magically just there!
Clearly, if you can't undestand the magic and/or maintain massive trees of information in your head, you should get out of the kitchen... or something.
Admin
Yikes. Not much different than a lot of the classic ASP I've had to maintain, though.
Something I don't miss is the fake XMLHTTPRequest created by iframes.
Admin
I was just about to suggest he writes a script to display all the included code on one page. Then I scrolled down.
Now I think he should simply search the code for that particular select by name. Then he should search a job offer list.
Admin
Somehow with everything that was included I was still left out. It's like highschool all over again.
Admin
TRWTF is that the monkey is kicking the seeds out of the pickle with a wooden leg!
Admin
It's all BFM - Black F***king Magic!
Admin
Nice progressive disclosure there. First page: Well, that still could make sense. Page down: Ok, that's a bit excessive. Page down: I see why someone would consider it a WTF. Page down: Still going on? Page down: OMG. Page down: WTF.
Admin
Admin
Every letter should be it's own file, this is the acme of code portability.
Admin
for that much code, a picture taken on a wooden table would be more efficient.
Admin
Admin
yes, this is obviously all ASP's fault. There's no way someone could write something this f'ed up in [insert language of choice].
Admin
Admin
layout.display29-1.inc.asp
Is this file really necessary?
Admin
WTF were you thinking when you posted that? Some of us TDWTF readers have heart issues.
Admin
I guess the consultant had to do this, because otherwise the script would have reached the max file size limit of the filesystem...
Admin
We have a heart? O.o
Admin
Once again,it's not the language it's the developer...I can think of some lousy ways to code just about any language you wish.
Admin
Yaos, you forgot to use your "TopCod3r" account. ;)
Admin
I worked on something similar (but not quite this bad) before. The big difference was that was an embedded video lottery terminal!
No web app should be this complicated!!!! I work on ASP.NET web apps now. I am happy to say they don't have anything like this monstrosity. :D I would have to start looking for a new job immediately if the web app I was maintaining/updating had a structure like this.
Admin
"I can think of some lousy ways to code just about any language you wish. "
Ooooh, I think you just got yourself a job!
Admin
ASP.NET?
Admin
.oO(wrong reply-button)
ASP.NET?
Admin
I wonder if files were being included with the...
...server mechanism or with a dynamic mechanism written in an ASP-supported language: The former is easier to debug, but considerably more difficult to maintain, IMO.Admin
Last include must've been lost in transmission. Please add to the bottom of the listing...
FileNotFound.obj.inc.asp
Admin
This kind of reminds me of that scene in Event Horizon where Dr. Weir looks at the captain with empty sockets and says, "Where we're going you won't need eyes to see."
Admin
TRWTF is having catalog.display1.product.inc.asp through catalog.display6.product.inc.asp PLUS catalog.display19.product.inc.asp.
Having 7-18 too would be overkill.
Admin
And he couldn't find order.display.2.CostCenter.inc.asp through a file search why? Not saying that its the culprit, but its a pretty good place to start looking...
Sigh. Those who do not understand the power of a find/grep, and all that
Admin
WOW! now thats MODULAR !
WARNING! 2 exclamation points detected in post, one more that your IP is [banned]
Admin
It's not about being able to use the find functionality of your development environment. It's about having to jump around 100 times in order to get anything done. And while a find makes that simpler it certainly doesn't make it bearable. Trust me, after using find for an hour solid you pretty much want to punch a hole through your monitor.
And who the HELL thinks it necessary to have that many includes? Seriously. Makes me want to punch a baby.
Admin
this kind of stuff looks an awfull lot like MFG/PRO, a progress based manufacturing software suite.
In one of my debugging sessions, I made a similar script. it traced all includes recursively and wrote them to a file. I even made it so that it would only trace into each include only once.
The result of a simple screen: 90KB of output... The result when it traced into all files each time: I cancelled the program after the output reached over 5 megs...
The worst part: I still use the tool daily, because they are too cheap to buy a debugger license....
Admin
At least he knows the concept of modular programming :p
Admin
And the most sorry thing is, my current assignment isn't all that different than this code snippet.
I come from ASP.NET, backed by VB. Always write code with Option Strict ON explicitly defined at the top of my files.
But in this classic ASP app you can see includes working on variables defined in the main page, calling functions from even other includes, who do exactly the same.
Makes debugging a p@in in the @ss...
Admin
Alex:
Next time you post some insane ludicrous code (or for that matter, a Choose your own Include File story), please tell us what happened to the poor IT guy.
After reading the whole opus and finding no conclusion, I assume he passed away while waiting for the Choose your own Include File story to end.
Admin
This looks like someone attempting OO programming (or at least code reuse) in ASP classic (not ASP.NET)...badly.
Admin
! ! !
Guess my IP will be banned now...
Admin
Wow?!
It's like the ship from Spaceballs!
Admin
If you ever hear that an application is A) Based on Classic ASP, and B) Been developed over the course of several years (bonus for being by an "outside consultant") then RUN AWAY SCREAMING. It's NEVER worth the hassle of dealing with a monolithic swamp of spaghetti code.
Admin
This is great coding practice, as it prevents any of your code files from being too long .. like, say, more than three lines
Admin
Yeah, where's the unhappy ending? Are you just gonna show me a severed head and roll the credits, or is the killer gonna get killed by the retired alcoholic cop?
Admin
Not that I ever stooped to that level. PHP is as low as I've gone.
Admin
The only webapp I ever "made" was made of a few CGI scripts... written in bash. It barely worked, but at least a child could have understood it enough to fix it after about 5 minutes... after seeing this, I don't feel so weak.
Admin
I think the Politically Correct term is 'African American Intercourse Illusion'. :-)
Admin
Ze goggles! Zey do nothing! AAAAAGGGHHHH!!!!
Admin
AAII?!?! What are you a Vowel elitist? Why do you want to deny Constants their rightful place in Acronyms?
Admin
Let me guess...
Just copy the tree, overwrite whatever customized files there need be, and there ya go: per-customer version support, with no need for some fancy shmancy source control!
Admin
I once had to maintain a similar WTF in Turbo Pascal. It heavily used the nasty construct of nested functions - seven levels deep! Add duplicate variable names into the mix, all with different scope, and it was a case of fix one thing, break two others.
Admin
What is that about! That's silly!