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.

→ More replies (4)