- 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
Make sure that you remove that pesky 'e' variable so that it builds faster when rebooting your sarcasm detector.
Admin
That's like hiring a mechanic to fix your car, but instead he just shits in the back seat.
Admin
Admin
try {
} catch (Exception) { } finally { // @TODO: Fix-up for a future version }Admin
Well, that was the problem! I'm releasing a hotfix that will appropriately handle that problem.
Admin
I see we share the same mechanic... And that he likes his corn.
Admin
"...And thus the general clean-up began..."
Addressing compiler warnings was part of a general cleanup that involved address customer-reported problems that was prompted by customer-reported problems.
Admin
Admin
You are so far behind the times man. E is the new term, x is so 90's.
Admin
That's nothing!
Mine shoves it in the air duct so it bakes in the summer heat, and then I turn on the AC.....
....The horrid smell causes me to throw up all over myself, and since I'm not watching were I'm going, I run into a pole and smack my face on the steering wheel and start bleeding....
...so there I am, bleeding, covered in vomit and smelling like shit in the middle rush-hour traffic right in front of my buddies from work and the hot chick from HR. The whole situation is so embarrassing I start sobbing uncontrollably....
...so there I am, bleeding, covered in vomit and smelling like shit, and crying like a little girl when a cop pulls me over. At that point I just feel so alone in the world that I want to get out and give him a hug, but he doesn't want to come anywhere near me or my shitty-smelling car so he just sticks his taser out his car's window and zaps me from thirty feet away while finishing his coffee...
...so here I am, bleeding, covered in vomit and smelling like shit, and crying like a little girl in a holding cell with some really hairy guy giving me eyes and this is my only phone call I get - PLEASE HELP!
Admin
You are so far behind the times man. Krokodil is the new thing, "E" is so 10's
Admin
I stand by my unpleasant analogy.
Admin
I think I work at this company... :(
Admin
The developers didn't make things messier by removing compiler warnings, they just though that removing the warning would fix the problem (maybe).
It's more like the mechanic doesn't know what to do, so he just takes the vehicle to a car wash.
On the other hand, the shitting in the back seat does make for more interesting discussion.
Admin
appellatio - blowing an apple?
Admin
Hey I got to drop a log, where are you parked?
Admin
FTFY
Admin
But if there is an error, dont you want to retry till it works?
Admin
But how do you get out of the never ending recursion? Stack overflow baby! Yeah!
Admin
Admin
Hey, did Alex stop doing the blue comments or what?
Admin
No, it's just that nobody here posts comments that are worth blueing.
Admin
Admin
Captcha: acsi - Acsi stupid question, get a stupid Ansi
Admin
TRWTF is Exceptions, they slow down your code severely ^^ turns off RTTI
Admin
So the comments are so disgusting that you threw up the green tea you drank earlier?
Admin
It's not your oral orifice I'm interested in. Come here, pretty!
Admin
Wow! Perhaps there would also be a market for an automated warning removal tool. Though I would be ashamed to write such a thing.
Admin
That sounds about right...
Admin
Oh, came-on. Of course the stack overflow will raise an exception. You hadle the exception then (the snipet already showed how to handle exceptions).
You, people, miss the obvious.
Admin
StackOverflowException Class
...
Version Considerations
In prior versions of the .NET Framework, your application could catch a StackOverflowException object (for example, to recover from unbounded recursion). However, that practice is currently discouraged because significant additional code is required to reliably catch a stack overflow exception and continue program execution.
Starting with the .NET Framework version 2.0, a StackOverflowException object cannot be caught by a try-catch block and the corresponding process is terminated by default. Consequently, users are advised to write their code to detect and prevent a stack overflow. For example, if your application depends on recursion, use a counter or a state condition to terminate the recursive loop. Note that an application that hosts the common language runtime (CLR) can specify that the CLR unload the application domain where the stack overflow exception occurs and let the corresponding process continue. For more information, see ICLRPolicyManager Interface and Hosting Overview.
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition Platform Note: A thrown StackOverflowException cannot be caught by a try-catch block. Consequently, the exception causes the process to terminate immediately.
PS: RTFM
Admin
You can't catch a stack overflow (at least not in .net). It's funny that in trying to make the code worse, some people unintentionally make it better...
Admin
Ha ha! I'm so glad we're friends again, C-Octo.
You complete me.
Admin
I'm actually speaking out of school here. I don't know the first thing about funny. I do know how to be the number one poster (in volume) on TDWTF articles, though.
Yay me.
Admin
DbConnection.ForEach("SELECT * FROM blah WHERE key=@key", r=>{/do stuff to each record here/}, new SqlParameter("@key", key);
Admin
Is the "do stuff to each record here" i++, because if it is, I think I've seen your work here before. :P
Admin
Admin
Yeah, I should have RTFM! I couldn't imagine one could actualy catch a stack overflow at earlier versions of .Net.
Sorry, I was trying to write nonsense, I couldn't expect reality to comply.
Admin
Er, okay, I have a razor you can lend him (his hairiness seems to upset you), that may enhance the experience for you ...
Admin
Admin
Well, if it's going to happen ("It's going to happen" he said) he might as well be definitely male so it doesn't confuse me latter in life, amirite?
Admin
Admin
Oh wow, dude. Wrong forum...
Admin
Admin
Admin
Admin
Admin
Admin
Admin
I, for one, prefer to have jokes explained to me.