Going from Eclipse to Netbeans
March 21, 2010
So people at work kept telling me, in autumn 2009, that I should use Netbeans instead of Eclipse. At first I thought it wouldn’t be such big deal if I switched over. But as I had to go over to php programming Eclipse was clearly lacking in that department. This is how I first got to work with Netbeans in february.
Netbeans php package is everything you’d want it to be. It has nice navigation and refactoring tools that I clearly need and there is a Eclipse keymap which made my life easier by not relearning the shortcut keys that I need. I’m somehow dumbfounded why Eclipse doesn’t have this support yet. But there was nothing mindblowing with this until I started to use Netbeans for Java programming; and that is how my mind was blown.
Netbeans 6.8 has several features that makes Eclipse look like it is from the Stone Age. Let me iterate them for you:
Netbeans has a GUI builder
Netbeans has a fully functional GUI Swing builder… Might I point out it is a FREE GUI builder? Eclipse has an unfinished GUI builder and several commercial ones. But I like Netbeans one because it is FREE and it WORKS. However, I do like to work on my own Swing widgets so it didn’t blow my mind as much as the following feature.
Netbeans has some wickedly good default templates
Netbeans has AWESOME default templates. What I noticed first was that it creates logging for you when you autogenerate a try-catch thingy instead of Eclipse’s use of output:
try {
// do something that'll cause the exception
} catch (IOException ex) {
Logger.getLogger(MyClass.class.getName()).log(Level.SEVERE, null, ex);
}
Secondly, the gui builder creates localized strings. Let me repeat that, IT CREATES LOCALIZED STRINGS FOR YOU BY DEFAULT.
Thirdly the project layout uses a better convention than what Eclipse does. It creates test projects for you and put the localized resources where you’d expect them to be. Just plain AWESOME! This is something you had to do manually in Eclipse.
In the end…
Now you’d think this would be a sleazy sales pitch for Netbeans. But then again, I’m just an ordinary programmer. There are some things Netbeans still hasn’t the upper hand on:
- As I can see it is still lacking some of the Java refactoring tools that Eclipse has.
- Plug-ins for Netbeans are seemingly poorly maintained.
…but that won’t stop me from using Netbeans now. It’s interesting to see that Eclipse, once such a great tool for several years, really needs to ramp things up.
April 5, 2010 at 8:24 pm
> As I can see it is still lacking some of the Java refactoring tools that Eclipse has.
Which one?
> Plug-ins for Netbeans are seemingly poorly maintained.
Installation of netbeans plugin was a no brainer for me – always. In eclipse I was proud that at least 50% of my plugins installed without manual hacks. Or what did you mean with this point?
April 19, 2010 at 2:06 pm
>> As I can see it is still lacking some of the Java refactoring tools that Eclipse has.
> Which one?
There are lots that I’m using a lot that are missing. For example refactoring nested classes to top-level. At least I didn’t find one.
>> Plug-ins for Netbeans are seemingly poorly maintained.
> Installation of netbeans plugin was a no brainer for me – always. In eclipse I was proud that at least 50% of my plugins installed without manual hacks. Or what did you mean with this point?
Earlier last year when I was looking through a project page for a netbeans plugin which was in such a bad state that it was littered with porn spam.
However I have to give credit that Netbeans can install plugins automatically, a feature I recently discovered.
April 19, 2010 at 2:19 pm
> For example refactoring nested classes to top-level.
(point the curser to the inner class) then right click-> refactor-> Move inner to outer level