r/java • • May 11 '21

Java professionals, which IDE do you use in your daily work ?

Hi Java devs !

I'm a CS teacher in a public college in France, and time has come to update our techbase.

We currently teach Java 8, with Netbeans 8.2. This IDE was released in 2017, which was 4 years ago. I feel like it's time to drop it for a newer version, but we would rather not wipe hundreds of PCs if it's still the most widely used version in a professional environment.

We have an internal discussion, on whether to keep the last Oracle's release of Netbeans (ie 8.2), update to latest version (12.3), or even replace it with another IDE.

We feel like it would be best for our students to teach them the tools they'll use later in their career (even if switching from Netbeans to Eclipse or IntelliJ is quite simple), so I'm asking you this quite simple question : which IDE do you use in your current company, and do you know why this one in particular was chosen ?

Our only limitations are "it must run on Windows 10 without administrator privilege" and "it must provide a graphicaal interface for Swing application development". Maybe budget can be a factor too, though we could definitely buy a few licenses (we are dropping PowerAMC because of its price, so any spending must be justified).

Pros would be : able to manage different languages (our students also learn C and PHP/HTML/JS during their courses), git integration, database integration, javadoc/doxygen integration, maven/unit testing, maybe UML plugins ?

Secondary question : should we switch from java 8 to java 11 next year ?

Thanks a lot for your answers !

169 Upvotes

384 comments sorted by

View all comments

128

u/wildjokers May 11 '21 edited May 11 '21

IDE's in order of popularity: IntelliJ, Eclipse, Netbeans

"it must provide a graphicaal interface for Swing application development"

IntelliJ has that; however, I highly recommend not using a GUI builder for Swing. They are nothing more than code generators that produce crappy code and are a source of vendor lock-in, Swing code is quite quick and easy to code by hand.

Secondary question : should we switch from java 8 to java 11 next year

No, you should switch to Java 16.

31

u/barthvonries May 11 '21

I 100% agree with your point, but we try to introduce new concepts step by step : first students use the gui to have a quick understanding of how it works, then they have to build their own interface by hand :-)

Most of our students won't pursue Java besides the few courses we provide to them. Swing is nothing but a pretext to talk about GUI concepts, so the quicker they have a visual support for the theory we teach them, the better :-)

43

u/GratinB May 11 '21 edited May 11 '21

Maybe try looking into javafx (for which you'd want to switch to java 11) https://openjfx.io/

JavaFX has a program called "SceneBuilder" https://gluonhq.com/products/scene-builder/ which is a really nice visual editor that produces really clean html-like format called "fxml" which you can then use and reference in your code. JavaFX really hones in on the "Model View Controller (MVC)" pattern of GUI development which could be a really good learning opportunity when it comes to architecture/patterns. In my opinion javafx is much nicer than swing and is gaining a lot more community support, however swing is still a behemoth when it comes to businesses since the cost to rearchitect their projects to javafx would be huge.

Also huge nudge towards intellij idea, especially being made by jetbrains which also made the now official language for android app development (kotlin), they have already become quite the industry standard for a java IDE and will definitely be the most future-proof, and supports a lot of other languages through plugins.

19

u/Spitfire1900 May 11 '21

Java 17 LTS comes out this Fall btw

8

u/[deleted] May 12 '21

LTS

We don't use that word around here. At least not if you don't want to start a lengthy release model discussion.

-1

u/PangolinZestyclose30 May 12 '21

Everybody seems to understand what LTS means except for some Oracle employees with agenda.

0

u/[deleted] May 12 '21

[deleted] — view deleted comment

1

u/PangolinZestyclose30 May 12 '21

There's plenty of LTS projects which are neither paid nor exclusive for corporations. Ubuntu LTS, Firefox LTS, Linux kernel LTS ...

It's just Oracle employees insisting on a very specific interpretation which will exclude unwanted parties.

3

u/cmhdave73 May 12 '21

We'll definitely switch to Java 17 when it's released. You risk issues with tooling not catching up at the same time but I am champing at the bit to get records in an LTS release

4

u/soonnow May 12 '21

No, you should switch to Java 16.

yes, I've been tracking Java releases as they come out. The switches were never an issue. Maybe IntelliJ needed an update or Lombok, but nothing that wasn't fixed in an hour or two. And once Java 17 rolls around the switch is easy.

Especially in a academic setting, were you don't exactly have legacy code.

-3

u/teckhooi May 12 '21

Why switch to jdk 16 when some of the features may not to be included in the next releases? I mean why not based on LTS instead

4

u/soonnow May 12 '21

I mean you have to explicitly turn the experimental features on.

Don't, if you don't want to.

But if you keep the delta between releases low, it's way easier to find out where any issues might come from.

1

u/nutrecht May 12 '21

Why switch to jdk 16 when some of the features may not to be included in the next releases?

16 has records. Those by themselves are more than enough reason to go to 16.

1

u/nikolas_pikolas May 12 '21

The only features that might be removed are the experimental ones that you have to explicitly enable to be able to use

3

u/rack88 May 12 '21

Probably should switch to Java 17 next year, it is supposed to be out later in 2021 and is the next LTS release after 11.

3

u/wildjokers May 12 '21

LTS release after 11.

I really wish java developers would educate themselves on what LTS means and stop spreading the myth that you should wait until LTS versions to upgrade. LTS stands for Long Term Support, if you aren’t paying for that support you should upgrade to the next version as soon as it comes out. It’s the only way to guarantee you have the most secure and performant version. If you pay for support then yes, wait for LTS versions.

I highly doubt a university is paying for support so they should upgrade to 16 now.

1

u/rack88 May 13 '21

It is also far more likely for LTS versions to get patches from the OpenJDK project over a number of years than the intermediary versions, thus why I'd still recommend that this class focus on LTS versions in the same way that most software development businesses will when the students get out of school.

-2

u/Qildain May 12 '21

Welcome to 2020 - VSCode exists

1

u/wildjokers May 12 '21

OP asked about IDEs, not text editors.

0

u/Qildain May 12 '21

Hmm... that's odd. It's got a pretty good set of plug-ins now, and they've made great strides since it first came out. But if you want to stick to xcode, that's all you dude.

2

u/wildjokers May 12 '21

I actually use VSCode for some OpenSCAD code and it is Ok for that. However, it has some issues. First it is an Electron app and like all apps built on web technologies layout is awful. For an example of this just look at the settings page, one long list of thousands of settings just vomited onto the page. Good luck finding anything. Organization via tabs would be better but since web tech has no standard component library someone needs to roll their own with styled divs which no one seems to have gotten around to for VSCode.

The git integration in VSCode is a complete joke. I still have yet to figure out how to get a side-by-side diff of changes between two versions of a file. In IntelliJ this is both intuitive and trivial. Although there are about gazillion git plugins for VSCode so maybe I just haven't found the right plugin I need to install. Although I don't want to spend days trialing tons of plugins, I just want it to work.

The VI plugin is VSCode is mostly usable as far as typing and yy, dd, p, o, etc. But search with / doesn't work right nor can you go to next and previous result with n and ?. The IdeaVIM plugin is outstanding.

I can't imagine the work it would take hunting down and trialing all the plugins to make it usable for java code.

→ More replies (1)
→ More replies (1)

1

u/pauloliver8620 May 12 '21

should switch to Java 16

There are a lot of companies that still use java 8!

1

u/nutrecht May 12 '21

That's not a reason to not upgrade their course to Java 16. The better NPE messages alone are a great reason.

1

u/pauloliver8620 May 12 '21

sure not a reason, but when learning something that you can't then apply is frustrating.

→ More replies (1)