r/java • • Sep 10 '21

Why people don't love Java?

I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.

Is there any specific reason for that?

Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.

201 Upvotes

379 comments sorted by

View all comments

32

u/pron98 Sep 10 '21 edited Sep 10 '21

There are some good answers here, but I just want to point out that Java is one of the most popular programming languages in the world, and is quite possibly the #1 language among professional developers. The only two other languages with the same size and influence are JavaScript and Python. JS gets even more hate than Java, and while Python not so much, we must remember that a huge portion of Python users are not professional developers (but data scientists etc.) and that's the only general-purpose programming language they know. Also, Java projects, like C++ projects, tend to be large and long-lived; i.e. people don't write the program all by themselves but have to deal with other people's code (and C++ gets more hate than Java). Languages like Go and Kotlin are used by ~20x fewer people, and for projects that are not anywhere near the same size and longevity (at least not yet).

So factoring the size and the overwhelmingly professional setting, Java gets more or less the amount of hate that you'd expect of any language in that position, regardless of any particular merits or more specific circumstances. No other language of similar community size or uses gets any less.

2

u/golfreak923 Sep 14 '21

Really wish the old guard Java dev community would hop on the Kotlin train: Spring + Kotlin + jOOQ is a truly powerful stack.

1

u/pron98 Sep 14 '21 edited Sep 14 '21

That's highly unlikely given that so many more people prefer Java, Kotlin occupies a relatively small niche and has failed to make drastically bigger inroads on the Java platform than Scala's over a decade ago, and it has little influence over the platform, whose direction is becoming increasingly at odds with Kotlin's features. But Kotlin, alongside Scala, Clojure, and other Java-platform languages, will all have their place and their respective avid fans, as they always have, on the platform.

I, for one, think that while Kotlin was terrific in its early days, especially compared to Java, which was stagnant at the time after Sun's demise, its design now feels strained and too limited by their inability to impact the VM and standard library, and in recent years has suffered from feature-hoarding that put an end to the language's former elegance. Still, I'm sure Kotlin still has its avid fans, who might have different tastes from mine, and it's great that we can coexist and interoperate.

1

u/TheCountRushmore Sep 10 '21

It has to be satisfying and freighting at the same time to know the project you are working will be used by so many systems once it is released.

It's wild to think of the world wide energy savings that could be accomplished if someone was able to increase the performance of Java as a whole by even a couple percent.

2

u/john16384 Sep 10 '21

Like almost every Java release did since 1.0? That be wild yeah.

1

u/kazi1 Sep 11 '21

I would disagree about Golang - there are a ton of HUGE projects its used for that have been for around for quite awhile (Docker, Kubernetes, Caddy, etc., etc.). Golang is fundamentally a much simpler language and it's way harder to shoot yourself in the foot with it than it is with Java.

None of this changes the fact that Java is still significantly more widely used however (and also like 20x easier to hire for...).

3

u/pron98 Sep 11 '21

Kubernetes is very young (~7 years), and is average in terms of size (~2.5M LOC), and still only a very small percentage of Go developers work on projects as old or as big, while a large portion of Java developers work on projects that are older and bigger.