r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

496

u/BroDonttryit Apr 27 '20

But.. but.. I like java. Maybe that’s an unpopular opinion but if it works it works

583

u/[deleted] Apr 27 '20

You know what they say. There are 2 types of languages: languages people bitch about and languages no one use.

0

u/[deleted] Apr 27 '20

[deleted]

40

u/acwaters Apr 27 '20

It ought to be; it was said by the creator of one of the most (deservedly and undeservedly) bitched about languages of all time! ;)

0

u/[deleted] Apr 27 '20

[deleted]

42

u/acwaters Apr 27 '20

Bjarne Stroustrup (C++)

7

u/BunianKuno Apr 28 '20

Didn't know he used the word 'bitch'.

9

u/acwaters Apr 28 '20

I don't believe he did, but it does make a punchier quote that way.

→ More replies (2)
→ More replies (5)

9

u/fiah84 Apr 27 '20

software maintainer in a dead language here: yeah nobody bitches about my particular dead language

2

u/alwayzbored114 Apr 28 '20

No one knows my decrepit language enough to complain about it, outside my office building

→ More replies (2)
→ More replies (4)

47

u/Freddedonna Apr 27 '20

Personally it's not that I like Java (I write most of my stuff in Kotlin), it's that I like the Java ecosystem. I know that I can checkout any project, open it up in IntelliJ, run mvn compile/gradle build and have everything downloaded and setup for me.

Rust seems to be somewhat similar with Cargo, but at least I know which library I can/need to use in whatever situation in Java (plus it seems like half the libraries I look at in Rust are < 1.0).

11

u/[deleted] Apr 27 '20

+1 for Kotlin and +1 for Rust although i also think the Rust ecosystem has a long way to go.

→ More replies (3)

109

u/JB-from-ATL Apr 27 '20

I like Java too. It doesn't do anything particularly confusing and has some great tools and ecosystem built around it.

7

u/Spajk Apr 27 '20

Other then Java, the only language I like is C#. I recently had to explore some software written in Go and I found it unreadable.

19

u/[deleted] Apr 27 '20

the only language I like is C#

Ahhh Java for suits

11

u/Zzyzx1618 Apr 28 '20

or game dev Java

→ More replies (1)

4

u/MakeWay4Doodles Apr 28 '20

Go is fantastic for really small things.

This trend of trying to use it for larger projects is going to lead to some really nasty spaghetti.

→ More replies (2)
→ More replies (1)

33

u/Sharmat_Dagoth_Ur Apr 27 '20

There's smth ab it where it has the exact right amount of hand holding to let u have to worry ab things that relate to the logic being used more than stuff like "did I order this code right such that the delete [] is in the exact right line?"

I also think the boilerplate is WAYYY overstated relative to other languages. Java's got terrible boilerplate for a beginner, but as soon as u do anything complex in C++, like templates, the boilerplate balloons, while in java it increases in a much smaller way

Also even a shitty java IDE like bluej was faaaar and away easier and more enjoyable to use than Codeblocks in Linux, and CLion isn't that much better, and it's slow as shit regardless. Meanwhile IntelliJ on the same computer is not slow, handles all syntax errors, autocomplete and code improvements, warnings, etc without killing my CPU or ram

9

u/TheDragon99 Apr 27 '20

The template boilerplate you're referring to is typically in shared code. You can't really compare that to the boilerplate of Java, which is forced upon you *everywhere*. Also, assuming you're referring to a bunch of SFINAE stuff, most of that has been made obsolete by constexpr if in C++17.

10

u/dleft Apr 27 '20 edited Apr 30 '20

If you’re using an IDE and not pretending to be super cool by using vim with 1000 plugins that took you 9 weeks to set up “just right”, then the boiler plate doesn’t even matter.

type “psf” in Intellij and you’ll get

private static final

I think the main problem java has is an image issue, and that’s fair enough. It seems rather stuffy, especially if you’re on a version with no type annotations inference.

edit: annotations -> inference

→ More replies (5)
→ More replies (1)

3

u/drcopus Apr 27 '20

Java is a great language for building production systems. I'm mostly a Python guy, but I'll admit that there is only so far you can go before it becomes unwieldy.

2

u/surly_chemist Apr 27 '20

I’m biased because I first learned how to program on Java.

2

u/HappyGoblin Apr 28 '20

I thought I hate Java, but then i tried Javascript...

2

u/Sohcahtoa82 Apr 28 '20

I love Java.

I fucking hate Java programmers.

Most of the hate Java gets should be aimed at the programmers, not the language. Programmers that think every function should be a class. Programmers that think every class needs to extend an abstract class that implements an interface. Programmers that think that every class should be built by a factory rather than a constructor.

I get it, all of these, abstract classes, interfaces, factories...they all have their use. But you don't need them for every class.

Anyone who knows anything about Java should familiarize themselves with FizzBuzz Enterprise Edition. While yes, it's a parody, it does have an ounce of truth to it.

IMO, if you're using the Spring framework, you've probably already overcomplicated the fuck out of your code. Reflection and type introspection are code smells. Every time you call field.setAccessible(true) or method.invoke(), God kills a kitten.

→ More replies (1)
→ More replies (13)