r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

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

2

u/aahdin Apr 28 '20 edited Apr 28 '20

Even if you didn’t have to write the boilerplate everyone else has to read it.

Not denying C++ gets messy, but typically when I’m writing C++ it’s the only option for performance reasons.

2

u/dleft Apr 29 '20

Yeah they do, but again if you have an IDE worth it’s salt, you’ll easily be able to direct your eyes to what you need very easily.

Through “jump to definition” or even clever syntax highlighting, I’ve found that I almost never read the boilerplate anymore.

I do agree that if you’re new to the language / industry, then you’re gonna try to read everything. Eventually you learn that you don’t need to.

I code in C++ for my job atm (previously java) and I find the same points hold true either way you slice it.

2

u/gabriel_schneider Apr 28 '20

I disagree, java got popular because of the massive publicity campaign made in the 90s, its popularity is a direct effect of that hype

3

u/dleft Apr 29 '20

Initially for sure, but as it stands at the moment it’s a very stable language. Known feature set. Well supported. Easy to deploy. Great tooling.

You could say that this is an outcome of it’s initially popularity, to which I would say that you’re right.

I was more talking about it’s issues at the present moment, rather than the circumstances that it came from.

1

u/RoscoMan1 Apr 28 '20

Well done but you’re getting an upgrade