Java 6 Developer preview now available for Leopard

Merry Christmas Java developers – from Santa Steve! Java SE 6 Developer Preview 8 is now available for Leopard via the Apple Developer Connection. You need to be an ADC member to access this download, but registration for the basic online membership is free and provides access for the Java SE 6 preview.

Java 6 Developer preview now available for Leopard

Finally! Unfortunately it requires a 64-bit capable Intel-based Mac (a Core 2 Duo or Xeon) so no luck for us still on G4s, but it’s progress!

Dependency injection and why Java sucks

Jamis Buck reminds me why I dislike Java in his Net::SSH revisited post.

It’s not that Java is bad. It’s quite a nice language with a good solid foundation of available classes and libraries. No, the problem is all the frameworks and design patterns you need to use to be able to work at the same level as what come as default in a language in Ruby.

Dependency injection is a good example. I remember then it was the latest hype in Java-land a few years back. In Java it helps you write modular code without tight coupling between the components. And that’s a good thing, right?

However, in Ruby this is a non-issue. You can accomplish the same in Ruby without using a framework and extra libraries.

This is what I dislike with Java. It holds me back! With Ruby I feel I have an incredibly amount of power available at my finger tips. I can concentrate on the fun thing; solving the problem at hand. No need to fuss around with frameworks, support libraries and what not, just to have the ground to build upon.

So to summarize. Ruby makes you happy. Ruby makes you smile. Ruby gives you all you need.


I’ve played with JRuby a bit lately and it’s quite marvelous. I wanted to use a library that was only available in Java but the rest of the code I had written was in ruby, jruby then magically solved my problem and saved me a bunch of time. Super!

Rake better than ant

Martin Fowler writes about JRake:

Matt’s written more build scripts than most and around 2000 we both made the mistake of thinking an XML based build file was the way to go. We also both now believe you need a full scripting language. With so much invested in ant, it will still be around for a while, but we think rake is the better solution for the future.

Maybe people are finally coming to their senses! I’ve been lobbying against using ant for quite a while now but with a lack of better alternatives it’s hard to drive the case. Now there’s both JRake that Martin mentions and Raven that I’ve written about before so it’s starting to look promising!

Ant – What’s with it

What’s wrong with ant, the build tool used by most java projects? A programming language in XML, who got that brilliant idea? The guy (or girl) should get a medal!

In most medium sized projects the ant build file is either a mess or if not, a disaster waiting to happen. One would have thought that someone would have created a better tool by now, but people are just way too much in love with xml…