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

1

u/Technical-Cat-2017 Mar 21 '25

In a world of microservices this is really mostly the teams fault though. There is very little stopping you from just increasing the version in your docker containers to the latest LTS release.

1

u/Necessary-Peanut2491 Mar 22 '25

In a world of microservices this is really mostly the teams fault though. There is very little stopping you from just increasing the version in your docker containers to the latest LTS release.

Sounds like you and I have radically different ideas of what a "large org" is. That would be absolutely impossible to do anywhere I've worked, and it's not a thing any dev team can do anything about.

Approved JVM versions are set by the company. If you want to deploy something, you need a container image. That container image needs to be in the company repo. So you develop against and deploy the version the company has locked you to. End of story, absolutely no wiggle room here.

1

u/Technical-Cat-2017 Mar 22 '25

Doesn't sound like a fun org to work for to be honest. Most of the large orgs I worked for aggressively scan for old images and/or vulnerabilities being used and incentivese teams to upgrade. There is no reason the latest LTS couldn't be an approved JVM image like 1-2 months after release, unless your tools/images or whatever team is very understaffed. It also really shouldn't be a lot of work to get a docker image approved. If this is really such a big deal in the organisation you worked for they probably have massive dev velocity issues in general.

1

u/Necessary-Peanut2491 Mar 23 '25 edited Mar 23 '25

Or maybe things work differently at that very large scale I'm talking about? I dunno, you seem very sure of things you have no experience with, and are saying some pretty weird stuff.

Why would you think things are pinned to a specific version because nobody has the time to bump the version? Things are pinned because bumping versions causes things to break at that scale. It requires coordination of the entire company to keep everything working during those migrations, which requires every team to build new binaries, a period to test things, a period to fix the stuff you found that broke...

The process for bumping the Java version at that scale typically requires a lot more thought than "I dunno, just have Karl bump the number up I guess, there's clearly no concerns about compatibility across our software stack, right?" At any rate, I'm not here for an argument. If you want to smugly tell me all about how Amazon doesn't know how to do software devleopment because they do things differently than small companies, you go right ahead. You'll look very foolish, but you are allowed to do it.

→ More replies (2)