Uncommented Bytes

Friday, January 21, 2005

Agreed, throw exception instead of return null

Blaine tells us Don’t use null or -1 in your unwritten methods, and I have to agree. He's pointing to Tim Bray's error in unit testing.

I have to say this is a great idea, and should be used by everyone. That is, instead of returning null or -1 for an unimplemented method, you should throw a RuntimeException ("Method has not been implemented"). Even better would be to create your own UnimplementedMethodException and throw that.

Good stuff to read for breakfast!

Friday, January 14, 2005

Multiple Firefox Session

I found some posts about creating multiple firefox sessions. But they all require you to set MOZ_NO_REMOTE=1 in your environment before starting a window. This forces each window to use a different profile. All I want is each window to use separate session cookies, or even allow this in separate tabs (could be very hard to get right).

Sunday, January 09, 2005

Legit Tivo web server

Wow, it is great to here that Version 7.1 of the TiVo service update installs and enables a web server!

Now I just have more pressure on myself ot get that wireless adapter for my Tivo. Apparently you can download video straight from the box, without having to use Tivo Desktop software. Sweet.