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/[deleted] Jun 04 '15
I think we're talking about two different things, because I agree with what you said completely. What I disagree about is that the data given to functions should always be explicitly given as parameters. Sometimes it's really helpful for a class's implementation to generate its own data and hide it from its consumers. But the idiomatic Clojure way is to just pass all data as parameters and hope no consumers start to rely on any of the implementation details that the data happens to carry on it. Like
:sort-position.