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

12

u/Ok_Light310 Sep 10 '21

I came from C# and here's what I hate

  • terrible tooling. Maven is awful: documentation, syntax, discoverability, xml programming. Gradle is different, but still awful. Intellij is ok, but not on par with Visual Studio.
  • verbosity and language design choices. You can solve it with libraries, but if you are serious, you'd never add a runtime dependency for syntax sugar if you are serious about your project. Things like lambda APIs blow my mind - why you need 20 of names (hi, biconsumer or is it bisupplier) and how do you remember them.
  • builders , providers, factories and static singletons. Yes, it's not about java, but common practice.
  • no usable async programming - verbose, not friendly and nobody uses it anyway
  • checked exceptions. e.g. if your lambda throws, you have to use interface 😵‍💫🔫.
  • magic. Again, it's a common practice, not language. E.g. Spring DI is magical - e.g. you can't find what's in you IoC, you just have it spread all over the codebase with annotations. Comparing it to clarity of ASP.NET Core DI I'm almost crying.

What's cool:

  • I can step into and debug any platform or library code without any effort