Archive for May, 2007

Voting for Checked Exceptions

Wednesday, May 30th, 2007

Elliotte Rusty Harold has drawn at least one nasty comment for his remarks about checked vs. unchecked exceptions in Java: Voting for Checked Exceptions.

In fact he is exactly right. Unchecked exceptions are for errors in your code that should be found during testing. Checked exceptions are for unpredictable errors caused by the program’s environment. The trouble is that many Java programmers (probably most Java programmers) don’t really understand the distinction, leading to confusion, bad code and general resentment of the concept.

I blame Sun for this. They never did a good job of explaining the distinction, and even gave the exceptions misleading names. “RuntimeException” for unchecked exceptions is exactly backwards. It suggests that even some of the designers of the Java libraries didn’t understand the concept.

Happy Birthday

Saturday, May 26th, 2007

Happy Birthday Becky.

We all miss you.

Why Legalize Spyware?

Monday, May 14th, 2007

Alex Eckelberry of Sunbelt Software discusses the SPY-ACT, a bill before Congress whose purpose seems to be to legalize the Sony Rootkit and any other spyware that vendors choose to foist on us: Unintended consequences

He also gives a fairly authoritative rundown on the current state of spyware and makes a good argument that there is no need for Congress to pass any legislation on the subject. (Which is good because we obviously can’t trust them not to make the problem worse.)

C# From a Java Developer’s Perspective

Wednesday, May 2nd, 2007

C# From a Java Developer’s Perspective a handy point-by-point comparison of the differences between the two languages by Dare Obasanjo.