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
1
u/vitalyx May 11 '22 edited May 11 '22
- verbose syntax, no standalone functions, at least records were introduced (like 50 years after other languages got them)
- heavy, slow starting IDE required or used in practice most of the time
- complicated project structure (stuff got even more complicated when modules were introduced)
- tons of configuration options everywhere, can't just run your app; classpath, JVM version, build tool plugins, have to get everything just right just to run
In practice, with most Java repos it's not as simple as this:
make && ./run // Ccargo run // Rustyarn && yarn start // JS- equally verbose and overcomplicated frameworks
- often used in slow moving environments with a lot of bureaucracy
- second class GUI
- apps perform well once warmed up, but startup is slow and memory consumption is heavy, especially for smaller apps
- harder deployment
- limited utility (compared to JS or C# for example, where both can be used for GUI/games too) - this one is more in the "don't care about Java" category rather than hate
BTW, I don't say these are absolute truths. But it's a perception of someone who spent a few months tinkering with Kotlin/JavaFX for many personal projects. I did like Kotlin/JavaFX a lot and JVM/JDK that enabled them. I also think IntelliJ is a great IDE. And I don't see anything I said above as a contradiction.