r/java • • Dec 29 '21

Why everyone hates Java?

I dont understand why java is one of the most dreaded lenguages. Java got fantastics frameworks and libraries to work with it. I dont know if im skipping something or I dont work enough with Java because I like java. What do you think??

Here is the Stack Overflow Survey

268 Upvotes

367 comments sorted by

View all comments

115

u/chrisgseaton Dec 29 '21

Anyone who tells you they have a hatred for a programming language isn't worth listening to.

0

u/[deleted] Dec 30 '21

[deleted]

5

u/[deleted] Dec 30 '21

James Gosling hated C++ so much that he made Java.

But why did he keep null?

→ More replies (6)
→ More replies (2)

25

u/[deleted] Dec 30 '21

[removed] — view removed comment

5

u/chrisgseaton Dec 30 '21

It's that hatred is a ridiculous overly-emotional reaction to a tool that may or may not be right for the job at hand, with strengths and weaknesses like any other tool.

12

u/cogman10 Dec 30 '21

Hate is a strong word, but some languages deserve to be moved to the dustbin of history. COBOL, for example, only lives on because replacing it is very costly.

2

u/chrisgseaton Dec 30 '21

When power saws were invented nobody made started 'hating' hand saws. Our professional is completely unhinged on their opinions on tools.

→ More replies (1)

15

u/CubicleHermit Dec 29 '21

Anyone who tells you they have a hatred for a programming language isn't worth listening to.

Hating the language vs. hating to have to work with it are two different things, but for a relatively mainstream language, either one is probably overstating it.

OTOH, I work with someone who used to work with M (aka MUMPS) and I fully believe them that it was awful.

There are bad codebases in every language. I've really enjoyed both C# and much longer ago, VB6, both for personal projects. The experiences working with each for "real work" was horrible, but that was pretty much all a matter of the codebase and the tooling around it NOT the language itself.

56

u/Fair_Sir_7126 Dec 29 '21

I upvoted, but please put JavaScript on the exception list

16

u/Daniel_Kummel Dec 30 '21

Thats why you typescript

4

u/dpash Dec 30 '21

It doesn't polish the turd, but it at least makes it a little smoother.

31

u/Neuromante Dec 30 '21

We can just say Javascript is not a programming language but a hellish dialect escaped from the depths of hell as part of a punishment to humanity, if you like.

14

u/manzanita2 Dec 30 '21

The original javascript was created in 10 days. Given that it turned out pretty ok. But yes, there are a ton of crappy things that one would have fixed after some road time. But backwards compatible is king.

5

u/Ilookouttrainwindow Dec 30 '21

There are things in js that are really neat. But to me it suffers from that "just a script" feel. Typescript helps, but still has same feel to it. I've been working on java since 1.2; got a good feel for it. Language is evolving, approaches are changing. Some things I like some things I hate. Been working with js just as long, although always in the browser. Latest trend with js is syntax simplification to the max. The language is honestly becoming hard to read. With Java, if you have basic idea (even of another language) you can read the code and probably even make sensible changes. With js, I begin to need to look up the syntax to understand what is written (same in c#). Last time I had to do that was with perl. Personally

9

u/wsppan Dec 30 '21

It was a throw away language that was never thrown away.

3

u/Fair_Sir_7126 Dec 30 '21

Lol exactly

3

u/roberp81 Dec 30 '21

i was thinking the same

→ More replies (4)

5

u/buzzsawddog Dec 30 '21

I hate JavaScript, ruby, Perl, pascal :). Languages I deal with on a regular basis :). But mostly I guess I hate maintaining the code people left with me with to maintain…

0

u/[deleted] Dec 30 '21

[deleted]

2

u/spectrumero Dec 30 '21

It was widely used professionally in the 80s and 90s. Delphi still exists, I think. Windows 3.x used the Pascal calling convention (so any C program you saw for Windows 3.x was littered with FAR PASCAL macros).

2

u/buzzsawddog Dec 30 '21

Yep... That's what I said...

→ More replies (2)

-5

u/roboduck Dec 30 '21

Anyone who tells you that someone isn't worth listening to isn't worth listening to.

→ More replies (3)