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

542

u/thomascgalvin Sep 10 '21

The people posting to that sub are typically young, and probably have more experience with Javascript than anything else.

Compared to JS, Java can feel heavy and constricting. Lots of boilerplate, a type system that's strictly enforced by the compiler, and so on.

It isn't until you have some real-world experience, with code spread out across dozens or hundreds of files, that you realize the "limitations" of Java are actually meant to prevent you from blowing your own foot off.

0

u/[deleted] Sep 10 '21

[deleted]

37

u/Clitaurius Sep 10 '21

Not OP but my opinion is that Kotlin will pass. It was a good driver in getting Oracle to move Java to a faster release cycle and to incorporate some popular language features. A bank can write it's banking software in Java 20 years ago and 20 years from now. They aren't going to take that gamble on Kotlin.

31

u/nutrecht Sep 10 '21 edited Sep 10 '21

I'm Dutch and quite a few conservative orgs (including banks) here are adopting Kotlin. So I don't think I agree with that "aren't going to take a gamble".

Besides; those banks are also using Scala and Python, especially in data science/engineering areas.

23

u/DasEwigeLicht Sep 10 '21

Same here in Germany. My colleagues and I have been building Kotlin backends for various industries - from insurance, to banking, to the big car manufacturers - for years now.

7

u/nutrecht Sep 10 '21

Especially in risk-averse companies the null safety aspect matters a lot. And companies are also starting to see that adopting Kotlin makes it easier for them to attract talent. So IMHO it's not a hard sell.

Also let's not forget that a lot of these companies are already using Scala as well. So I really don't understand the argument.

3

u/Necessary-Conflict Sep 10 '21

Especially in risk-averse companies

The question is what kinds of risks do you want to manage. What's worse: a NPE or your entire tech investment losing its value?

7

u/nutrecht Sep 10 '21

I think it's kinda silly to claim that your entire tech investment would ever lose its value. Like I said; it does not seem these companies feel that this is a high risk.

→ More replies (1)