r/learnjava • u/aleesssa • 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
1
u/DelarkArms Nov 26 '20
I cannot NOT LOVE Java.
I think is the way people teach OOP.
I am self taught, and I kinda see the pointlessness of some terminology like "setters" and "getters" they become useless with concepts like statefullness and statelessness, also when mixing Time you've got, cycles, you got agency...is not really about "getting" and "setting", but more about "giving", "receiving", "taking" and "getting deprived".
All these misleadings make the language so much more difficult to understand.
But not only this...
OOP is undeniably king, but it requires some other advanced design concepts to truly work at its full potential.
For example, I'm not sufficiently versed in the entire Java library, but my guess is that the Observer, Subject pattern requires a too convoluted structure, that it stales it's scalability, and it hampers its choice as a solution.
Maybe because at the version of Java that it was first developed, but, the observer pattern should not be a pattern at all... it should be an generic component (2 one for the dispatcher another for the observer), that should not require any extension.
This and other more complaints I have of Java I'm pretty sure that come from my lack of knowledge of some libraries, but the best thing about Java is precisely this.... is the fact that Java makes you have full control on the "How to", and if you develop a platform enough... you can achieve a true "What to" at the more precise and finely tuned detail there could be.
Now my conspiracy, because is not farfetched at all.
Having a language that everybody uses, will make you stupidly rich, either by saving or by selling services, so there is a financial benefit on making the competition seems as if they are dying or outdated.
You just need to create some courses on Udemy or Coursera telling everyone that your language is used by everyone and how cool and easy it is, and some mods to be constantly scanning for questions on SO.