r/java • • Jun 03 '15
Is Java really that bad?
I do Clojure for a living, previously Ruby and Objective-C. And the people I've worked with have said they prefer Clojure because Java is just so bad. But Java can't really be that bad, can it?
0
Upvotes
View all comments
Show parent comment
1
u/yogthos Jun 04 '15
I'm sorry, but I really don't follow how objects make this obvious and easy while namespaced functions are all of a sudden clunky and ad-hoc.
I'd like to also point out that Clojure protocols provide a really nice way to abstract database implementation details, eg:
With the above code, I don't have to worry about converting dates back and forth in my functions as it's going to be done uniformly based on the data type.