r/AskProgramming • • Mar 20 '25

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?

226 Upvotes

695 comments sorted by

View all comments

Show parent comments

-2

u/[deleted] Mar 20 '25

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

4

u/[deleted] Mar 20 '25

Can you elaborate further or provide an example?

-1

u/[deleted] Mar 21 '25 edited Mar 21 '25

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

7

u/[deleted] Mar 21 '25

Language reviews by the legendary anus.

Taking on all comers!

Or something like that.

2

u/Maximum_Overhype Mar 20 '25

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

0

u/[deleted] Mar 21 '25 edited Mar 21 '25

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/[deleted] Mar 21 '25

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

1

u/[deleted] Mar 21 '25

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 Mar 21 '25

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

1

u/AggressiveBench9977 Mar 21 '25

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

1

u/[deleted] Mar 21 '25

All of them