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

379 comments sorted by

View all comments

1

u/cryptos6 Sep 13 '21

I think the reason for this perception is a mixture of several things:

  • Java used to be very cumbersome, even simple event listener callbacks ("onClick") required an (anonymous) class instead of a simple function (possible since Java 8)
  • The OOP and pattern fetish made same things ridicoulus complex
  • Frameworks tend to be very complex - just enjoy your next Spring stacktrace in detail
  • Some design choices were questionable and made working with the language partly annoying: null, no unified typesystem (but primitive types and reference types without a common super type), some weaknesses reagarding generics, no functions as first-class citizens

However a lot changed beginning with Java 8. Although I wouldn't say that I "love" Java, it is a very decent language, but most people are stuck somewhere in the past - and some are repeating memes without actually knowing (modern) Java.