- 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
But if he had written "when someone points out a grammar or spelling error in a post when he is replying ...", the server would have thrown a PoliticalIncorrectnessException.
Admin
I prefer the way Red Green illustrated this.
In his workshop, he displayed a wooden board with several things stuck into it -- a few nails, but mostly various types of screws. He was discussing how important it is to select the right tool for the job, pointing out that some screws are Philips, some are flathead, some are hex.... Then he pulled out a large hammer and pounded every single one of them down into the board.
"Remember: any tool can be the right tool."
I am increasingly of the opinion that Red Green's design and implementation philosophies actually permeated the brain of his geeky nephew, Harold, who then went on to become a world-famous software engineer. It's the only possible explanation for the proliferation of this sort of code.
Admin
LMAO!
Admin
Toletarting! That's great!
Along with "Termination Date to early!". If you read that phrase the way "to" is supposed to be read in this situation, which is, without any emphasis and spoken quickly, you'll realize that it's wrong.
Kinda like when I read "we don't want to loose track of ..." and of course, mentally I pronounce "loose" the way it is correctly pronounced (lus with a long u), which is different than "lose" (luz).
Admin
Captcha: appellatio. What Adam and Eve did that got them kicked out of Eden.
Admin
Admin
Require that all SQL code be done through functions and have a proper object wrapper. Should make things interesting.
Admin
Guys, I've figured out the rule for the "toletarting" thing: Where "r" found in character stream, grab the next character, then insert "t" followed by that character before the "r".
So here's the fixed version: "Of coutsre, since outr management is non-technical, theter's vetyr little any of us can do aside ftorm just toletarting the code. Aftetr all, his code turns about the same as outsr... and that's all that mattetsr, tirght?"
Admin
The goggles, they do nothing!
Captcha: populus
The choice of SQL to do date validation is frowned upon by the populus.
Admin
Making the omission of a statement-terminating semi-colon or even .ctor parentheses perfectly valid, albeit counter-indicated.
<internet/> ...even if you win, you're still /b/tarded
Admin
Hmmm...delicious irony
Admin
Some would say performance also matters... and maintenance. But then you'd need management with at least a global understanding of technical matters. Maybe they need to check out ISO 9126?
Admin
Stupid designs like this make me angry.
I mean, it's so obvious that stmt.close() should be in a finally block...
Admin
If all you have is a hammer everything looks like a baby seal.
Admin
No. "to" is not misspelled. It's incorrectly used when "too" is what the author meant.
Admin
After reading this submission, and all the related comments, I can only really add one thought:
A tart sounds delicious!
Admin
Admin
FTFY
Admin
Just what the world needs. More useless layers. Russian doll coding is worse than spaghetti coding.
Admin
SQL is seductive for dates if you already have a database connection open. Consider trying to figure out the date of 6 months ago. With SQL, its
SELECT curdate() - INTERVAL 6 month;
That's really a lot less painful than most of the date libraries available. If you have a cool library available though, best use that.
Admin
Admin
This looks like Java. The Date/Time piece of Java is horrid and date comparison is not trivial if you want to ignore the time. Generally what you would do is write a method that handles comparison and then use that method instead (or go find a better Java Date library). However, I've been tempted to do garbage like this at times.
Try finding the difference in days between two dates. It isn't exactly a built in method in Java.
I know this is no excuse.
Admin
This code might run the same as yours, except with the added overhead to connect to the db each time...?
Admin
I had a good laugh until it dawned on me that some of the older code I inherited should have similar crap. I mean it was coded by feces throwing monkeys, so I went searching:
//Used multiple times to retrieve current date
Select Now()
// Classic Mathematics .. I’m guessing adding numbers in Perl is too complicated
Select SUM($acc_val + $acc_left)
I wish I was making this crap up....but these are the same guys that have a method that queries the same table 8 times to retrieve 8 different columns....OH THE PAIN
Admin
Your kidding, right??? I mean who cares!!!! People REALLY care about crap like this?!?!?!?! Get a life.......
Admin
Really depends if you are already connected to the db and running other queries, or if the code run is run a few times a day.
Admin
Its tottally indistegible kode und enritely untoletartable forewort. Schame.
Admin
You have got to be f*cking kidding me!
Admin
Admin
For me it showed up pointing to right after the 's' in layers, implying it should read
throw new TooManyLayers;OfPedantryException
that made me wonder what the heck they were on about.
Admin
Well I think there is a nice artistic balance in having Spelling/Grammertical errors in an absoluting and pedantic piece of SQL code.
A mix of Logic and Anti-Logic is always an entertaining way of checking code. ;-P
Admin
The TOLETART function isn't available in DB2 until V10.1,
Admin
When you only have nails, everything (else) looks like a hammer.
Admin
You have got to get out more!
Admin
Admin
Certain coworker, is that you?
Admin
We used to have a colleague who liked to do things in Oracle. For example, encryption.
Now, the question arises what use encryption is when you first send an unencrypted text to the database server in order to retrieve the encrypted text, but let's ignore that for the moment.
So, at some point I was tasked with rewriting this in Java. Did you know what you can do some sort of Double DES in Oracle? So not DES or 3DES, but something in between using a 128-bit key.
That was quite an interesting exercise.
Admin
No, You spell it Hmm (one less m) </joke>
Admin
No, You spell it Hmm (one less m) </joke>
Admin
Cue the IrishGirl jokes in 3...2...1...
Admin
What's that? Java? JDBC?
This guy's a piker. I know a guy who writes the entire application in PL/SQL. He regards Java as a sign of weakness.
(He is actually a good friend and I've worked with him several times, but I've often had to ask him not to do his stuff as it tends to be hard for mere mortals to maintain.)
Admin
Could be worse. At least he uses bind variables, so no SQL injection problems.
Admin
Hey, I hate Java's godawful date handling classes as much as the next man, but even so ...
Admin
Actual "double DES" is hardly ever used at all -- it is not appreciably stronger than single DES due to the meet-in-the-middle attack construction.
Admin
Exception? C'mon, finish what you started, go back and do a RAISERROR.
Admin
It could be worse.
He could decide to to everything in Visual Basic!!
*on a wooden table, with XML, for Paula...
Admin
class CheckDatesImpl extends SimpleDateCheckers implements EasyDates {
}
Admin
Admin
Admin
throw new Exception("Termination Date to early!");
throw new GRAMMATICAL_ERROR!!!!!