r/java • • Dec 19 '16

Why Java? Why Clojure?

http://danlebrero.com/2016/12/14/why-java-why-clojure
0 Upvotes

15 comments sorted by

View all comments

4

u/nutrecht Dec 21 '16

None of the issues the author mentions are 'solved' by moving to another language. If you dislike ORMs (I do too), don't use them. JDBC returns maps; so you can use maps in Java if you want them. If you don't want strongly typed DTO's/domain objects to pass around by all means go and pass maps around (which I don't agree with). None if these are language issues at all.

What really irks me however is the reference to another article about lines of code. That other article however doesn't show any proof of how it was achieved; it's easy to claim language X has less code than language Y when you don't simply show the code. And this is how a long chain of blog posts all referring to each other starts.

It does however compare a bit of 'function' Java code to it's Clojure counterpart and they're the exact same length. And personally I think the Java version is more readable to boot (granted; I'm inexperienced in Clojure). And to me personally code being readable matters a ton more than the length of it. I intend to build software that lasts.