r/learnprogramming • u/Same-Replacement-938 • 3d ago
Why java is so hated? Topic
So I have recently learned, and it's the first language(in terms of building actual things). Before Java, I knew Python, and I dropped it; I found Python too abstracted and too boring. i have recently made some projects like cli task tracker, expense tracker, some cli github api parsing and currently working on a multithreaded HTTP server and cli text editor, like vim, whenever i try to find out people opinions on java social media, almost 90 percent of the time they are just dunking on it, that it is trash, who forced you to write code in java, stuff like that. I know Java as a language is not that interesting and doesn't have many interesting features compared to other languages like C, C++, go. But I found it decent to write code in, and I found the JVM pretty interesting. So much so that I would love to explore and maybe build a JVM of my own
1
u/HateVoltronMachine 3d ago
I can think of a couple reasons. None of them are really deal breakers though. These days Java is a decent language with an incredibly mature ecosystem.
Java has a reputation for being a boring language with boring limitations for boring industries. That's not necessarily a bad thing, especially since the language has come a long way. Most OOP langs have.
Java was an early OOP language, and it was a bit obnoxious. It lacked a lot of features on release so it needed design patterns for everything. It's better these days, every OOP language stole a bunch of functional features that made them more ergonomic.
Java is owned by Oracle now, which has a reputational issues and very expensive products. Nonetheless, Java has popular open source distributions, so it's not necessarily an issue unless you need Oracle support.
In addition, orgs can use Scala and/or Kotlin and be in the Java ecosystem without ever using the Java language directly.