Re:Ask HN: Have you seen some beautiful Java Code?
by jefflinwood on Wednesday January 12, 2011 @12:20AM
(#2095098)
I've been developing in Java for a while, and a lot of Java code is ugly because the "patterns" developers use are ugly. That's not to say that you can't write great code in Java, but compare a Java app with JavaBean getter/setters to Spring JDBC Template DAOs to a Rails app with ActiveRecord, and it's no contest. Another source of ugliness is logging - logging libraries that abstract away other logging libraries.
It was worse when EJB2 was the standard.
Take a look at the Play framework for some modern, non-enterprisey Java.
It was worse when EJB2 was the standard.
Take a look at the Play framework for some modern, non-enterprisey Java.
http://www.playframework.org/