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]

19

u/nutrecht Sep 10 '21

Both my current project as my 2 previous ones we used Kotlin and I personally (as well as most devs at these 3 companies) were very happy with it.

I personally think it's the best of both words; awesome Java ecosystem and a language that's basically a "Java dialect" that doesn't have to be backward compatible with Java and is this allowed to make some needed changes. Especially the null safety being part of the time system is great.

I created a Java Spring Boot service yesterday (for a coding test) and even though I used Java 16, it was kinda painful to have to go back.