The Oracle Java Platform Extension for Visual Studio Code
inside.java
inside.java
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.
The gap is closing but it's still noticable.
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?
You'll still find eclipse or NetBeans users though, just like you'll find people browsing the web with Lynx : - )
Can you explain why Eclipse is worse than IntelliJ today?
What's changed since then? Has it gone through some kind of massive redesign?
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.
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.
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.
From https://blog.jetbrains.com/kotlin/2011/08/why-jetbrains-need...
Hands down Java tooling, and especially the JVM debugger, is the absolute best across all languages available today. Truly is an incredible platform
I think 5 years ago I would've preferred IntellJ, but VS Code has made a monstrous amount of progress since then and it's only accelerating.
I guess VSCode seems to march to its own drum and some of how it integrates things is really clunky still. I spent a long time ignoring JetBrains, but once I started to use Rider (and Android Studio) I realised how much better they were in general.
With Android development (which to be fair I mainly do on the side), I remember Eclipse being reasonably hard to get set up. That might have just been with how immature the Android tooling was back then. But from the very first version of Android Studio, it all seemed coherent. And with all the built in refactoring and tooling there is now, it is really a full circle and you don't exactly need anything else.
Edit: it is also worth pointing out that adding Resharper to VS2022 makes it a lot nicer, but in my book that is basically the same as using Rider because then most of the refactoring is taken away from the Microsoft IDE's engine and goes though the same/similar path as it does in Rider (as Rider uses the Resharper Engine too.)
IntelliJ has just a billion little streamlined features that make the entire experience just smooth. Eclipse is in second place here, but VsCode with Java is a very distant third.
IntelliJ is functions without a lot of annoying bugs; everything is well tested and just works. Eclipse is buggier, and usually lags behind on supporting the latest JVM/Java/Framework features without bugs, but Eclipse has nothing compared to VsCode. VsCode just is just full of half completed features that work in very narrow circumstances. I don't know what to say; it's just not very well integrated, lacks a singular vision, and things generally are just broken.
It isn't 100% there, but close enough.
Hence why I have been an happy camper on both of them since they exist.
https://blog.jetbrains.com/platform/2023/07/lsp-for-plugin-d...
https://microsoft.github.io/language-server-protocol/impleme...
> The Language Server protocol is used between a tool (the client) and a language smartness provider (the server) to integrate features like auto complete, go to definition, find all references and alike into the tool
In LSP terms, these are called "capabilities". The relevant section in the LSP spec is here [1].
There's some variation across editors in exactly how the config works - or, at least, part of it. Some config is done in native files that form part of the plugin. Those are largely editor-specific. The protocol itself defines messages for the server to indicate which facilities it supports. Those are (mostly) editor neutral from my experience thus far (mostly VSCode, a little Emacs).
--
EDIT: added link to capabilities section in the LSP spec.
[1]: https://microsoft.github.io/language-server-protocol/specifi...
The key insight with LSP is that languages are _way_ too different to have that notion of language capabilities. Instead, the LSP defines functionality that the editor wants to use (syntax highlighting, refactoring, autocomplete, etc) and the language server tells the editor what to display.
When you trigger autocomplete in VSCode, the editor has no clue whether it’s autocompleting a method, a class name, or a variable. It’s just telling the language server “hey the user asked for autocomplete in file X, offset Y” and the language server tells the editor what completion options to offer.
And yet the very opposite of this is the source of JetBrains success.
All the relevant parts of IntelliJ that could be turned into Java language server are already open source so monetization would be tricky.
- https://www.eweek.com/development/eclipse-behind-the-name/
https://blog.jetbrains.com/platform/2023/07/lsp-for-plugin-d...
Now, Quarkus _finally_ got pulled into JakartaEE certification kicking and screaming, however, it has a million out-of-spec features that I see as risky and likely to break in the future... Spring Framework is now big fat and ugly for this reason!
Quarkus's initial philosophy of "Kubernetes first" really isn't such a good rally cry anymore. They've toned down on that, but it does influence the framework to this day.
I think if you program and stick to "just the" Jakarta Spec you are in good hands (which Quarkus now implements, along with other APIs). CDI absolutely rocks and is probably the easiest to write fast code for, but also make it composable so it's very testable.
I'm hoping someday the Apache Foundation (maybe the TomEE crew?) comes out with a leaner competitor to Quarkus, basically something thats "just the cdi container" and you can pull in stuff as needed.
Eclipse has always been mostly about Red-Hat and IBM, which is what Red-Hat alongside Microsoft use for their VS Code extension.
Except that the vast majority of new and even old developers moving to VSCode prefer it over janky 20+ year old IDEs.
I like working on multiple ecosystems and not having to re-learn the wheel for each.
Care to explain ?
The stable and mature ecosystem and fantastic tooling along with very low amount of library churn makes it one of the better options for anything server-side.
[1]: https://survey.stackoverflow.co/2023/#section-most-popular-t...
Also there’s no such thing as “an HTML project” or “a SQL project.” So I don’t think your survey link is telling you what you seem to think it’s telling you.
While this is a major advantage, Java has also its fair amount of problems, some of them unfixable (or rather, the Java team is unwilling to fix them). It looks like Java will never get a proper fix for the whole in the type system named null, while there are some great languages running on JVM solving that.
Totally disagree. I think it was at its trough of popularity in the Java 8 initial release timeframe around 10 years ago, when many companies were still stuck on Java 6 and other languages had moved way ahead. In the last few years, since around Java 17, there has been a ton of enthusiasm and I think it would be the best choice for a huge number of use cases.
[Citation needed]
I use the termal and I make binaries for my use. I'm not going to try to pipe input through several stages of "java -jar myUtil.jar", even if I bother to clear the hurdles of trying to find and configure the right maven plugin to build a "fat" jar.
Null drives a big hole through whatever you try to achieve with the type system. Need a Key for this Lock? Open the Lock anyway, just find out at runtime that the Key was null, rather than at compile time.
Bizarre omissions from the standard library. What do you do with Sets: Union? Intersect? Nope, write them yourself. Wait for a multiple futures? Write a for-loop. Cancel a future? Forget about it. Wait - better than forgetting about it: include cancel() on the class but make it a no-op.
Non-extensible. Let's say the language designers for some reason didn't put takeWhile into Stream. Can you add it?
No way to avoid mutation in order to avoid non-local reasoning about state. If I submit a list as a parameter or accept a list as a parameter, who else has mutated or will mutate that list.
No transactions. Synchronised blocks don't compose: synchronised get() and synchronised set() do not become synchronised getThenSet();
I'm sick of the 'backward compatibility' at all costs. The 'legacy code' that you're thinking of that you don't want to break was written after any of these problems could have been fixed.
https://docs.gradle.org/current/userguide/distribution_plugi...
> Null drives a big hole through whatever you try to achieve with the type system. Need a Key for this Lock? Open the Lock anyway, just find out at runtime that the Key was null, rather than at compile time.
https://github.com/uber/NullAway and bunch of rest.
Java has some plusses and minuses like any language.
Java has:
* Fantastic concurrency support (Better than Javascript, Python, or C)
* One of the largest most mature library systems in existence, with far fewer amateurish "left pad" type libraries like Javascript or Python
* Supported basically everywhere by any vendor you can imagine
* Pretty good strong type system to reduce bugs, and making refactoring very easy
* plethora of frameworks for your use case, whether its server side rendering, monolithic apps, Raw SQL or ORM, microservices, reactive.
* Probably the best tooling and ides in software development.
* getting lots of new features to alleviate pain points with the newer rapid development
Negatives for Java:
* C# has linq
* Type system isn't as advanced as OCaml
* Generics have type erasure due to backwards compatibility
* verbose and lots of boiler plate
Agreed on the IDEs, nothing can beat IntelliJ... but general tooling? Definitely not. Maven is a hot mess of XML where people tend to do horrible horrible hacks just to survive, and Gradle projects tend to be even messier because of Groovy's syntax allowing about five different ways of doing the same thing.
Spoken like a true "I've never seen Gradle beyond copy pastes from Stackoverflow". Modern Gradle is all about plugins written in Kotlin. Your buildscripts shouldn't have anything beyond `implementation` block.
Which is what the majority of legacy, grown Gradle scripts are in my experience among multiple government and private companies' projects. The older the project, the worse state the build scripts tend to be. The worst I ever encountered was a project that was mainly done with Maven, but that called out to Gradle and Ant for weird manipulations to get the build artifact to the formats required... gives me nightmares to this day.
- Support for nullable values. Swift and Kotlin have first class support for these, which are meant to minimize or reduce the number of null pointers in your code. You can mostly fix this with annotations, but those your team using them very consistently, and are not supported by most java libraries.
- It's approach to concurrency. Java built in synchronization primitive is based upon an older model of concurrency whose name I cant remember but it involves every object basically being able to maintain internal consistency with it's own state. No one still uses it like this, with most method creating an `Object lock` as a synchronization primitive.
- Serialization. Java has built in binary serialization support that ended up being a massive security hole. Most people are now forced to use some json serialization, but the old serialization format is still lurking in the background to ensnare less knowledgeable programmers.
- Generics. Smarter people than me can probably give you more detail on this, but generics were grafted on to the language long after it was introduced, and it shows. At runtime, there are no generic types kept, meaning it is technically possible to break the generic typing of an object.
None of these it should be noted are deal breakers or reasons why you shouldn't use the language. Almost every single one has some form of workaround for it. But if you're not aware of them (or stuck with an older legacy codebase like a lot of people are) they can be major headaches that can just be avoided by using a more modern language.
If you want to grow, I'd look at diving into a language with a fundamentally different paradigm like Common Lisp/Clojure/Scheme/Erlang/Elixir/F#/OCaml/Haskell.
I know there problems too (verbose, OOP and enterprise over-design, some horrible legacy systems) but Java is as strong as ever I think.
I'm interested, have you worked in Java before on a bad project and have scars, or have you built up a negative impression from afar?
> have you worked in Java before on a bad project and have scars
My guess is that the opinion is just used as a way to signal their status as a 'pro' developer much in the same way people used to hate on PHP/Perl/VB/etc. endlessly.
Ironically, this makes them look like amateurs posing as pro developers, as real pro developers demonstrate their status through their work, not their posts on social media.
Java has an incredibly mature ecosystem, and Java 11/17/21 fix a _lot_ of the problems Java had.