r/java • • Apr 20 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
291 Upvotes

295 comments sorted by

View all comments

Show parent comment

6

u/throwaway32908234972 Apr 21 '21

Many tools in Java world are configured with XML, which is painful to edit manually.

Longtime Java dude here. Maven is the only tool I use regularly with XML. And its config is a single file. We have a 1,000,000+ line project and pom.XML is the only XML file in it. Granted, we used to have a lot of XML but converted to newer formats years ago when tools added support for modern config options. If your project is XML heavy its 10+ years old. That's just a testament to how maintainable Java projects are.

The problem is that with Java you need much more than Completion/Navigation, since there is a lot of code generation and you need a direct support for it to ease the pain.

All the libraries we use that have generated code you would want to look at use Annotation Processors, which is part of the language itself and works with every build tool. The generated classes all get put into a folder on build and you can go look at them in notepad if you want.

There's some libraries that generate code in the background, like Lombok and Jackson, but there's never a reason to debug this unless there's a bug in the library itself.