- 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
Of course there's more than one copy of the file, you've gotta have source control or u could lose all your work...
Admin
just add a javascript that adds 2006, 07, 08, 09 and then resign before Jannuary.
Admin
Nice developmestruction-alike environment...
Admin
if the files are identical, why does Craig care which one is used? a fine example of code re-use and he balks...
Admin
At my last company, one guy who worked on my team annoyingly cited this as an excuse time and time again. Okay, we were maintaining poorly written code, but the computer executes code in a linear manner so it can always be followed through.
</rant>Admin
"Didn't want to" is understandable, particularly when it's thousands of lines of vbscript weaving in and out of HTML.
Admin
Admin
Not when something has to be done and I'm getting my arse kicked for it.
And yes, I did do my fair share.
Admin
Admin
What did it drop down?
Yes No
Admin
"It's a big system. It uses classic ASP and an Access database to dynamically generate the on-screen components. Great idea, poor implementation."
It's not often we see sarcasm in the actual OP, is it?
Admin
I believe you mean:
Yes No FILE_NOT_FOUND
Clearly, this is an appropriate use of a drop down.
Admin
He got out of having to deal with old, dead, useless code and concentrate on .net. It might be annoying for whoever's left holding the baby, but that's their problem. Classic ASP is a crock, whereas .net has the advantage of being a nice environment with many well paid positions using it.
Admin
Looking at issues like that, one gets the impression that the above statement should not read
"Why do it wrong when the right way is just as easy?"
but rather
"Why do it right when the wrong way is just as easy?"
(Which is in fact near to a sarcastic german saying: "Warum einfach, wenn es umständlich auch geht?" = "Why keep it simple when you can do it long-windedly?")
;o)
Admin
Admin
Admin
http://thedailywtf.com/Articles/I_0x27_ll_take_94,249_please.aspx
hundred thousand items enough?
Admin
Admin
Here's one in our app:
Gender
Unknown Male Female Unisex Combined Other
Admin
I rewrite ASP/VBScript scripts that I "maintain" for my own sanity.
You sound like one of the types whose code gets rewritten. :P
Admin
Ah yes this is just clbuttic: "2. Figure out which of the seven different (identical) files in the codebase is the one that is actually being used:" I've seen this kind of copy-paste crap on numerous projects myself. I guess this would've counted for code reuse if not for the fact that the CODE DIDN'T FRIGGIN' WORK! Sigh
Admin
I don't think brazzy was been being ironic there...
I LOATH classic ASP and will do anything to avoid working with legacy code. VB is bad enough when not interspersed with horrible HTML, cos its always legacy code you can bet yer bottom dollar there will be nested tables and all sorts of other fun...
Admin
Have you worked with ASP/VBScript? sometimes I'm convinced that the VBScript/asp guys figured out quantum computing years ago, but never figured out the way to make it deterministic. We always used JScript in ASP to avoid these quantum problems.
Admin
Incredibly stupid drop downs and what do they load?
I deal with them all day in our interal WebApp.
Dropdown for 150+ clients? Check.
Dropdown for for 150+ employees? Check.
Two dropdowns on the same page listing clients physical locations, one numerically and one textually, clocking in at 10,000 options each? Check.
Yes, I'm serious on that last one. If you save off the HTML only version of that page once it's load, it's 3.8MB.
No, I didn't write it and yes I'm ashamed it exists, but when you're maintaing an 10 year old system that's never been overhauled, these things happen.
I cry at night. A lot. :)
Admin
I think there's an implied "...if I wanted to remain sane" at the end of the sentence, in which case his formulation is correct.
Admin
sigh :) one day the sarcasm detectors will be turned on. one day.
Admin
So? Thanks to the myriad of ongoing legislation in this area, the company has to deal with pretty much every reasonable permutation and possibility. Perhaps "Combined" isn't a great word, but is "Hermaphrodite" any better?
My day job is with an insurance company. This kind of thing is standard.
Admin
Admin
Ah yes :-) we've got some similar sayings in Dutch as well. When I look around me, I get the impression that our entire society is constructed around them.
Admin
Admin
Admin
This is how you tell the difference between an app that was developed on the command line versus through a GUI. When it's developed on the command line, at least the seven identical files tend to be in the same directory, with slightly different names (index.html, index-2.html, index.old.html...). With the GUI people will randomly copy all sorts of directories.
What's sad is that sometimes this sort of thinking seems to pervade into their coding, and they think that having their program copy files all around is somehow better or easier than actually parsing the data in them, but that's a WTF for another day.
Admin
I managed to prevent a 1000+ item list from being implemented with a little white lie:
User: instead of having to type the ID in, can we have a drop down list to select from?
Me: Technically yes, but it would be over 1000 items long and you couldn't select more than 1 item. So that would mean you couldn't input more than 1 ID at once.
User: oh, ok, nevemind then.
I'm pretty sure the user knew how many IDs there are, so conveniently forgetting about the multi-select list saved me.
Admin
Admin
God the daily wtf sucks now. How did it happen that such a great site turned so crappy? All these articles sound surreal and fictional. It used to be that the DailyWTF was a serious DailyWTF -- it was some portion of code; sometimes with a minor back story; submitted by users.
Now it sounds like some writer is sitting around trying to come up with these stories...and to be honest; they're whack. So story is fundamentally flawed, and when a candidate acts so poorly those of us who actually do interview people every day well know, you just send them home.
Why don't you turn this back into more of a community site? Go back to posting the fucked up code we all find in our respective organizations and complaining about it. It was a lot more fun.
Admin
You can know what the application is meant to do without understanding the code, so long as you have specifications to go on.
Getting the spec from a knowledgeable BA and starting a fresh could be easier than trying to understand and modify the code in some circumstances.
Admin
How about a "None" option in case your name was Bobbitt ?
Admin
I read this site every day. And I'll be honest - I've been tempted to write crap about this particular system several times before. But the Year(Date) thing just seemed so obvious that I couldn't keep it to myself anymore. In any event - not cooked up, I wasn't just sitting around looking for a something to submit :).
The "can't" thing is because of how the system is put together. Because all of the UI components are generated from database rows, which means even adding a simple label is an effort that could take a couple hours. Now if the user wants more than a label...
In good news, I found out just last Thursday that this system is being taken down for good. The users asked for some changes and we finally asked the (hundred) million dollar question:
"What does this system do that an Excel spreadsheet can't?"
They thought about it for a month and then decided the answer was "nothing".
Thanks for laughing with me :)
Admin
"Unknown" could mean that the person filling out the form (who might not be the subject of the question) doesn't know the gender of the person. Or the subject could be a business, not a person.
"Other" could refer to someone whose 23rd chromosome is XXY (Klinefelter syndrome) rather than XX or XY. There are lots of possible answers. FTM and MTF Transsexual could also be listed.
In most software applications, who cares what the gender of the person is (other than doctors)? What does it affect?
Is the database asking for the gender the person was born with, the gender the person has transitioned to, or the gender the person feels is most natural? The biological or the emotional gender? And again, who cares?
The question should generally not be asked.
I say this as a male who was born a male and is happy to be a male!
Admin
On this subject, I have two things to say. Xyzzy and Plugh.
Admin
Admin
Q: What's worse than seven identical program files, and you have to figure out which one is actually used?
A: Seven ALMOST-identical program files, all seven called from one place or another, and now you're told that you have to make a change. Try figuring out how to make the same change to seven almost-but-not-quite identical programs.
Every time this happens to me -- and it's at least once a week -- I cry inside.
Admin
An inhouse CMS that read a 30,000 row table from the db and displayed all the unique integers IDs twice, in two separate drop-downs ... the page took several minutes to display and was updated on any change to any of the fields on the page, including selecting any of the items in the drop down ... not only that, the db was queried and the 30,000 rows retrieved anew on every refresh.
Do I win anything?
Admin
You using PHP then?
Last time I worked with PHP, I had to maintain code like that. With multiple levels of includes (I once had to dig through SEVEN levels of includes to find the file I needed to change), identically named files and functions that did different things or worse, similar things, multiple instances of cut-and-paste, single letter variable names, HTML and PHP code intermingled.
Admin
This is missing: Yes No FILE_NOT_FOUND
Admin
I must know what kind of application this is. Please tell us.
Admin
Admin
Gender as it relates to clothing / products in a store? This could also be a bitmask.
Unknown - person entering doesn't know - reports can flag unknown items. Unisex - product is for both sexes, but not preferenced for either sex Combined - product comes in specific male and female versions (pink v. blue) Other - it's not unknown, but it's not unisex either. Think camping supplies like a tent.
Sure, it's a tad convoluted, but just because you don't grok the reason, doesn't mean there it's a WTF, but it's possibly a stakeholder WTF.
Admin
That would be "Neither", oh wait, "Neuter"
Admin
goatse?