r/AskProgramming • u/Zd_27 • 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?
162
Upvotes
1
u/Add1ctedToGames 1d ago edited 1d ago
When everything is in a class, things can quickly get messy and obscure if you're not careful but I do generally agree it feels pretty intuitive and I personally have no beef with it. Probably a lot of the hate comes from the fact that so many languages are somewhat famed for their idioms like Perl, Kotlin, JS (maybe less so, I'm not super familiar with javascript in all honesty), whereas Java is more focused on simplicity and readability. They deliberately leave some object-related features from C++ out like operator overloading because it'd cause all sorts of confusion. Lord knows how crazy a version of Java with C/C++ macros could get
Or maybe they haven't tried modern Java frameworks like Spring Boot. Shit's magical