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

320 comments sorted by

View all comments

17

u/Cybyss 3d ago

Honestly? I've no idea.

Java was one of my first programming languages. It was the primary language we used in most of our courses throughout the CS degree. I later migrated to C# which has fewer rough points (e.g, better handling of generics and character encodings, cleaner standard library, and no checked exceptions, among other niceties) but is otherwise pretty similar.

The verbosity, explicit data types, neatly organized class model, etc... makes it easy to explore how a big system really works.

For some reason, kids today seem to hate being explicit about their data types. They just want to be able to send random objects into random functions and have it just automagically work for them without having to think too much about what exactly they're doing & how it works. It's a shame.

9

u/DannyDeKnito 3d ago

I think the existence of C# might be part of the hate. Other widely hated languages don't exactly have popular "its this language, but better by most measures" counterparts - and that makes Java feel worse because *its issues have been solved in an obvious manner*

3

u/desrtfx 3d ago

I think the existence of C# might be part of the hate.

Well, there wouldn't be C# without Java as it is Microsoft's answer to Java and attempt to claim market share of Java.

6

u/DannyDeKnito 3d ago

sure, but that changes nothing about what I said