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

2

u/quizteamaquilera Dec 30 '21

I love developing on the JVM, but I hate Java as a language. It has gotten better, but still have fundamentally problems, like it’s mutable-by-default collections library, and culture of annotation-based app development.

I just prefer functional programming, as I’m not smart enough to reason about all the magical wiring and mutable state found in a lot of the Java code bases I’ve seen.

For the curious, I’d really recommend “what’s functional programming all about”:

https://www.lihaoyi.com/post/WhatsFunctionalProgrammingAllAbout.html

1

u/wildjokers Dec 30 '21

like it’s mutable-by-default collections library,

I am unsure why collection mutability is always brought up. Why have a collection if you don't want to change its contents? Why should I have jump through hoops to add something to a collection?

I have had to fix many bugs caused by someone using the newer immutable collections and then someone else trying to add to it. It is annoying as shit. If I want a collection I want to be able to add and remove items by default. Please stop the immutable collection nonsense.

→ More replies (1)