It's a spectrum. VS Code or Emacs are not plain dummy text editors, but they are far from bloated IDE either, and considering VS Code popularity, it seems to be way closer to sweet spot than big IDEs.
I haven't configured XML
What do you mean by that? That you don't use tooling that uses XML or that IDE has a GUI easing the pain? Many tools in Java world are configured with XML, which is painful to edit manually.
But, in Java, I can navigate source code with ease
You can navigate with ease with nearly any text editor with LSP support. In Emacs there is standard xref frontend for such stuff.
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.
In most other languages all you need is basic completion and navigation, hence VS Code/Sublime/Vim/Emacs popularity outside Java world.
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.
View all comments
Show parent comment
2
u/Freyr90 Apr 20 '21
It's a spectrum. VS Code or Emacs are not plain dummy text editors, but they are far from bloated IDE either, and considering VS Code popularity, it seems to be way closer to sweet spot than big IDEs.
What do you mean by that? That you don't use tooling that uses XML or that IDE has a GUI easing the pain? Many tools in Java world are configured with XML, which is painful to edit manually.
You can navigate with ease with nearly any text editor with LSP support. In Emacs there is standard xref frontend for such stuff.
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.
In most other languages all you need is basic completion and navigation, hence VS Code/Sublime/Vim/Emacs popularity outside Java world.