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.

75

u/maomao-chan Sep 10 '21

Lol the duality of JS programmers, praise Typescript but hate statically typed language like Java.

1

u/Reverse_Grodd Jan 03 '22

Not really a duality. Front end developers are well aware of the limitations of raw JavaScript, the very reason TypeScript was embraced. Because TypeScript is a superset of JS, you can use the discipline of TypeScript 98% of the time, but also type an object as "any" when it does make sense to use the dynamic capabilities of JS, and know you're not paying a performance hit for that in the run environment.