by dragonwriter · 6y ago · 0 comments
I think the author doesn't know what VSCode can deliver.
> In the web space it is understandable to use an editor as web developers are typically working with dynamic languages
So? Most popular dynamic languages have optional static typecheckers, and the VSCode ecosystem has extensions that leverage these to provide many features common in IDEs for statically typed languages. Of course, the VSCode ecosystem also does this for already-statically typed languages.
> But in Java, especially professional Java, you really get a lot out of a good tool that has integration with the application server and you can really use the analysis and refactoring and everything.
“Analysis and refactoring and everything” isn't something VSCode overlooked developers interest in, and application server integrations are also part of the VSCode ecosystem.
Here's refactoring and code inspection in IDEA [1], [2]. VSCode is just that: a code editor with some features tacked on.
> “Analysis and refactoring and everything” isn't something VSCode overlooked developers interest in
This is somenthing most VSCode developers (and emacs and vi developers, too) aren't even aware exists.
[1] https://www.jetbrains.com/help/idea/refactoring-source-code....
[2] https://www.jetbrains.com/help/idea/list-of-java-inspections...
For projects built in a microservices architecture, these massive refactors are becoming less and less common from what I'm seeing. Usually if you want to change a method/class/library used by multiple different modules, it'll be a breaking change and most likely better handled by depending on a semver-versioned import anyway.
I have yet to see vscode perform one third of the refactoring options provided by e.g. qtcreator for c++
Although, I'd be probably be pretty harsh reviewing any PRs where because of the lousy tooling the code is full of unaddressed warnings, misorganized imports, or where the author can't be bothered to refactor because they lack the tools.
The reality is that on most projects you can use whatever you want as long as it does the job, properly. VS Code is mostly not very practical on such projects for Java projects because standards tend to be pretty high because of the tooling.
VS Code is still valid of course for those who only occasionally need to do any changes. I tend to use it for things like javascript/typescript and rust or other things I use less frequently. I switched to pycharm for python though because it seems marginally better at supporting that.
The Java experience in VSCode is quite acceptable, it is the Eclipse language server after all. The warnings and inspections are on par with intellij most of the time, but your devs should be using sonarlint/cube which provide far superior inspections on either platform.
As for organized imports in my experience Intellij just organizes them into one giant list alphabetically while the language server does the same except it's organized by JDK imports, javax.* imports, third party imports, and finally in project imports.
That's just a configuration, you can absolutely define import groups in IntelliJ
Can it Inline Variables yet?
And you'll find other refactoring options as well, e.g. rename, extract...