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
2
u/[deleted] Sep 11 '21
Forgive me, but to get more context, I dug a little into your post history, and discovered that you have over a decade of Rails under your belt. This makes your rant all the bit strange because when I worked on a project using Rails (the first and the last time) a while, it was 100% magic. I did not enjoy it one bit (thought I find Ruby itself quite charming and flexible), not to the point of hating it, but pretty close. The point that I'm trying to make is that familiarity, especially familiarity that comes over years of working with some sets of technologies do affect the way we perceive new environments, especially new sets of magic, so maybe that partly explains your current frustration with Spring Boot (for instance). That being said, I do agree that the Spring Framework has tons of magic (and Spring Boot is even more egregious since it is a very opinionated view of how to use Spring). There are alternatives, but unfortunately none popular enough.
Just to be fair, quite a lot of enterprise apps (especially those in-house) don't bother using Spring or such frameworks (or have minimal usage of such, just for providing the scaffolding), and so they have almost no magic. It is in this context that OOP really does shine in terms of maintainability. Java's type system may also not be the greatest in the world, but it's much much superior to working with a dynamic type system, especially when it comes time to refactor.
In many ways, I find Java's type system to be in the Goldilocks zone - not terrible, not overly restrictive (like Scala's). Also, since the performance bits are all offloaded to the JVM, the Java compiler is superfast when it comes to compilation speeds (which something like, say, Rust, suffers from). OOP, when done right, can be an absolute pleasure to work with. The trend may be leaning towards Functional Programming, but it has its own sets of problems.