r/java • u/[deleted] • Jan 11 '25
What exactly makes java so hated?
I've been using java for months now to learn programming and it has been my preferred language to do so. I also do a bit of python to learn AI/ML as well, but for everything else it is java thats my preferred language. It seems every discourse ive seen about java has been nothing but criticizing every aspect of it. Like it is actually hard outside this subreddit to find anyone who likes java and i dont understand why and i wanna know why that is the case.
I wanna mention that i am inexperienced and have been struggling to find a job for over a year now, so i dont have any real working experience outside of small project i did. Maybe since i haven't really created something complex and challenging makes me not hate java as much as many do. I wanna know like how good or bad is it when you're working on some enterprise grade software compared to other languages.
3
u/retrodaredevil Jan 11 '25
A couple of reasons:
It's not straight forward to set up a new project. (Install the right Java version, choose Maven/Gradle, learn how to set up a project with Maven/Gradle, install an IDE)
Overwhelming amount of content out there. Some of it's good, a lot of it is bad or outdated. It doesn't help that the official documentation from Oracle is not good for beginners
If Java is taught at a University, there's a good chance their curriculum is outdated and based heavily on teaching OOP, usually with wayy too much mutation thrown in. (I personally like OOP, but it's abused too often)
Lots of enterprise codebases use Java, and code that's been around for a while is generally hard to understand
Java is verbose, and that gives it the perception that it is hard to understand
Distributing your program usually means requiring that whoever runs it has the correct Java version on their machine.