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

33

u/atpeters Dec 30 '21 edited Dec 30 '21

The four main complaints I've heard from some people are:

  1. Generics

  2. Null

  3. It's not functional

  4. Boilerplate

These are people that want to work with closure, erlang, Haskell, etc instead.

Personally I don't mind Java much except for working with JSON due to generics and cast checking. Admittedly I'm stuck in JDK 8 and I don't know if that has been improved upon.

0

u/[deleted] Dec 30 '21

[deleted]

-1

u/[deleted] Dec 30 '21

Kotlin adds so much boilerplate compared to java 😱

0

u/[deleted] Dec 30 '21

[deleted]

-2

u/[deleted] Dec 30 '21 edited Dec 30 '21

I've heard this so many times that I would get rich already if I got 1 dollar each time. Then when someone shows me "the proper way" they write the same stuff

The fact that you don't see it, means you've never used it in production beyond the basics and never had to override hashCode/toString, never had a problem with lateinit aka boilerplate for a problem java does not have, type+val/var and many more

→ More replies (10)