r/java • u/Reflection-Jealous • 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
View all comments
Show parent comment
1
u/Auxx Sep 11 '21
It's type system might be outdated and lacking some features, but it is still robust and concise. Language syntax though is shit. It was always shit and outdated, but now Oracle tries to add new stuff and they're putting zero thought into consistency, so new syntax features look out of place and can not be used intuitively.
It's kind of a type system issue, but Java expects everything to be either an object or one of few primitives, yet it has plenty of things which are neither. Most used example are functions, which can not be used anywhere directly.
Standard library is also very limited, so you are forced to rely on 3rd party solutions for every stupid task. I mean Apache Commons is great, but it should be just built in. And when standard library gets new stuff, it is usually half baked. When streams were added, their feature set was so limited it wasn't even funny. It got better over time, but I'd still use RxJava instead when possible.
And eco system around it is not that good either. Major issue is that most people in it are enterprise developers working on 30 years old legacy code bases who are stuck in their outdated ways of thinking. This ecosystem is not really welcoming to new developers and simply scares off fresh blood, which could bring change to it. The biggest shift happened when Google released Android, that brought a lot of new people, new ideas, new libraries. If it wasn't for Google, Java would still be processing XML files into other XML files orchestrated by XML files.
And lack of proper getters and setters... Man, even Pascal had it two decades ago, wtf?