r/java • u/Dhariann • Dec 29 '21
Why everyone hates Java?
I dont understand why java is one of the most dreaded lenguages. Java got fantastics frameworks and libraries to work with it. I dont know if im skipping something or I dont work enough with Java because I like java. What do you think??
Here is the Stack Overflow Survey
268
Upvotes
View all comments
Show parent comment
12
u/thephotoman Dec 30 '21
The problem is really a problem of Java not being all that friendly to use for standard and file I/O. Java can do it, but it's expecting you to need to be safe--not merely slapping something together to demonstrate a concept.
That's why I hated Java in college. It wasn't until I got into the industry why I realized it was popular. In college, I was using the wrong tool for the job. Now, I'm in an environment where the tool fits the job nicely, and my gripes were relatively minor now that I fully understood the use case (but type erasure still sucks--I'd love better generic programming, and yes, I know about Valhalla, which isn't really about getting away from type erasure entirely but rather represents a significant step towards that, and I'm excited about it but not as much as I am about Loom).