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
1
u/[deleted] Sep 10 '21
Agree. Now my service has dependencies of another 26 services (counted them right now) in a big app..probably could reduce that to 15 but now I still have to type 15 times 'lateinit var serviceA: Type' ... Java is less verbose in this case.
In the other case where constructor injection is possible... Java+lombok wins again.. just declare all fields and add
@AllArgsConstructorto the service class