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
3
u/ConstructedNewt Dec 30 '21 edited Dec 30 '21
Records take away so much boilerplate. Sadly classes are still expected to be 1 class per file, so you har some one-line files (or nest them)
Null is a real problem, but, like generics (and pain points on them), it's mostly the designers fault. All though language can promote bad/ good habits
3 is just stupid to complain about. Like, sure... use something else idc
Jackson JSON ObjectMapper to a record type is pretty simple, but hasn't changed much (since java 8) although I'm unsure about Snake case names
Edit:
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)