- 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 have seen code exactly like this to create monster SQL queries (complete with the obligatory injection vulnerabilities).
"Give me Here documents or give me death" ....
Admin
Strangely, he was having a go at QJo. I was under the (possibly mistaken) impression that QJo is just another regular, not one of the staff?
Admin
No, definitely not on the staff, a devoted regular, getting irritated at the low levels of tolerance towards the writing.
Apologies if I have been the cause of people who don't like this site no longer reading it. As for me, I don't believe people should be allowed that sort of choice. Pardon my irony.
Admin
Also, learn to read the meta.
Admin
"Them who can't stand critique utter some forbidding others to do the same" :-)
Admin
Admin
If God used COBOL we all see the world thru 80x24 tty instead of Google glasses
Admin
Admin
Admin
Trying to have a rational discussion about evolution with someone role-playing God, isn't likely to lead to the satisfying victory that you're looking for.
Admin
It sends an email to the presidents daughter, asking for a date.
Admin
Admin
Admin
Gah? He offered the opportunity to kill him, and you went with handing over the documents?
Admin
I think that author was asked to reorder the output so that the e3 column was moved to the left.
TRWTF is then that author reordered variables' declartaions as well.
Admin
Hmmmm...match-book school of computer programming?
Admin
Quite right. London is a holiday destination.
Admin
Yeah... I've always thought the American "vacation" is a weird term; why use a word which essentially means "making the home empty"? I mean, yeah, you do make your home empty, but that is entirely a side effect of "going somewhere else that's nicer, for a while".
Then again, I guess it makes no more sense than using a word for single day's religious festival.
Admin
Admin
At least he typed them. I had a gig about a decade ago where I was welcomed by this:
ON ERROR RESUME NEXT
Dim A,B,C,D,E,F,...ZZ
A = code B = A + CODE S = "Address "
etc
And everything a VARIANT
Admin
If he had two brain cells instead one, he could have at least named them a01...a99 and not had the problem with 'e'. But that would be one step away from an array and a loop, which would be another slight evolutionary improvement (of the hundreds on the way to actual sane code).
After all, if there's one thing about the Galapagos, it's that life there didn't evolve to survive around mainland animals. Its native species are just as fragile and hard to maintain as the code of Roberto's cow-orker.
Admin
Admin
You're all wrong. I used Ruby. Which is why there are ginger people.
Admin
You could at least use XML literals to avoid those godawful line continuations.
Dim html as String = <html> fuckity fuck bye </html>.Value
I wish I never had to learn this.
Admin
Not only does this code pattern itself stink, but hits just about every one of my .Net pet peeves that coders do.
If there was a bunch of conditional statements on the lines I might think theprogrammer could have been trying to speed up their code and did not know about StringBuilder. Concatenating the smaller with the logic there and then concatenating them at the end would likely have been faster. Though, this is VB with the & operator instead of the + operator, so it may behave differently. Normally, + in VB and C# is compiled to use String.Concat() which, with this many arguments, will take the length of all of the strings and allocate memory once for the total rather than the creation and release of immutable objects. Without the conditional statements, though, it would have been better to just put the entire statement into one big concatenation statement , for speed. Though, if you are doing that why would you be using a label object in the first place.
Now that I reason through it, this classifies as a WTF no matter which direction you look at it.
Admin
One can argue whether that code evolved, or was created. But it certainly refutes the theory of intelligent design.
And if God wrote our genetic code in SQL, we'd all be related.
Admin
Personally, the XML literals and processing in VB.Net is a good thing when you have to work with XML docuemnts, it is a real time saver. Just about the only thing I like about VB.Net vs other .Net languages.
Admin
As long as the elements in the ArrayList are reference types they won't be boxed/unboxed. It's still a sucky to do though.
Admin
-Harrow.
Admin
Wonderful place to visit. Do yourself a favor and get a 1 week pass for the underground. Saves LOTS of time, etc.
Of course, visiting outside of the "rush" season (May-September) improves things. I last did it in the fall (late November). Be sure to bring a raincoat.
If you want to have fun, go to the Underground Lost & Found and mention that you lost a black umbrella. Always a good joke!
Admin
Well screw them... I'm on holiday! I can't let the drudgery of their normal lives ruin my piña colada.
Or tic tac toe!
Admin
I used to write code like this. Hopefully not so much anymore.
Looks like a good place for the Factory Pattern.
Why is the output being put directly into a label?
Admin
Admin
I've been one to complain about the "flavor text" accompanying the articles from time to time, and yeah it's often pretty bad.
But I thought it was pretty good here. A new high for Remy, even!
Admin
Quad-Quote <- Backwards all we would be God if used APL.
Admin
Nope. Not surprised. Seems to reference the medical industry which is TRWTF.
Admin
Someone seems to be confused on the difference between definition and initialization. They may be uninitialized variables, but they're definitely defined.
Admin
Admin
Oddly enough, I see magic variables about three times as often in C# .NET as I do in VB .NET. The VB .NET WTFs are a whole separate class, though.
Remy, was this originally submitted as VB .NET code?
Admin
My VB.NET is a little rusty, but I was under the impression that by declaring a variable without initialisation, it would get automatically initialised by the compiler to NULL for most reference types, or some default for value types?
I may be wrong, but assuming I'm not, concattenating 5 uninitialised strings would give you the empty string.
Admin
I see it only took 7 comments before the VB bashing began.
Admin
"Nothing", not NULL.
But yes, the concatenation that you describe will give you an empty string, along with five compiler warnings.
Admin
+1E11
Admin
I am brought to tears by the beauty of this code. It is like looking into the untamed face of the wrathful Divine. I AM UNWORTHY!
Captcha: duis - unis duis tris Tetris!
Admin
If God used Lua we'd all be hookworms. If God used Mumps we'd all be X(^DNA("OID")) If God used SQL we'd all be <?= mysql_fetch_array(mysql_query("SELECT `trait` from `traits` where `lang` = '" . $_GET['lang'] . "'") ?>
Admin
Yeah....listen, we've been meaning to talk to you about that.
Admin
God actually used Perl as scientific researchers have found out:
http://xkcd.com/224/
CAPTCHA: Eros - Didn't Eros create the world according to Greek mythology?
Admin
-1 You missed the final full stop.
Admin
I wonder how well that works when two records have the same email address.
Admin
Let's be honest, we all know that God wrote in LISP http://www.youtube.com/watch?v=5-OjTPj7K54 The Eternal Flame