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.

137

u/Gk2k08 Sep 10 '21

Agreed here. I worked on a Django project(when it was the cool thing) and thought that python is so better than typed languages(It has its uses but not in a complex system with 1000s of classes). Once this project scaled up from me being the only developer on it to have multiple people and having more than 10k lines of code it became a complex piece to maintain. If there is no unit test case for all the scenarios the only place you would see an error is in runtime. Imagine doing int + string in your log statement and that brining down prod app and having to rush a fix for that.

35

u/analogsquid Sep 10 '21

Imagine doing int + string

When I started programming, I was always blowing up my Python projects with stuff like this, and I never knew why.

Discovering and switching to Java was a revelation.

1

u/[deleted] Sep 11 '21

JS wouldn't blow up, it's not strongly typed