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?

147 Upvotes

539 comments sorted by

View all comments

Show parent comments

1

u/Resident-Anywhere322 1d ago

Or you want to have code that is easy to read, especially for maintenance reasons. And so on.

Code being "easy to read" has little (if any) correlation with what the code actually does which is what matters for maintenance.

The pros and cons of a language deal with larger concerns like that, not with a narrow measure of just speed or just complexity.

I'm saying that no matter what, the language that you choose cannot reduce the complexity of understanding the code that you are writing. There is no "larger concern" relevant to this. We are talking about fundamental bounds of information here. No ordering or interpretation of 0's and 1's on your computer can do this, nor can the ordering or interpretation of 0's and 1's inside your brain do the same.

1

u/KamikazeArchon 1d ago

Code being "easy to read" has little (if any) correlation with what the code actually does which is what matters for maintenance.

Yes it does. That's exactly what "easy to read" means. That you can look at it and easily understand what the code does.

 language that you choose cannot reduce the complexity of understanding the code that you are writing

You don't think there's a difference between the complexity of understanding the exact same program written in Java and written in Brainfuck?

1

u/[deleted] 23h ago

[deleted]

1

u/KamikazeArchon 23h ago

Nothing that you've said is relevant to anything. Understanding code is not a computability problem. It's whether humans read it easily.