- 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
Can't tell if you're pretending to be a jerk or you really are. If you spent more than 1 second reading Wikipedia to settle a dispute pertaining to Game Boy on the Internet, you're too twisted to be worth listening to.
Admin
It's also possible that the author may have had the intention of going back later and adding some code to handle exceptions later and so he left "stubs" for that purpose.
Admin
Admin
THAT'S IT! I have had it with these monkey fighting code snippets on this Monday-Friday website!
Admin
Yes, but why assume he lives in the US?
Either way, 23 is old enough to get drunk on your lawn legally. That makes him old enough to be a full participant on TDWTF, especially if he codes while drunk.
Admin
Proposed title: When the Great Dao is Lost...
Admin
You're right. I'm not from US.
Maybe he's jealous 'cause when he's a child he only have Looney Tunes shit to see. And f**k it all. I'm not giving a shit, why you guys are?
Also, the first "program" that I've made was a bot-programmation (C++ like) for an online game, and I was 12years old that time. (Yes, I was watching pokemon in that age.)
Captcha: opto. I opto not to discuss this anymore. Back to WTF pls. :)
Admin
TRWTF is a function that potentially throws so many exceptions.
Captcha: eros -- shot from a bow
Admin
In middle school, in '97, we used Pokemon cartoons (and others) in our Japanese class. When it came out here, I was amused how "Pikachu: you are the distinct individual [whom] I have chosen!" was translated.
Admin
Okay, now you're going over the line. Looney Tunes isn't "shit", Looney Tunes is the shit! (gotta get the originals, though. The sanitized versions are useless.)
Admin
Does C-pound have operator overloading? Could "Throw" potentially add something like the current method name to a list of methods visited by the Exception?
Admin
+1
Admin
No finally always runs, I think the feature Oneway is looking for is called a try-catch block.
Admin
Darn. thedailywtf-laginess is back.
Admin
Admin
Admin
You mean like: try { //Mess up code here } catch (Exception $e) { try_harder { // execute again. catch (Exception $e) { // handle exception } }
Admin
There is no try, only do.
Admin
Oh sure, way to go Hitler. Maybe we should bring back the old Popeye episodes where the Japanese are depicted as semi-clever, buck-toothed monkey-men, too. While we're at it, we could revert back to the old name and image for Cook's Chicken.
Admin
Admin
+1
Admin
Oh, you're talking about the old episodes, with the racist depictions of black characters? "Coal Black and de Sebbin Dwarves", that sort of thing? That's not what I was referring to. There aren't sanitized versions of those, you can't get them at all (officially). It would be hard to clean those up. You can find them, if you look, but they're not actually that funny.
I'm talking about the clumsy editing that was forced on them in the 80s and 90s - cutting out the scenes that were taken as "violent", and destroying the rhythm of the cartoon. The expurgated versions are about as funny as a mackerel.
Admin
What a coincidence! Is your name William T. Friedenhoffer as well?
Admin
My bad. I wasn't even aware of the "edited for violence" versions. I haven't watched Looney Tunes for ~25 years.
Admin
I haven't seen them in a while myself. Maybe I'll try to dig them up - I still think they're some of the best comedy America has come up with.
Admin
"As an online discussion grows longer, the probability of a comparison involving Nazis or Hitler approaches 1." -Godwin
Admin
Gotta catch 'em all.
Admin
In this case, if you've ever seen the episodes Frits thought I was referring to, you'll understand how a Hitler reference seemed appropriate. They're pretty grotesque. If I ran into someone who watched them for fun, I'd be a little concerned too.
Admin
You're so right!!! They should name a law after that guy based on that principle.
Admin
You jest, but this type of coding is catching on.
Admin
catch and rethrow? Looks more like a fumble to me!
Admin
Watched SOAP on cable, did you?
Admin
gotta catch 'em all. pokemon.
Admin
I assume you mean venereal diseases from boinking pokemon?
Admin
I think this is called the Pokémon antipattern, gotta catch 'em all!
Admin
Do or do not. There is no try.
Admin
Is it just me, or are these comments already starting to repeat?
Admin
Is it just me, or are these comments already starting to repeat?
Admin
Is it just me, or are these comments already starting to repeat?
Admin
Makes it better because.. there is no wtf here. More like elitist coders making fun of something that there is nothing wrong with because they want to pretend they know something that has little to do with reality.
Admin
Is it just me, or are these comments already starting to repeat?
Admin
try {
} catch (Exception comment) { throw new CommentException ("FileNotFound", comment); } finally { MakeUnfunnyCommentOfMyOwn(); }Admin
Admin
And yet the result is nearly identical...
Admin
Well of course you need a separate exception for XML files not being found. XML files are likely to be much more important to the business process than regular files, so an XMLFileNotFoundException is usually going to be more serious than a FileNotFoundException.
Admin
If you're stepping through it with a debuggerer, you'll see which exception was thrown or you can set a breakpoint for a particular exception.
Admin
Admin
I was about to say, when I was 12, I was watching Speed Racer. But then I remembered that hipster college pukes would watch that show in the 1990s, too.
Admin
if(going_to_raise_x-wing_from_swamp) { /* try { do('raise x-wing from swamp'); } catch (InsufficientForceException $e) { throw $e; } */ // Do, or do not. There is no try. -Yoda
} else { // leave it there }
Admin
try_again would be very useful in C++ where you don't get any context as to where your exception was thrown.
When you catch an exception get it to go back so you can trace through this time and see where it got thrown.