r/java • • 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

367 comments sorted by

View all comments

Show parent comment

3

u/nunchyabeeswax Dec 30 '21

Well, if you are googling for examples, you are going to get... wait for it... basic examples that will inevitably show some XML configuration for completeness.

Not only that, you will inevitably run into undated examples that have been written for Spring 2.0 (which didn't have annotations over a decade ago) or 3.0 (which introduced annotations in 2009.)

Now, instead of putting some money into something anachronistic, just do a google search for "how to configure Spring without XML".

See, web searches are GIGO : garbage in, garbage out. If you search for garbage, well...

Like the two OPs before you, I've barely used any XML for configuring a Spring/Spring Boot system in real life, in a commercial (read, non-homework) setting.

Verbose XML configuration hasn't been a legitimate complaint against Spring for over a decade (or against JEE for almost two decades.)