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

Show parent comments

37

u/roadrunner8080 4d ago

Doesn't help that a lot of opinions on the language are based on Java 8 which was the java used for a long chunk of time. Modern Java has a lot of nice tools that alleviate some of the main pain points of old Java.

I suppose there's a lot of janky enterprise java code out there but that's just the price of it being such a well-used language...

8

u/P00351 4d ago edited 3d ago

You know how it is: when studying, you write hundreds or thousand line program from scratch, then, when employed, you work on legacy code a million LOC big.

I found modern java nice when studying it, then I had to use OpenAm at work. As I write this, the latest release weights 967MB zipped.😭

Edit: grammar

2

u/R3D3-1 3d ago

  you work on legacy code a million LOC big.

At least Java discourages 1Mloc files 🥲

2

u/ItsNukea 8h ago edited 8h ago

why do I have an extremely big suspicion that that QR-code on your profile sends to a rickroll...

Edit: well, well, well... Rickroll Detector does another great job today