Showing posts with label NetBeans. Show all posts
Showing posts with label NetBeans. Show all posts
2009-12-25
Homegrown projects: versioning
From time to time you need to set up some project at home. There are plenty of reasons: you are starting new opensource project, want to write few HelloWorlds with new frameworks, or you just don't want to go to office today.
And of course you want to use some VCS with your project, because it allows you to perform development in steps, plus standard VCS features like revert/diff.
I worked with CVS, SVN, Perforce and a tiny bit with VSS. And few days ago I tried Mercurial. Mostly because great support from NetBeans. But now Mercurial is total winner for home usage, only two simple steps and your repository is up and ready to be used from your favorite IDE. With Mercurial you don't need to start servers, use network connection, configure some system files using root privileges, just install and init project. And enjoy lightweight source control system that will provide you with all benefits of versioning.
2009-12-11
NetBeans 6.8 has come
NetBeans 6.8 is just released, introducing many new features. It's pity there is nothing interesting for me as for Java-GWT developer. And even nothing interesting for other guys I worked with - they are still using MyFaces 1.1 for some reason, OpenJPA 0.9.7 bundled with WebLogic 10.0.0.0.0, and other EE4 or EE5 stuff. New JIRA plugin can't authentificate into my JIRA server, and I'll better wait for next GWT4NB version, which I hope will support GWT 2.0 and NetBeans 6.8.
Honestly, it's a pity that the most powerful Java IDE/editor is not improving it's Java stack, but working on some thirdparty features like Kenai, PHP, Ruby...
2009-11-26
NetBeans and Safari
On my Windows box I am using Safari to read javadocs. Because of fonts antialiasing of course. And just noticed strange effect - NetBeans starts to lag when Safari is opened. Sources parsing is slower, autocomplete waits visibly longer before suggest something... Do you know where is the problem?
2009-08-11
Using license with NetBeans project
When you're using GPL or LGPL with your project - you should add license statement to every source file of your project. Using NetBeans it's not that simple - you have to use PROJECT/nbproject/project.properties file to add project.license=default_2 for example, using file name of your license template (but not template name itself). To make your life even harder - GPL and LGPL statements are using name of your project three times. Because of this I created separate templates for each of my (L)GPL projects to include project name. Because of this is took a time to set a complete new project. Now I found solution how to make NetBeans use single GPL template for all projects:
1. use ${project.name} for name of your project. For example: "This file is part of ${project.name}.".
2. in file PROJECT/nbproject/project.properties add project.license=default_1 (or any other file name for your license).
3. in same file (PROJECT/nbproject/project.properties) add project.name=MyNewProject
Now create new Class file and check license header of your file. Hope you'll enjoy!
2009-06-30
Eclipse and NetBeans compared
Eclipse 3.5 released few days ago, and NetBeans 6.7 just released. Of course I am using NetBeans 6.7 starting from beta versions and I know how it works, so I wanted to test eclipse. After using it for few hours came this comparison.
Both IDEs have clean install and run.
About
Two about dialogs to show used versions


Memory usage at the beginning
Memory usage just after startup. It's pretty comparable to say "there is no winner".

Step 1: project creation
Eclipse
New project dialog:

Eclipse gives lots of options on project creation page, and defaults are quite ugly. May be that is the reason why eclipse users are never writing small projects just to test some API?...

NetBeans
New project dialog:

NetBeans gives option to create Main class for project at once, but we will ignore this suggesion for comparison purposes.

Step 2: main class
Eclipse
Eclipse shows another overloaded window. Of course first bug in package input, Ctrl+Space just does not work there. As for me to save user's time it would be better to create just empty class as soon as possible, and editor will give possibilities to modify that options.

NetBeans
Quite better options than Eclipse gives, you see all possible templates for your Java project organised in tree.

But there is next window to complete Main class creation. It's a bit more usable than Eclipse's version because of good focusing system, but still it's step 2.

Step 3: autocomplete
Eclipse 1
Basic autocomplete is just ass-ugly. No text coloration, small and not monospaced fonts just suitable to print errors, but not information for developer.

NetBeans 1
Text coloration helps more than icons, but icons differs each other if compare to Eclipse's round icons with just letter changed. And of course monospaced font.

Eclipse 2
One point to Eclipse - after autocomplete focus is given to set type of list.

NetBeans 2
Not much to look at.

Eclipse 3
Another ugly autocomplete window.

NetBeans 3
Only imported types shown. Once this was IDEA's feature and it makes good job.

Eclipse 4
It's very strange to see icons and other information here, just can't understand who needs it.

NetBeans 4
Quite lot of variants.

Eclipse 5
Cool. 5 items in list and none will work for us.

NetBeans 5
Same problem, just showed everything it knew.

Eclipse 6
Nothing interesting.

NetBeans 6
The same.

Eclipse 7
Were there any worse possibilities?

NetBeans 7
Pretty good, all found List implementations will help us. Just why to show classes from com.sun.* packages?...

Eclipse 8
Still no help from IDE! I can do the same in plain text editor, why do I need IDE like this?

NetBeans 8
Perfect. The most suitable class and full javadoc for it.

Eclipse 9
One more point to Eclipse. It's good to write type and brackets when class is already known.

NetBeans 9
No brackets... I have to press another autocomplete to see available constructors. Even no autopopup of autocomplete here.

Eclipse 10
Another ass-ugly autocomplete. No text coloration, no text alignment, some strange info about class of object, and that stupig "arg0" labels... I don't know, did Eclipse guys ever saw what they developed?

NetBeans 10
Just perfect. Bold marks methods implemented in class and plain - inherited methods, text aligned to let you browse return types with ease.

Eclipse 11
arg0?...

NetBeans 11
Well, it's really the best found option around.

Eclipse 12
Hm... no text autoquoting?...

It even can't put semicolon to the right place!...

NetBeans 12
Oh, here is text autoquoting, autoputting of semicolons... But it's NetBeans who helped me to save my time.

Eclipse 13
Wait... but there is src.zip with my JDK installation, it's full of javadocs! Why can't it just show me javadoc from there? Do I really need to go and download javadoc.zip in 21st century?

NetBeans 13
Here we go, it's not hard, is it?

Memory usage now
Memory usage after comparison above. And you will be next to say me that "native SWT is faster than interpreted Swing"? I'll write separate article about that myth.

Conclusion
"IDE" stands for integrated, but as naturally I expect my IDE to help me in my every day job. Help in this case stands for autoquoting, autosemicolons, simple and fast dialogs, and of course pretty and usable interface, that saves your time searching required items. Currently NetBeans is only IDE that really tries to help me as much as it can, though there are things to work on. And that makes me NetBeans user, not just big user base or Sun trademark.
Subscribe to:
Posts (Atom)