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
2
u/awesomeusername2w Dec 30 '21
It would be possible but usually you don't implement any interfaces for the class you do serializers/deserializers. It would be a Jackson annotation or a custom serializer referencing target class. Plus, you clutter a class with all those implementations. Eq, Json,Serealizabke, Hashable etc. With traits it ends up being much more ergonomic and you don't have to make any changes to the target class.
Loom us around the corner for quite some time already, but I'm happy to use java 11, let alone 17. Not so easy to convince everybody that we should upgrade. On the other hand, perhaps loom would be that kind of a feature that others consider worth the upgrading. In my case records wasn't that kind of a feature.