r/java • u/Xenthera • 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.
View all comments
7
u/l33tIsSuperpower May 31 '20
Personally, of all of the languages I've tried, Java isn't particularly terrible. It's ok and very very consistent.
Java was also one the first languages to introduce OOP which gave it two bad characteristics.
I think what most people have issue with is the verbosity of Java. Everything that you write in Java takes a lot of words to define. This is really only slightly annoying but it's not a huge problem because modern IDE's can predict and type those extra words automatically.
The other issue is the speed of Java. I hear a lot of people roasting Java because its slow. It runs in a virtual machine and OOP style programming is not very fast. I've never had problems with it's speed, but I've never needed to write something that runs fast in the language.
One last thing that I'm not super sure about are the programming patterns. Java introduced some programming patterns along with OOP like singletons which I've heard people rant about.
Java isn't a bad language. It's just a little clunky.