r/learnjava • • Nov 25 '20

why do people hate java so much?

why do people hate java? I personally really love java because of the OOP paradigm and it makes my codes cleaner. not to mention the portability. but i swear I see more than one tweet hating on java everyday, or saying java is dying. is java really dying?

I guess I have two questions; why do people hate on java and is there still a future for java?

120 Upvotes

88 comments sorted by

View all comments

8

u/onlyforjazzmemes Nov 25 '20 edited Nov 25 '20

I personally really love java because of the OOP paradigm and it makes my codes cleaner.

I'm a student who loves Java for the exact same reason. My first language was Python, because everyone says it's "easy to learn" and "a good first language." But OOP principles just didn't click until I learned Java.

2

u/aleesssa Nov 25 '20

exactly! I'm guessing it's because python isn't completely OOP and it kinda mixes a few paradigms together. learning Java coming from python was really confusing at first because I grasped the wrong concept of OOP lol.

1

u/nekokattt Nov 25 '20

Python is technically more OOP than Java, if you strip away stuff left out because it is a scripting language.

You have meta classes, which enable everything to be an object regardless of what it is. Classes are objects, functions are objects. That is closer to true OOP than Java allows, where you have primitive value types that cannot have vtables, and elements like classes and functions can only be implicitly converted to descriptors or functional interfaces to move them around.

The issue with Python is that it is really easy to make an entire project held together by hacks because of the flexibility and transparency of everything. More often than not, people will discard good OOP practises in Python if they are not as experienced because less of a constraint exists on you to do stuff properly :)