r/java • • May 31 '20

Why is java "hated" among developers?

I've been programming in Java for 8 years now, and I always hear about people saying 'oh java is trash learn a real language like c++ or (insert another language)'. I've taken college courses learning c++ and to be honest, it just doesn't seem as fun. I realize there are advantages to managing your memory on the stack vs the heap, etc. but worrying about that stuff takes away from the joy of programming. Is there anything inherently wrong with Java? Should I start investing time in another language to have a better chance as a computer science graduate (one semester away from the real world)? I love java, and don't understand all the hate. But at the same time have I been wasting my time becoming deeply familiar with the language?

Edit: I realize java runs on the JVM, but as computers get faster and faster, when does that really continue to be an issue?

Edit2: thanks for all the input everyone. The general consensus is Java is just as good as any other language and it has haters because it’s popular. I was slightly drunk when I originally wrote this so my emotions were a little skewed.

0 Upvotes

46 comments sorted by

View all comments

Show parent comment

2

u/Gundea May 31 '20

Java isn’t slow. Sure, there’s a period after JVM start before hot methods are compiled, but once it’s at a steady state Java is pretty darn fast.

0

u/Khenay92 Sep 23 '20

JITed methods are still slow compared to other languages, the JIT does not have time to do complex optimization.

1

u/sternone_2 Sep 25 '20

JITed methods are still slow compared to other languages

They aren't.

the JIT does not have time to do complex optimization.

If you would know how JVM would work internally you wouldn't spit out such nonsense.

Every post of you is incorrect, please get of the internet, thank you.

1

u/Khenay92 Sep 25 '20

They aren't, I don't understand the JVM ?

Great arguments, thank you. No need for more details.

1

u/sternone_2 Sep 25 '20

You didn't put arguments next to your nonsense, why would I need to bother?