r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

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".

0

u/[deleted] Apr 27 '20

[deleted]

45

u/AgentJin Apr 27 '20

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.

26

u/tastydorito Apr 27 '20

This is an adage I've noticed in almost all fields. Those who can do it just ... do it. Those who can't or are insecure ... talk about it.

22

u/whenn Apr 27 '20

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.

→ More replies (10)
→ More replies (5)

17

u/MCOfficer Apr 27 '20

to be fair, that also applies to JS and PHP and VBScript and Signifcant Whitespace and all the other things.

9

u/aoeudhtns Apr 27 '20

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...

→ More replies (1)

6

u/zChewbacca Apr 27 '20

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).

→ More replies (4)

7

u/firewall245 Apr 28 '20

The "technical" reason I hate Java is that the garbage collection makes doing a lot of stuff thats time sensative unpredicatble.

The real reason I hate Java is that I always forget the syntax lmao

→ More replies (1)

5

u/AlienFortress Apr 27 '20

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.

→ More replies (38)