News for hackers. Stuff that matters.
Re:The Oracle Java Platform Extension for Visual Studio Code by CraigJPerry on Wednesday October 18, 2023 @01:01PM (#37931502)
>> https://github.com/oracle/javavscode#supported-refactorings

It's not nothing, it's a solid step on from the Redhat Java LSP. Intellij's refactoring crown is not at risk here though.

Re:The Oracle Java Platform Extension for Visual Studio Code by arrowleaf on Wednesday October 18, 2023 @01:54PM (#37932247)
I love VS Code, but I will never be able to work with Java code outside of IntelliJ. Hopefully this extension is a bit more stable than the Red Hat one, whenever I've attempted to use VS Code for Java it's hit or miss whether plugins or the language server crash.
Re:The Oracle Java Platform Extension for Visual Studio Code by ashishb on Wednesday October 18, 2023 @05:20PM (#37934936)
I feel even Pycharm and Goland are superior to VS code.

The gap is closing but it's still noticable.

Re:The Oracle Java Platform Extension for Visual Studio Code by hugi on Wednesday October 18, 2023 @02:23PM (#37932615)
> Intellij's refactoring crown

Not sure IntelliJ has a crown here. I use Eclipse and it has some pretty amazing refactoring options. And I really prefer it to IntelliJ (for my use cases at least). Are there particular things IntelliJ can do that Eclipse can't?

Re:The Oracle Java Platform Extension for Visual Studio Code by wredue on Wednesday October 18, 2023 @03:32PM (#37933609)
I tried eclipse again last year and, while I cannot say it has bette for worse refactoring, I don’t understand how it could possibly be better given that its detection of available symbols seems to be little more than an RNG.
Re:The Oracle Java Platform Extension for Visual Studio Code by bitcharmer on Wednesday October 18, 2023 @03:42PM (#37933746)
Yeah. I've been doing software engineering (mostly Java) for 20 years now. Eclipse stooped being relevant among professionals around 2008.

You'll still find eclipse or NetBeans users though, just like you'll find people browsing the web with Lynx : - )

Re:The Oracle Java Platform Extension for Visual Studio Code by hugi on Wednesday October 18, 2023 @04:15PM (#37934180)
2008 was 15 years ago and many of the people I've spoken to formed their opinion of Eclipse (and IntelliJ) at that time. But what you saw back then and now isn't anywhere near being the same software.

Can you explain why Eclipse is worse than IntelliJ today?

Re:The Oracle Java Platform Extension for Visual Studio Code by Scarbutt on Wednesday October 18, 2023 @05:15PM (#37934879)
Intellij's vim plugin is good.
Re:The Oracle Java Platform Extension for Visual Studio Code by kedean on Wednesday October 18, 2023 @10:22PM (#37937515)
I think I last used eclipse about 5 years ago, when I switched to VSCode. At the time, eclipse still felt like 2008 software, extremely sluggish and clunky. In particular, it really suffered taking advantage of multiple monitors.

What's changed since then? Has it gone through some kind of massive redesign?

Re:The Oracle Java Platform Extension for Visual Studio Code by hugi on Wednesday October 18, 2023 @04:17PM (#37934209)
Could you please explain? You say you don't know if it's better or worse for refactoring and then you say it's detection of symbols is like a random number generator? How so?
Re:The Oracle Java Platform Extension for Visual Studio Code by wredue on Wednesday October 18, 2023 @04:57PM (#37934656)
When I used eclipse, it is suggesting symbols from locations that are not even contextually available. Given how much refactoring often relies on accurate contextual symbol detection, there’s about a 0% chance that it does better than IntelliJ.

I didn’t even get to trying eclipse features because everything else in it is so remarkably stupid, useless, and actively battling me compared to IntelliJ.

Re:The Oracle Java Platform Extension for Visual Studio Code by CrimsonChapulin on Thursday October 19, 2023 @01:43AM (#37938937)
I have been working on enterprise Java projects (basic consulting) which uses eclipse almost exclusively. We do not use Smurf naming convention (SmurfDto, SmurfDao, SmurfService, SmurfController) just for being able to find related classes. We do it because eclipse seems to randomly refactor classes based on non fully qualified names. No to naming something Constants as that will (randomly) refactor the codebase to break partially if you decide later to refactor something in that class.

I have tried everything from no vendor plugins for app servers to a vanilla eclipse and it still messes up.

I do like the product, but it can be very frustrating at times.

Re:The Oracle Java Platform Extension for Visual Studio Code by watwut on Wednesday October 18, 2023 @03:53PM (#37933904)
Kotlin. I switched to Intellij due to Kotlin, in is slow in Eclipse

But seriously, Eclipse was helping me more then Intellij does and has better defaults. It shows all errors and warnings at once etc. Even things Intellij actually has like call hierarchy tend to be sort of hidden by default.

Re:The Oracle Java Platform Extension for Visual Studio Code by pjmlp on Thursday October 19, 2023 @04:22AM (#37940030)
"The next thing is also fairly straightforward: we expect Kotlin to drive the sales of IntelliJ IDEA. We’re working on a new language, but we do not plan to replace the entire ecosystem of libraries that have been built for the JVM. So you’re likely to keep using Spring and Hibernate, or other similar frameworks, in your projects built with Kotlin. And while the development tools for Kotlin itself are going to be free and open-source, the support for the enterprise development frameworks and tools will remain part of IntelliJ IDEA Ultimate, the commercial version of the IDE. And of course the framework support will be fully integrated with Kotlin."

From https://blog.jetbrains.com/kotlin/2011/08/why-jetbrains-need...

Re:The Oracle Java Platform Extension for Visual Studio Code by ogennadi on Wednesday October 18, 2023 @11:13PM (#37937900)
IntelliJ can view bytecode even without the source code
Re:The Oracle Java Platform Extension for Visual Studio Code by pjmlp on Thursday October 19, 2023 @04:19AM (#37940009)
Any JDK can do it, just call javap.
Re:The Oracle Java Platform Extension for Visual Studio Code by blackoil on Thursday October 19, 2023 @08:42AM (#37942080)
Isn't that a simple decompiler? Those exist since forever. Should be available everywhere, maybe with a plugin.
Re:The Oracle Java Platform Extension for Visual Studio Code by belfthrow on Wednesday October 18, 2023 @06:55PM (#37935904)
I find all these posts slamming java and suggesting to use all the either much smaller jvm languages or something like python / go / rust utterly hilarious. If you want to get paid the big bucks in a high col city, you are a java or c++ dev, simple as. Sure work on your smaller languages, more pay for the rest of us!
Re:The Oracle Java Platform Extension for Visual Studio Code by turboponyy on Thursday October 19, 2023 @09:42AM (#37942783)
I don't get it - Is this an LSP, or specific to SCode? If it is an LSP, it would be nice if the project advertised this in the README.