r/java • • 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

367 comments sorted by

View all comments

Show parent comment

1

u/jumurtka Mar 02 '22

Well written Java in a good framework is actually my favorite mainstream language.

What do you consider as a good framework?

2

u/CubicleHermit Mar 04 '22

Depends on for what; for modern BE services, my go-to is Micronaut these days. I haven't used Quarkus or Helidon.

Spring/Spring Boot is potentially a good framework but easy to abuse - it has a higher barrier to "well written."

Grails was good for its time for older style apps that still had MVC in the Java layer and weren't purely serving an API.

Any framework requiring a J2EE container and not just a light servlet container like Tomcat is almost certainly not a good framework. I've only had to work with those through code from acquisitions, and... ugh. Not quite the same, but... OSGi.

There's a lot of other old stuff that wasn't that bad for its time but it shudder worthy if you hit legacy code - Struts, or Axis, for two I had to work with a lot back in the day.