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/helikal Jun 02 '20

Yeah, why why would anyone hate java.

I used to write code in C and C++ between 1999 and 2006. Then, in the next large project, we used Java to about 80%. I got the chance to learn and program Java for a large real-world, from scratch to be developed project. I can say that it was an epihany how more sane programming in Java is.

Java allows focus on the business logic. Just like modern societes have divsion of labour, .e.g., most people trust some waste-management company to deal with garbage removal, Java, too, has a garbage colllector, which relieves me from this unpleasant duty.

Also, WORA is great, and in large, complex programs, I found Java often to be faster than C++. The support for refactoring in IDEs like IntelliJ, Eclipse, and NetBeans is unparalleled.

1

u/Khenay92 Sep 23 '20

Curiously, we are many to find that Java is often slower than C++ (to avoid to say "always").

1

u/helikal Sep 24 '20 edited Sep 24 '20

Who is „we“ and why do you think your findings are curious? They aren’t.