- 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
select 'FRIST' as FRIST
Admin
toletarting?
Admin
I would find the management attitude intoletartable.
Admin
Captcha: toletarting
No way!!
Admin
Can't wait to see how he validates email addresses.
Admin
Looks like using proper grammer was something he did NOT overdo
Admin
How in the world would this run the same as real code? Maybe they just don't care about performance.
Uh oh... the database server is down, can't do any more date/time functions.
Admin
OMG. When does the hurting stop?
Admin
Yeah, that's an alternate spelling of "tarting up". As in, "tarting up the code". Putting on red lipstick and dark eye makeup, spraying on gallons of cheap perfume, squeezing into a tight skimpy outfit.
Apparently, tarted up code is very popular with management.
Admin
What's grammer? Is it anything like grammar?
throw new TooManyLayersOfPedantryException
Admin
Admin
throw new TooManyLayersOfPedantryException ..........................................^
Error at line 1 col 43: ";" expected
Admin
You obviously have not yet seen their 'real-code'.
Admin
Admin
So you're saying (to quote a previous day's commenter)...
Management likes their code the way they like their women... 12 years old, undocumented, and apparently tarted up???
Admin
this, of course, will only be valid until the SQL server runs into performance issues.
as for you database down comment? chances are you can't do jack shit in their app if the database is down anyway.
Captcha: vereor: truer than the truth.
Admin
Sadly, I am all too familiar with applications that use SQL to do string parsing, complex mathematics, etc.
Admin
If you have a hammer, everything looks like a nail...
Admin
At least he used parameters instead of concatenating it
Admin
Note: I submit all of my comments with grammar and spell check options disabled.
Is it a form of recursion when someone points out a grammar or spelling error in a post when their replying post also has a spelling or grammar error?
Admin
Admin
C'mon... you made that up. Or maybe this guy is an abstract/surreal artist who likes to add "flavor" to his code.
But I think you made that up. Its too bizarre, even for TheDailyWTF.
Admin
Why? Without any sarcasm I'ld be very interested in his/her motivation.
Admin
Don't worry it won't even IF(DATE(?) <= DATE(?)
Admin
bool FirstIsLowerOrEqual (int i1, int i2) { std::string test = "if [ $i1 -le $i2 ]; then echo first; else echo second; fi"; std::ostringstream cmd; cmd << "i1=" << i1 << "; i2=" << i2 << ";" + test; return ! system ("test
ssh some.where /bin/sh -c '" + cmd.str() + "
== first"); }Admin
Admin
Admin
Admin
I don't know. You tell me. Someone is singular, thus the pronoun referring to someone should be singular as well, such as his, her, or his/her.
Admin
intoletartarance- adverse reaction to the gluten contained in dessert pastries.
No, I didn't have anything to add to TFWTF.
Admin
Awesome, I might use this pattern to farm out all our mathematical routines to the database. Databases do maths, don't they?
PS. Not a word about "maths", OK? I'm English, you're American, get over it already.
Admin
"grammEr"?
Well well well, if this is not a classic (or rather clbuttic) case of Muphry's Law ( http://en.wikipedia.org/wiki/Muphry's_law ) (do not confuse with Murphy's Law!)
;oP
With regards to content, however, you are correct - dude can't spell "too" or can't tell the difference between "to" and "too"... What he needed, was a proper crammer (what you probably meant in the first place ;o))
Admin
Admin
I wish I could say I hadn't seen that kind of code before, unfortunately I can't; I have found many examples of it in code written by my predecessor. Usually he wanted to compare two dates; as far as I can tell it never occurred to him that .NET might be able to handle that itself perfectly well.
Admin
No.
Admin
Error: You haved commented off topick!
SCNR
Admin
Termination date is way too late.
Admin
At least he knows how to use PreparedStatement!
It would have been even more hilarious if this piece of code would be written by concatenating pieces of SQL, making it potentially vulnerable to SQL injection attacks.
Admin
I can relate
Admin
Awful, just awful!
He didn't even use a stored procedure!
Admin
Actually I had a good laugh at the first version, as it was formatted like
Then I started to wonder how you can have more than one layer of pee...
Admin
Stored procedures are not the answer.
Stored procedures are the question. The answer is "No".
Please ignore any grammer errors in this commentent.
Admin
When you got a hammer, everything is a nail my friend.
Admin
Many layers of yellow snow?
Admin
Admin
sounds like fun.. i could use some good village pillaging to improve my mood
Admin
FTFY.
Admin
why! for the love of god why!
Admin
Apparently this implementation was a trade-off towards his Nazi Java colleagues.
Admin