- 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
Also I'm assuming the REPLACE_ is a clever way to do a, huh, parameter?
Admin
So you had to go through this, too. :D The reason was that they had the habit of "tuning" the numbers in order to reflect the desired results. This was OK because many knew about the the problem. A correct report would have shown the real world, but who likes that? Big fun, indeed.
Admin
Not quite clear immediately when ASCII is used. So here is the long form:
TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is TRWTF is
... snip
Admin
When you have one and only one interface that's OK. What about data coming from external sources like buy orders from different shops using different software (like Excel databases) and the like?
Admin
I think he ran the post through the SQL in the article first to fix it.
Admin
Truly, The Real Wut Da F**k. Awesome.
Admin
I suspect that most people ensure that refactored code produces the same result. That's how refactoring works.
Admin
Ok, so no credits but can we infer the author: Bill Gates, Steve Jobs, Bill Joy... Homer Simpson?
Mark
theWebalyst.com Web Marketing and WordPress Websites
Admin
The Windows Registry... The name alone is vomit-inducing...
Admin
Or LEFT JOINs...
Admin
I'd probably handle that by keeping the correct one and prepending "Correct " to the name, and making a new one with "Broken and incorrect " in front of the name, and then let the users choose which one they want. ;)
Admin
I don't get it Where's the WTF. What, no-one else does all they're business logic in SQL?
Admin
Why would you put that in a config file? Wouldn't it be better to store it in the database? That way you could update it in a centralised manner if a field got added.
But of course you'd need to base64-encode it just in case.
Admin
This looks like a quick hack which has snowballed into an Epic Frankenbeast and by the time the coders realized what had happened there was no budget or time to refactor. Either that or it just became Somebody Elses Problem.
Admin
This has to be the worst part:
LEFT OUTER JOIN Notes Notes_CCList ON Notes_CCList.handle = Documents.CCListDBA LEFT OUTER join DTConfigurations ON DTConfigurations.ServerGUID = Documents.ServerGUID LEFT OUTER JOIN Globalization HistoryGeneric_Detail ON
I f*ing hate inconsistency.
Admin
Admin
Admin
Admin
correction: it tried to undo all of creation
Admin
Admin
Oh, so that's where I stored it! -Wonderd where it was.
Admin
Admin
Admin
Admin
The config file is really a proxy to a database configuration.
The real configuration must have so many permutations that 'configuring' it is really programming it.
Damn, its ugly though. Does it work?
Admin
Aha, another masterpiece of US deep wizardry. If all your code is like that, it is no wonder that being afraid of things is part of your lifestyle. At first, it was indians you were afraid of, then black ppl, then japanese, and now it is everything.
US programmers so useless ...
Admin
Tibet! Boogah Boogah! We're all the same.
Admin
DELETE Joy FROM Life;
Admin
This and the line:
means the database is an huge wide gate open for SQL-Injection for every single user who has read access to this application (and is allowed to run this particular report).
Admin
What is Tibet? China has most population. You kill indians and eskimos. We have big firewall to not be afraid of US script kids. Only thing better in US is that your mothers are bitches and f*ckable.
Admin
Wow, I really hope you're joking... The whole point on "injection" is that you "inject" code into the interpreter... If you can change the config file, you've already powned the server.
Admin
Admin
That's funny. I thought I read this article yesterday.
Admin
Enjoy getting run over by tanks, if that incident hasn't been scrubbed from your cultural memory yet.
Admin
Admin
Oh, I get it... Ok folks, don't feed the troll! Move along, nothing to see here. There is no way someone is this dumb/misinformed by accident.
Admin
Hahaha. That old chinese joke. You americans think that really happened? Hahaha. It is from a movie, and George Bush or some fucker has taken it for serious. I am glad we have firewall. Hahaha.
Admin
That said, not using prepared statements/parameter bindings for query inputs is just a lousy way to do it anyway.
Admin
Admin
Admin
Admin
You know what, you're absolutely right; I just assumed/hoped that the developer who created this monstrosity wouldn't be daft enough to give the user control over something like this, let alone the hell it would be to upgrade or make changes to all the distributed apps. Obviously I'm giving too much latitude to the orig. developer...
My apologies.
Admin
Isn't that what the Japanese said about China during WWII?
Admin
I think my point still stands, regardless.
Admin
I'm pretty sure I would have strangled the person who wrote this before I read any farther.
Admin
Admin
That's funny, I thought I read this article yesterday.
Admin
Admin
Admin