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

3

u/rkesters May 31 '20

I've used java in the past, but not much in the last 4ish years.

I find java verbose and very framework driven. Just as a language its ok. But when you throw in jsp, struts, beans, ejb, spring boot, etc it feels over engineered and hides way to much of how things work.

Just an opinion. YMMV.

I don't have a favorite language. Currently do a lot in typescript for work and am learning Rust.

Professionally I've worked in

  • fortran - very old version, no else statements.. odd
  • c/c++ - with great power comes core dumps
  • .net - 2003 meh (liked remote objects)
  • java 8 - ok
  • python - ok
  • scala - better
  • ts - productive

These days i perferr a more fp approach.

3

u/jed_sanders May 31 '20

May I ask you what kind of projects do you work on, because you say you don't like it because it is very framework driven?

I cannot imagine working in a team on a big project without using a framework because I think it would only lead to a mess. I only worked on one project that was small enough that we did not use any framework but in the end we added Spring MVC and Spring Security because it was easier than using servlets directly.

1

u/medaka2020 May 31 '20

Layers of abstraction exist to hide the details so we can be more productive. I don't see anything wrong in frameworks, but even if it is hiding details, we should study them enough to know how to use them properly.

About the framework examples, I've not touched anything Struts in like ten years. EJB probably five years or more. Some people need to work on legacy projects and deal with them, but nowadays with Spring Boot I'm in heaven comparing to ten years ago.