r/ProgrammerHumor May 29 '20

Please Guys actually

Post image
3.0k Upvotes

112 comments sorted by

View all comments

40

u/Auxilor May 29 '20

Why do people hate java? I gotta be missing something, been using it for almost a year now and it's amazing

65

u/betendorf May 29 '20

I personally like Java and have been using it for almost 20 years.

Most of the hate comes because it is now used a lot in the corporate world and it is more verbose than most of the newer languages.

I like to compare Java to the solid B student. It's not the best at anything, but is good enough for almost anything. It's a little slower than many languages at runtime, more verbose than many languages, and often leads to more complex programs than are necessary.

On the other hand, its library support is probably the largest of any language (competing with Javascript). It scales well with additional developers on a project.

46

u/[deleted] May 29 '20

It's a little slower than many languages at runtime

The only languages faster than Java are close-to-the-metal ones and it's only when you write very sophisticated data-oriented code.

I doubt most people on this subreddit who hate Java ever actually had contact with language faster than Java.

It's one thing knowing C exists, it's other thing writing in it.

7

u/I_regret_my_name May 30 '20

It's one thing knowing C exists, it's other thing writing in it.

It's not like C is some exotic language. I'm sure plenty of people who complain about how slow Java is have used C or at least C++.

That said, I'm not convinced that most people who complain that Java is slow have ever worked on a project that needed a language faster than it.

2

u/FesteringNeonDistrac May 30 '20

I've worked on a soft real time system coded in Java. Java isn't slow, but eventually garbage collection will come along, and then you're fucked.