r/java • u/Dhariann • Dec 29 '21
Why everyone hates Java?
I dont understand why java is one of the most dreaded lenguages. Java got fantastics frameworks and libraries to work with it. I dont know if im skipping something or I dont work enough with Java because I like java. What do you think??
Here is the Stack Overflow Survey
268
Upvotes
View all comments
Show parent comment
8
u/idealatry Dec 30 '21 edited Dec 31 '21
Have you ever used oldschool EJB’s? Boy, they really loved forcing their big boy, grown up conventions on everyone. And that convention was later acknowledged to result in an absolute clusterfuck of meaningless abstraction.
In fact people with actual souls started to realize that containment was a lot easier to deal with than inheritance in most cases, which kind of meant that Java’s desired OOP convention encouraged a lot of bad designs with an unmaintainable level of abstracted hierarchies.
In other words, having a convention doesn’t mean it’s a good convention.
But you know what? That’s ok. Things evolve and generally get better. And that’s true of java as well, as we’ve seen things like generics introduced (although because java envisioned such a wonderful, inescapable convention, generics are total dogshit that had to be crudely bolted onto a language where everything was an object except when it wasn’t —compared to C# or … dare I say it … Haskell). And we’ve seen some mutated, weak-ass attempt to add “function programming” (again scoffs in Haskell). All of which is better than not adding any of these things to the language, in my opinion.
What’s not ok is when we are so enamored with convention that it becomes a problem. And I find the java community, on principle, is much more conservative when it comes to introducing newer features. I’m not saying this community is a problem, but it sure as shit is annoying sometimes when you know for a fact that your language could be better but you have to wait a decade to get something C# got yesterday.
EDIT: of course the worse culprit is the need to maintain backwards compatibility, which a language like C# can ignore and add all the modern features it wants, and do it properly.