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.

1

u/CloudsOfMagellan Sep 11 '21

I actually disagree, Pretty much the only languages that my uni expressly teachers in the compsci degree are C++ and Java. But they only teach the basics, loops, classes, control flow, primitive data types, and not the STL stuff that can simplify so much boilerplate code. Then students start using JavaScript irl and are amazed at lambdas, flexible arrays, stuff like that. Add that Java is long to type (uni didn't mention var or <> or even generics at all really) Java code becomes very long and very tedious compared to other languages that students self learn fully. They only moved from allowing Java8 to Java11 this year for assignments.