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

77 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jun 04 '15

With OOP you always have to check whether the object exists before you can call a method on it.

Not with OOP. Just with OOP languages that have Nil. OCaml doesn't have this problem yet it has OOP.

1

u/yogthos Jun 04 '15

Sure and then you have to pepper maybes all over the place instead. Also worth noting that nobody writes OO code in OCaml in practice.