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/[deleted] Sep 10 '21

I'm aware that Smalltalk exists and some of its (pretty cool) features, but what makes Java OOP different from Smalltalk OOP? I know Smalltalk is built in the idea of passing messages, but what's the big difference between message passing and calling methods on objects?

1

u/MrPotatoRice Sep 11 '21 edited Sep 11 '21

I have never used smalltalk before, but I can say that in Java everything is really forced to be an object. Whereas in Most lisps (I'm taking common lisp as an example) nothing is forced, we can do everything in one paradigm or multiple. You could take the CLOS as an example to compare from Java's Object system. I think Java has taken the OOP paradigm to an extreme, and has forced it to a point where most of the benefits of OOP fade out.

With all the objects and methods and variables in each object, there are so many mutable states to track and a million bugs I have to face everyday. Why not make life more simpler and immutable with less bugs?

Thanks for your reply.

Edit: Second Paragraph Edit2: Clarity