Entries from June 2008

June 29, 2008

Method Chaining and Struts

Method chaining is very cool. Basically, it allows you to turn this code:

Car hondaFit = new Car();
hondaFit.setColor(Car.Colors.BLACK);
hondaFit.setStyle(Car.Styles.SPORT);
etc.

To:

Car hondaFit = new Car().
setColor(Car.Colors.BLACK).
setStyle(Car.Styles.SPORT);

Pretty cool. It makes Java/C# style languages function similar to Ruby and it also saves some space when setting a lot of attributes at once.
Implementation is pretty simple. All you have to [...]

June 21, 2008

OS X and Java: UnsupportedClassVersionError

A couple of months ago, Apple finally released a version of Java 6 for OS X. With Java 5 fast approaching its end of service life, many Mac developers, including the couple of us who use OS X in production at my office, were eagerly awaiting the release of a production-quality Java 6.
There is [...]

June 15, 2008

Blog on Cycling 2

I originally posted this in July of 2006. Since then, my mileage has increased to about 100 miles a week. However, I feel just as “treme” as I did back then and thought it would be funny to re-post this here … enjoy!

This is the second blog dealing with the sport of extreme [...]