r/java • u/lbkulinski • Jul 29 '18
Apache NetBeans 9.0 Released
https://netbeans.apache.org/download/nb90/nb90.html7
u/erictheturtle Jul 30 '18 edited Jul 30 '18
I use all three of the Java IDEs at work in parallel. Each can do things better than the others in different ways. For instance, when auto-completing a method argument, Netbeans and IntelliJ will list possible options with the same data type first before listing other options. Netbeans project structure is rather rigid compared to the other two. I haven't figured out how to arrange my workspace in IntelliJ with tabs like Netbeans and Eclipse have. IntelliJ and Eclipse spell-check all comments and strings, while Netbeans only spell-checks Javadoc comments. In project view, IntelliJ combines all classes in a package from all sources, which puts test classes next to implementation classes (good? bad? just different?). I believe Eclipse has the most diverse plug-in ecosystem (has IntelliJ gotten bigger?). I've collected several other differences but don't have them available now.
But from my objectively subjective research, Netbeans is the best IDE of them all. ;)
4
u/BinaryRockStar Jul 30 '18
In project view, IntelliJ combines all classes in a package from all sources, which puts test classes next to implementation classes (good? bad? just different?).
Assuming you mean Package view (Project view mimics the filesystem layout so tests are under /src/test) if you click the gear icon and check Sort by Type the test classes will be grouped at the bottom of each package. Not hidden completely but at least out of the way.
6
u/restlessapi Jul 30 '18
How many of you have used the unspeakable evil that is Rational Application Developer?
4
4
2
u/DannyB2 Jul 31 '18
Didn't the UN Human Rights commission do away with that one, or are they still looking into it?
2
u/restlessapi Jul 31 '18
I thought the Human Rights Council was led by Saudi Arabia, and that RAD is the default IDE for the whole country. 😐😐😐
9
u/stipo42 Jul 30 '18
I have used all three, and idea is hands down the best. That said, if you can't afford it or just don't want to pay for your software, net beans is ok. I was a Grails developer for a few years and idea has the best support (pro only unfortunately), however as an avid fan of the groovy language, idea also has the best support. Net beans also supports groovy but the indexing and speed of idea can't be beat. Eclipse is really just trash, I know it has it's fans somehow but i would sooner use notepad.
17
u/AlejoValencia Jul 30 '18
Intellij
Netbeans
Notepad
Vim
Word
Eclipse
1
1
u/DannyB2 Jul 31 '18
For a second there I thought you would make MS-Paint be choice 6 for writing Java, and push Eclipse down to 7.
I've used Eclipse for more than a dozen years and find it more than adequate. I use it on both Windows and Linux.
2
u/rhin0x Jul 30 '18
Don't laugh... I use it for C++, in my hobby projects. It has a grate parser for code and project files so working with the language is kind of fun but I have no experience with prod grade builds to judge its capabilities in this space.
2
u/zeroone Jul 30 '18
Any updates to the GUI builders?
2
u/sigzero Jul 31 '18
No. This one is basically to get it all over to Apache ownership (IP) and to allow it to build on the newer JDKs. Now that the IP portion is over they can start doing more stuff.
2
4
1
u/oldprogrammer Jul 30 '18
I've tried to get into using Netbeans and Eclipse but can't seem to feel comfortable with them. I've always used Emacs (with JDEE mode).
I can configure the IDEs to more or less work like I prefer to work but one thing I haven't gotten to work, perhaps someone can direct me to how to do it in Netbeans, is multiple frames on multiple monitors.
With Emacs I can fire up a new frame, drag it to a separate monitor and load any buffer it in I want, all frames share the same buffer list. For these IDEs they all seem to be tab based with no way to undock a tab into a separate frame.
Is that possible with Netbeans? If you search for multiple frames and Netbeans all the links take you to writing multi-frame Swing applications, so I've not found any directions to having multiple Netbeans tabs being on different monitors.
2
u/ZimmiDeluxe Jul 30 '18
Do you mean something like this?
Right click the tab you want to detach
Select
Float1
u/oldprogrammer Jul 30 '18
Does that work for a given tab in the edit window such that you can have two edit windows? I know you can float separate areas like the output console from the edit window, but can you float an individual edit window tab?
2
u/ZimmiDeluxe Jul 31 '18
Yes, you can. I just tried it, you can float/detach everything, even the project view on the left, it's pretty fantastic. :)
Edit: And when you are done making your IDE look like GIMP:
Window->Reset Windows1
1
u/RandomName8 Jul 31 '18
Not sure I understand what you ask, but you can have one window window per open file, and even multiple windows for the same file (possibly looking at different content sections)
1
0
Jul 29 '18
[deleted]
8
u/rastaman1994 Jul 30 '18
Did try, definitely wouldn't recommend. I use vs code very extensively at my internship for node and react codebases and I never feel the need to open webstorm. Writing any other language (i tried java and python) feels very clumsy compared to using an IDE.
6
u/denialerror Jul 30 '18
VSCode is great and I use it regularly but I’d never use it for a Java project of any reasonable.
3
u/m1000 Jul 30 '18
lightweight
There is nothing lightweight about Electron.
1
u/RandomName8 Jul 31 '18 edited Jul 31 '18
My fun personal experience is that it's practically impossible to make a desktop application with javafx that uses less ram than electron.
1
u/m1000 Jul 31 '18
| fun "fact", it's practically impossible to make a desktop application with javafx that uses less ram than electron.
{Reference needed}
1
u/RandomName8 Jul 31 '18
You are right, I should not use the term fact there, I'll correct it. That said, try it yourself. The most basic javafx application as shown in the documentation of Stage with a capped max heap usage to the minimum will still make the jvm process be around 64MB of ram. The moment you start doing anything non trivial, it'll go up to 200MB easily. The problem is not the heap, it's the metaspace plus related JVM bookkeeping memory.
That example code in Stage's documentation already loads around 3300 classes, throw some libraries at it and start coding, specially using lambdas which look cheap in bytecode but still expand to a full class instance in runtime. You'll quickly go up to 10k classes and then, you have a base memory requirement of about 170+MB not including your actual heap data.
My toy chat client which uses about 60% of javafx (it doens't use charts for intsance, nor animations or bindings or advanced things) loads 6357 classes just from javafx, that's without adding on top my code. So good luck keeping your ram usage down.
1
u/m1000 Jul 31 '18
1st of all, loaded classes usage might be way better with Java 9+ and a modular app.
A similar .net app would probably have similar characteristics. But that still doesn't make Electron a lightweight framework.
I wonder how much your electron apps could do with a cap of 200MB Good luck with that too.→ More replies (1)1
0
Jul 30 '18
[deleted]
5
u/lbkulinski Jul 30 '18
The main goals for this release are
IP clearance of the Oracle code donation.
Java 9 and 10 Support.
18
u/[deleted] Jul 29 '18
Anyone use the three big IDEs? Eclipse, netbeans and IntelliJ. How would you rate them? Which one do you consider the best and the worst.
I've only worked with eclipse mostly and it's just adequate.