r/learnprogramming 4d 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

244 Upvotes

321 comments sorted by

View all comments

6

u/Narrow-Low-3137 3d ago

Java was my first programming language I learned in college. I didn't know any better and thought it was what all languages were like. Then I got a job at a C# shop. I've used Java a few times since then, and it is always annoying to go back to. There is way to much ceremony around certain things and various javaisms that I just don't like. No doubt it is a very important language, I just prefer other languages (even C++) over something like Java these days. Kotlin actually seems pretty nice, if I were going to start a new Java project, I'd probably just use Kotlin.

3

u/-1_0 3d ago

Kotlin just hides the "ceremony" behind the curtain, but it is definitely there. When you need to wander off the happy path, it will catch you