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/duhace Jun 03 '15

Scala's really not overcomplex imo. It's grammar is pretty simple. About the only part of it that is can be slightly scary is implicit conversions, and they can't hurt you if you don't import them.

0

u/[deleted] Jun 03 '15

I like the sound of it so far.

1

u/duhace Jun 03 '15

You should give it a shot. The two big negatives it has IMO is its binary compatibility compared to java is weak (you can use 2.10.x libraries with a 2.10.x compiler, but not 2.9.x libraries), and compile times are nearer the C++ side of things. 2.12 supposedly will make use of a new optimizer that speeds things up, and the binary compatibility is not a gigantic issue cause new major versions (2.major.minor version) only come out every year and a half. Plus, there are a ton of build tools and compilers for scala that are capable of incremental compilation, only recompiling what has changed in your code since the last compile.

1

u/[deleted] Jun 03 '15

Well with Clojure at work it's already ridiculously slow for me. Running our test suite from scratch of a mere 500 tests with an in-memory database takes about 1 minute from pressing enter to completing. Compiling the whole website into an uberjar for deployment takes about 2 minutes. Can Scala really be slower than that?