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
-2
u/Philluminati Sep 10 '21
One other reason is that people have fallen out of love with Object Oriented Programming.
Inheritance is poor mechanical for reusing code
private and hidden state inside classes/objects makes reasoning about parallel processing and multi threading difficult
mutable variables have potential performance problems maybe too.
try catch / exceptions are a confusing escape hatch that can corrupt data structures, exposes side effects and hurts the substitution principle. They are difficult to reason about.
And Java is was built around those concepts. It has become more modern and moved away from these things buts still considered an OO language, even if it has adopted a few FP things like map and option.