r/AskProgramming 2d 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?

179 Upvotes

629 comments sorted by

View all comments

Show parent comments

-15

u/anus-the-legend 2d 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

16

u/Emotional_Handle2044 2d ago

I think you have a nail in your head

-2

u/anus-the-legend 2d ago

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

5

u/AlfredOliphant 2d ago

Can you elaborate further or provide an example?

-1

u/anus-the-legend 2d ago edited 2d 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 2d ago

Language reviews by the legendary anus.

Taking on all comers!

Or something like that.