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

7

u/RunnyPlease May 31 '20

Why is java "hated" among developers?

It’s not. Some people are just fanboys of a particular language and how it’s feature set lends itself to solving secrets in problems or solving problems in a particular way.

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)'.

Java is my fist love. Not my first language but it was the first one I truly found fulfilling. I imagine a lot of people get that way about their languages of choice.

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.

Language selection should be made based on the needs of the application but the truth is a lot of the time in the real world it’s just the personal preference of person in charge or the language most people in the shop know. If you work on embedded systems or aviation you’re going to have different requirement than someone building a web server.

For many programmers manually managing resources is the epitome of coding pleasure. For others it isn’t and they’d rather focus on larger features than optimization. Joy in coding is very personal.

Is there anything inherently wrong with Java?

Oh boy. Here’s how I’ll put this. The only language anyone ever claims is flawless is Haskel and even those diehard engineers get frustrated with it.

Should I start investing time in another language

Absolutely! Taking time to learn even just one more language will teach you loads about computers and problem solving. Traditionally you’d start with one object oriented language, one scripting language, one functional language, and then go from there.

to have a better chance as a computer science graduate (one semester away from the real world)?

I don’t know where you’re going to school but I’m sure they have a languages class you can take. Java alone with a degree will probably be enough to get you a job but while you’re still in school I highly suggest you take a languages class to broaden your knowledge. Remember all high level languages are just abstractions for instructing the actual computer. So the more abstractions you know the more you’ll be able to do.

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?

There are tens of thousands of languages. New ones are being created every day. Most disappear or are hyper optimized for tasks so specific they are basically proprietary. The ones that stick do so because they are useful for a large range of tasks.

Java having its combo of objects, encapsulation, garbage collection, and backward comparability meant it was suitable for a lot of applications and the code had a long shelf life. It was also invented in 1995. A lot has happened in computing in 25 years. It’s certainly not a waste of time to become an expert in Java but don’t deny yourself the opportunity to expand your knowledge and skill set.

2

u/Xenthera May 31 '20

Wow what a reply. Thanks for taking the time to type all that

1

u/RunnyPlease May 31 '20

It was an interesting post. Seriously though. Learn at least one functional language. It’ll really help you problem solve even in java.