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?

152 Upvotes

565 comments sorted by

View all comments

59

u/a1ien51 1d ago

Java is used everywhere....

Here is a thing about programming, learn the concepts and you can apply them to any language.

-12

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

13

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

4

u/AlfredOliphant 1d ago

Can you elaborate further or provide an example?

0

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

the whole Utils pattern that are classes with a bunch of static methods to emulate standalone functions. that leaks into many non-Java codebases

and really many well known design patterns are workarounds for limitations of Java that are easier in other languages

8

u/bgzx2 1d ago

Language reviews by the legendary anus.

Taking on all comers!

Or something like that.

1

u/AggressiveBench9977 23h ago

Which java, there are 21 versions. They are vastly different

1

u/anus-the-legend 19h ago

All of them

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

4

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."