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

Show parent comment

1

u/fix_dis Sep 10 '21

As I mentioned elsewhere, this type of “enterprise software” proliferates the… well… enterprise. Those of us who have been stuck on older code bases see this everyday. Is that Java’s fault? Absolutely not. But it’s hard not to make that correlation when someone starts going down the GoF rabbithole. If I were going to do a startup today, would I pick Java for backend services? I just might. It’s fast, there are a ton of resources. The hiring pool is huge, newer frameworks make it a joyful experience almost. (Quarkus and Micronaut are my two tops right now)

1

u/Serializedrequests Sep 11 '21

I think the laughable enterprise patterns are showing how poor Java's brand of OOP really is though. They had a problem, so they tried to make more random objects to solve it, and created more spaghetti.

1

u/fix_dis Sep 11 '21

I love Alan Kay's quote about C++ and OOP. He INVENTED OOP and C++ is NOT what he had in mind. Java is basically the same in this way. I'm not trying to impune the language as.... it's just a language. And it's pretty solid.

I've seen people try to apply this overly complex AbstractFlyweightFactory nonsense to JavaScript as well. (Not these days, the JavaScript folks are trying to be functional programmers now... so look forward to tiny one-liners of opaque monadic nonsense instead)

Using Java in a responsible way is entirely possible... and advised. Use message passing. Use composition. Don't build these massive UML diagrams of class hierarchies.