2010.08.27 09:29 - Entertainment, Microcode, Whining, Work-related
I'd like to be able to do something like this
try {
/* and then, a miracle occurs! */
} catch (BarException beFoo => String.Equals(be.Property, "Foo")) {
// foo handler
} catch (BarException beBar => String.Equal(be.Property, "Bar")) {
// bar handler
} catch (BarException be) {
// general BarException handler
}Mostly because it seems slightly cleaner than the current approach to handling, e. g., OracleExceptions, where one might care about some of the error codes represented by the exception, but not all of them:
try {
/* and then, a miracle occurs! */
} catch (BarException be) {
if (String.Equals(be.Property, "Foo")) {
// foo handler
} else if (String.Equals(be.Property, "Bar")) {
// bar handler
} else {
// general BarException handler
}
}Some flexibility is lost vs. using if-else statements instead, but you could produce the same thing with typeof and nobody sane does that if they can get out of it, either. Semantically, it's pretty much equivalent and, syntactically, it's more verbose (to no obvious semantic advantage), so I'm sure it's not actually a good idea. (Additional evidence it's a bad idea: I'm sure I'm not the first to hit on this idea, yet it isn't implement in C# as far as I can tell. Presumably, those guys know what they're doing.)
Granted, it would be even better if Oracle would throw different exception types for different error codes instead of throwing the one type with slightly different data, but some problems seem, prima facie, less intractable than others.
| [ 0 trackbacks ] | permalink
2010.08.18 13:17 - Entertainment, Movies
Summary: Big, dumb, loud, violent, and more fun than it has any right to be.
2.5/5
The Expendables is a terrible film. The acting is awful, the story is stupid, the premise is preposterous, the characters crummy. (It is, in fact, so awful I think it must be intentionally bad.) It is also awesome. Honestly, this was probably the most fun I've had in the movie theater in at least a year and a half. (And I thought A-Team was great fun, FWIW.)
Recommendation: If A-Team was too cerebral for you, this is your film.
| [ 0 trackbacks ] | permalink
2010.08.18 12:58 - Entertainment, Movies
Summary: Technical excellence on a fundamentally shallow and banal story told with cutely imposed video game metaphor.
3.5/5
I confess to being unfamiliar with the comic book except by reputation. After seeing Scott Pilgrim, I don't feel any desire to familiarize myself with the source material. The main character is, basically, a jerk, the story is trite, the grand realization at the climax could come out of a fortune cookie or a generic self-help book, and nothing about the movie bears much scrutiny. For all that, everything about the movie other than the story is excellent: the acting is good, the special effects are great, the dialogue clever, the use of narrative devices smart.
It's just that there's nothing about the story to make it worth all this effort.
In the end, Scott Pilgrim vs. The World is almost all flash and almost no substance.
Recommendation: see if you're interested, but don't lose any sleep over missing out.
| [ 0 trackbacks ] | permalink
2010.07.30 11:09 - Entertainment, Microcode
Blazblue: Continuum Shift is out, so I picked up a copy. It's pretty much Blazblue: Calamity Trigger++, which is as expected.
Story mode's been improved: it's no longer necessary to lose each fight to complete a character's story, there's a skip feature for portions you've already seen, and losing doesn't necessitate backing out to the select or load screens and starting over.
There is a Challenge mode now. Apparently, this is good for getting the player up to speed on a character's moves. Being the player in question, I tried that out last night. First two missions are relatively trivial, third might be solvable in non-polynomial time with a third hand.
The 360 controller is rather sub-par for this kind of game, so I think I'm going to look into something like a dedicated joystick.
| [ 0 trackbacks ] | permalink
2010.07.13 09:17 - Entertainment, Microcode, Internet Stupidity, Miscellanea, Zombie Preparedness
I expect to shoot zombies or something Friday night, barring the unforeseeable.
Update: Or maybe TF2. See if I can't get one of the Engineer unlocks, maybe.
| [ 0 trackbacks ] | permalink
Next





