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.

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...).

→ More replies (1)