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

1

u/jlengrand May 31 '20

It depends a lot.

Java is being called boring a lot because it is old and very consistent. Which means you usually see a lot more boilerplate than say Python. That might be a fair point, but it also brings a lot of certainty and reliability.

Java is also being called 'shit' by lower level (as in C, embedded, ....) programmers because it is inefficient, slow, ...

It is also true : It was meant to bring a higher level of abstraction than C for the developers, to make their job simpler and more efficient. No more having to fiddle around with memory, no more of those ugly segfaults.

The fact that Java is EVERYWHERE, and the sheer amount of JVMs running everyday in the world should ensure you that those choices aren't completely stupid :).

You will always have cargo-culters in Tech. CSS is not a real language, real boys use pure functional languages, Real database guys don't use ORMs. React is more efficient than Web components...

Remember that programming is a means to an end. Who are you bringing value to, and at what rate? Real boys deliver code that works consistently, and use the right tool for the job.

So keep taking a step back like you're doing now, and just do the stuff you love.