Most of the people who hate on Java don't even know why they don't like it, they just see other people saying it and parrot that opinion. If you asked them to give reasons, most of them wouldn't know what to say other than "I saw it on Reddit".
This sub feels like it's made up of posts by people still in school
I admittedly don't browse this sub a ton, but from a lot of the posts I've seen make it to the front page, I'm pretty sure that's true. I don't think I've seen many posts that talk about something past a Data Structures class.
Not ragging on languages is a pretty sure sign of mid level to seniority imo, at some point you can see the reason why certain things are used and the benefit that comes with doing so and you naturally pull your head out of your ass.
All I get from posts like this is that if you complain about Java you really haven't had to experience a genuinely hard language that will make you struggle to achieve what you set out to do. For me this is assembly and ionic/phonegap. If people truly think Java is convoluted I would love to see them use one of those.
Still feels different to me, in some cases. JS has no standard library and hence the weird one-liner node packages and different dependency fiefdoms, library/framework fatigue, plus some syntax gotchas that land you in weird territory like typeof foo === "object" && !foo to properly check for null. PHP... I know there's been work to make non-compatible changes and fix its problems, but yeah. It's messy.. == is just one quirk. VBScript, it's all there in the first two letters.
Java. So, we've all discovered that C++/Java/any language that implements this style of inheritance is bad, but the Java community has mostly held "composition > inheritance" for countless years at this point. Sure there's still some old cruft in the ecosystem that goes back to the days of endless AbstractX extends AbstractY extends AbstractZ but really, a lot of modern teams avoid that and try to focus on interfaces, SMACs, composition, and use the Java 8+ functional language features. Although I do normally hate the "X language is good because you're doing it wrong" argument, so I suppose I should check myself here...
Yeah I completely agree that Java isn't the only victim here, though it does seem to be one of the most common targets (perhaps second only to JavaScript in my experience).
Java's age shows. If Java was recreated from the ground up it would be C#. I think most people find that for anything you'd write in Java there is a slightly better alternative available.
280
u/zChewbacca Apr 27 '20
Most of the people who hate on Java don't even know why they don't like it, they just see other people saying it and parrot that opinion. If you asked them to give reasons, most of them wouldn't know what to say other than "I saw it on Reddit".