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

Show parent comments

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.

1

u/Rakn Sep 10 '21

I haven't worked on larger python projects yet (unlike with Java or Go), but I feel like modern Python with it's type hints is somewhat better. The pain begins when there are libraries using things like **kwargs. Or these generated libraries like boto3 (what a shitshow).

Unfortunately there is still too much untyped python code out there, that I'm always reluctant to use it on a larger scale.

2

u/scyth3s Sep 10 '21

Type hinting is still trash imo. It helps, but it will never be as useful as real, strong types.

1

u/Rakn Sep 10 '21

True. I'm not entirely satisfied with it either. But still better than before and I kinda learned to love python recently. At least for smaller stuff. It helps you do a lot with just a few lines of code.

→ More replies (1)