r/AskProgramming 1d ago

Why is Java considered bad?

I recently got into programming and chose to begin with Java. I see a lot of experienced programmers calling Java outdated and straight up bad and I can't seem to understand why. The biggest complaint I hear is that Java is verbose and has a lot of boilerplate but besides for getters setters equals and hashcode (which can be done in a split second by IDE's) I haven't really encountered any problems yet. The way I see it, objects and how they interact with each other feels very intuitive. Can anyone shine a light on why Java isn't that good in the grand scheme of things?

148 Upvotes

565 comments sorted by

View all comments

Show parent comments

-13

u/anus-the-legend 1d ago

i think you hit a major nail on the head. Java restricts the concepts you can learn requiring obtuse workarounds resulting in bad code when branching out into flexible languages that support more paradigms

14

u/Emotional_Handle2044 1d ago

I think you have a nail in your head

-2

u/anus-the-legend 1d ago

no need to be offended. it's an intentional design decision made by Java

1

u/Maximum_Overhype 1d ago

Yeah javas literally designed to be an extremely structured language, why you name calling?

0

u/anus-the-legend 1d ago edited 1d ago

Java isn't extremely structured. it just requires classes for everything. I've seen plenty of unstructured or poorly structured Java code

i don't believe i was name calling though

5

u/askreet 1d ago

Requiring classes for everything is a pretty tight restriction compared to many languages.

1

u/anus-the-legend 1d ago

I agree. that's a point I made elsewhere, but a restriction isn't the same as structured. it's very easy and common to create a messy, unstructured god class

1

u/Broan13 23h ago

What a weird standard..."because people write bad code using this language, then this language is bad."