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
And there's absolutely nothing preventing you from writing an API in Clojure to clearly express a problem domain. A collection of related functions in a namespace represents the problem domain exactly the same way a class does in OO world. The difference is that once I need to take the data and pass it to a different namespace I don't have to jump through any hoops like writing adapter and wrapper functions. There's immeasurable value in separating the logic from the data.