- 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
I came here for the comments and none were found :(
Admin
Personally, I've always thought that the 'Dim' keyword in VB says it all.
Admin
Hey no way, that is my code for Shopdateformat() in the asp.net framework! And the CleanseMessage() function used in IIS!
CAPTCHA: oppeto (n.), the master of the oppressed puppet
Admin
This Highly Paid Consultant fellow seems to get a lot of work. Surely thousands of companies cannot be wrong with trusting him with their systems.
Admin
Writing an exception straight to the document, HTML tags and all. Sweet!
Admin
Dani was asked to replace this piece of crap^H^H^Hode with something better. How is that a WTF? He only need to understand the code enough to migrate data out of it into the new system.
I guess he don't have to modify the existing system or write a new system from scratch. More likely there exists an off-the-shelf system, which is sufficiently better than the existing system.
Admin
TRWTF is the syntax highlighting. The comments aren't colored as comments and there are wrongfully highlighted keywords and numbers, too. And best of all: it's made by hand with color tags, unlike other code samples on this site that are colored with JS.
Admin
Current setting for me at work: comments blue, keywords mustard, strings dark red, variables pale turquoise.
Admin
I love Sub CleanseMessage.
Not only does it feature an arry named badChars that in reality holds bad strings, one of those strings is "".
Admin
You see, if the customer/user sees that error message, he will contact support, explain what he has done so that the error can be reproduced, perhaps sent a screenshot...
That, at least, is the theory.
Since in theory theory and practice are identical, this allows you to get rid of regression testers, since their work is now done by the customers and you svae a ton of money.
And the customers are happy as well since they can contribute to make the product a better product (this, also, is a theory).
Admin
There was a website I saw a few years back. One user complained about a page not working for them - the answer the user got was "View the source of the page and there would be an SQL exception in an HTML comment - copy and paste it here, so we can look into it". yes - the entire SQL exception was dumped into the page - query and everything. Still, I guess it saved work when figuring out why something isn't working.
Admin
TRWTF is looking for a new job when you're being asked to replace a bad system with something better.
And the HPC was clearly being paid per line of code (comments excluded).
Admin
Admin
The right way would be to not highlight keywords in comments, faoileago.
Admin
They forgot to mention that Danio was an utterly useless employee who couldn't code their way out of a wet paper bag.
Admin
http://www.cvedetails.com/cve/CVE-2004-2411/
Captcha: persto - hey persto! I found it!
Admin
CAPTCHA: venio - tried venioo but it didn't work.
Admin
Did you ever get a task like this? Kind of "This is the old code. Now Improve it".
Best thing you can do at this point? --> Quit working there. a) You don't really have a chance to do it "well" because doing it "well" would mean restart from scratch. (No it's not possible to "iteratively" improve the design of a bad application....) b) If you actually start working on that thing: All responsibility suddenly shifts to you. There is a bug in the system? Must be your changes that did it. (Maybe it was you. Maybe the bug was present for years... Who knows...) c) Reading bad code is HARD... VERY HARD... trust me. Understanding a whole application just from (bad) code --> almost impossible (ever heard of "side effects"? Good luck identify any possible side effects if you don't even understand what the code is SUPPOSED to do).
Just for information: I'm responsible to "manage" some complex legacy code written by a different company with almost no comments or docu. And that code is reasonably well written. However fixing anything in the core of the system still feels like shooting a fox in a hen house while wearing blindfolds.
Admin
In practice, the second constraint is the troublesome one that introduces the most stress.
Admin
I'm pretty sure that's VP-ASP, a commercial shopping cart that's been around forever. And the best part is that I still maintain 2 sites that use it. They are both so heavily customized that we can't change platforms without major expense, so I'm stuck with it for now. One of the sites does several million dollars in sales each year, so I guess it works well enough after you patch all of the security holes.
Admin
Well... I'm usually required to pledge that all "Hens" are still there (without being able to count them... I wouldn't know how many there were anyway...)
Admin
Admin
Dani expected to find high quality, well organized code that would be easy to modify.
... That was the first mistake ...
Admin
Admin
I had to deal with something like that. I rewrote a good portion of it, but it is such a mess I would have to rewrite the whole thing. I was able to remove several thousand lines of buggy code though. However now when there is an issue with any of those parts I rewrote I am responsible for issues. Yea me.
validus - this shopping cart is not valid.
Admin
Admin
Admin
I wonder how easy it would be to create an infinite loop in Shopdateformat() by passing bad data. Probably pretty easy.
Admin
While I appreciate the thoroughness of your plan, the cost would just be too high. So we're going to go with the CEO's nephew, who said that he could do it for a hundred bucks.
Admin
Real exciting stuff for such a low price!
Admin
Which type did you use? It looks a lot better with "inet: VBScript"
Admin
That actually describes about 30% of the contracts my firm (deliberately) takes on. I agree with most of your post - except that it IS possible (not easy) to incrementally improve on a bad design...
Admin
IMNSHO, sometimes Darwin's way is the best.
Admin
The second is in quitting when he was apparently given the task to replace the whole thing anyway.
Admin
WOW!!! Stripping "" from an input is just an OMGWTF accident wating to happen...
Admin
"Highly paid consultants" don't actually do the work -- if they're "highly paid" then it means they must be clever enough to be able to get someone else to do the actual work for them. Those someone elses are (obviously) far less well paid and consequently are low-skilled.
Admin
Why would he look for a 'better' job? They asked him to REPLACE the system, he din't have to do anything with the existing system.
Admin
I don't get it either. They are asking him to replace it for a good reason. Also, who's saying that there are "no specs"? It's clear what the old system is doing (it's clear to the people who work with it), so it should be easy to figure out what the new system should do.
Admin
Hehe, I particularly enjoyed the repeated use of the name "Dani" instead of "he" or "she". Apparently snoofle didn't want to take chances guessing Dani's gender.
Admin
It's because Dani is Dani-sexual.
Admin
I know many women named Dani, but not a single guy. If I were to meet one, I would feel bad for him.
Admin
The punch line to so many of these is that the writer started looking for their next job.
Which suggests they only want jobs where everything is perfect, runs without problem, doesn't need to be changed - is it because in reality they're not that good a coder themself?
Admin
Admin
I'd expect either Danny or Dan for a man.
Admin
TRWTF is expecting high quality code when done by a highly paid consultant.
Admin
You got the wrong site mate. The site you read for the comments is called Slashdot. One reads this one for the blue comments only.
Admin
"--" starts a comment in SQL, and it's often used to make SQL injection easier. So they already have that.