» My new IDE: NetBeans

Writing code requires two important things: creativity & discipline. The creativity to create the unknown, unexplored, exciting parts of software. And the discipline to create the dull & all-too-well-known parts of software / documentation.
You may come up with new ways (or use frameworks) to reduce repetitive work. Effectively beating discipline with creativity. But boring stuff will still always be there in some form. And on days when creativity is low, you may need to tap into that jar of discipline so you can still be productive, by doing things you never feel like.
But every now & then, there is a day when both creativity & discipline are low. To prevent such a day from going to waste, I figure I can do 3 things:

  1. Drink coffee, get back at it
  2. Drink some more coffee, get back at it
  3. Use this day to learn & invest in tools & skill

Recently I had a rough night involving little sleep & one or maybe two drinks. I'll spare you the details. The next morning my two coding fuels: creativity & discipline were at an all-time low. I ended up repeating steps 1 & 2, but they just didn't cut it ;) It was clear that this day was not going to be my best coding day in the world ever.

So I turned to step 3 and decided to invest that day in learning tools. This may not result in immediate production, but that's why it's called investing ;) I'm now learning & investing in things that will hopefully increase my productivity in the future. As an added bonus: on a day otherwise lost.

Eclipse PDT

A programmer's primary tool is his IDE. The end-product is in your head but the tool will help you craft it. Good tools will help you craft it better or faster. Or both. Readers of my blog may have noticed my love (1) hate (2) (3) relationship with my current IDE: Eclipse PDT. We have our ups & downs, this has never changed. Winston Churchill once said: "...democracy is the worst form of government except all the others that have been tried".

This best illustrates how I feel:

"Eclipse is the worst IDE except all the others that have been tried"

But now that blog posts on a 'new' 'radical' IDE called 'NetBeans' have been clogging up my RSS reader, and I had an entire day of coffee & learning ahead of me, it was time to give it a try.

NetBeans

NetBeans is an IDE by Sun and has been around for while. What's new in 6.5 is it's support for PHP. That's what makes it interesting for me.

The base install is no different from Eclipse PDT. Download the archive, extract it, run it. That's it.

What complicated things with Eclipse were the steps afterwards: adding CSS support, adding SVN support, having to struggle through their ever so poor plugin & update system. Manually selecting mirrors & dependencies. Not to speak of performance issues.

Not the case with NetBeans. They must have really looked at a PHP developer's daily job, because everything you need is already in there: SVN, CVS, CSS, SQL, and even support for jQuery! This even works within 1 document:  NetBeans figures out what's JavaScript, what's PHP, and indexes & highlights all elements accordingly. And you can even connect to a MySQL database. This is all out of the box.

And if a feature is missing, the NetBeans plugin system Just Works. Go ahead & install additional features. No need for a science degree there.

Code completion is fast & accurate. Manuals are integrated. Existing Eclipse projects can be imported, no need to keep separate workspace directories. Just switch back and forth between NetBeans & Eclipse (or your other IDE of choice) until you've made up your mind.

Conclusion

If you want a complete list of features just check out one of many other blog posts about NetBeans or checkout a screencast by the creators. For me it suffices to say: It's like a lightweight Eclipse, with a couple of very powerful additional features (all out of the box), and it Just Works.

In fact, I wasn't prepared for such a smooth ride. I continued in fully working environment, learned some keyboard shortcuts, played with the refactoring tool (awesome). And maybe it was the coffee, but before I knew it, my creativity kicked back in and I even got some serious work done that day :) Who would have thought. 

RSS

If you want to be kept up to date, from now on my rss bookmarks will also contain useful NetBeans links I find online.
You can also track my blog rss articles and rss comments.


Like this article?

   Then Dzone it!
Or use another bookmark button below to show your support &
help me spread the word.


tags: ide, netbeans, eclipse, programming
category: Programming
read: 4,201 times

Add comment

(required, shown)(required, not shown)for syntax highlighting

[CODE="Javascript"]
your_code_here();
[/CODE]

Replace "Javascript"
with "php", "text", etc.
code (to make sure you are not a spammer)

 Track replies: rss feed comments feed

Comments

#21. Adam on 02 January 2009

Gravatar.com: AdamAt first I was skeptical because you didn't mention Python, Ruby or C++ support, but its there! You DEFINITELY should have highlighted those as well!

Also, would have been useful (at least for my lazy bones) to provide a link to download it...I figured there would be one on your post but there wasn't, so just maybe for future reference :)

#20. Kevin on 30 December 2008

Member avatar: Kevin@ Robin Speekenbrink: SFTP. I don't see the need.. What do you use it for? Don't you want a version control system for everything you do?

#19. Ziad on 18 December 2008

Gravatar.com: Ziad@Dave Yes you can debug your PHP through NetBeans and XDebug

I've been trying NetBeans PHP for the last couple of days and I must say I am very impressed with how things just work. I haven't even tried the HTML/CSS/JavaScript stuff but even with just PHP this is a pretty kick ass IDE for PHP development.

#18. Erik Ellis on 17 December 2008

Gravatar.com: Erik EllisHay,
I must say that im glad to find some one who is not blinded by eclipses grip of the world.

I got fed up with eclipse and for the 10th time went out looking for something new. I'we stumbled into NetBeans alot of times, but always discarded it as a visual c++:ish clone for Java and C/C++.
I had a final look at it and found it had a new beta support for PHP. I tried it (an early dev release of 6.5) and i loved it.
... [more]
It just workes. And it integrates to well with established workflows and systems.

I got blown out of my mind when it actually chewed its way through 12,000 php files, in 20-30seconds, and on top of that, also recognized it as a working svn copy, and tag all files accordingly.

In eclipce, i would have to wait for it to index all my files (could take a good 10mins), and i had to coax it into recognizing it as a working copy, if i didn't check it out with subclipse. On top of that, most of the time, eclipse would bug out and give me black screens or not even follow through with the project setup and checkout.

People should really give NetBeans 6.5 a try and look at it as a new IDE and not what it once was.

#17. Michael Kimsal on 05 December 2008

Gravatar.com: Michael KimsalI *THINK* the javascript support includes code completion as well, including 'regular' javascript and libraries (jquery, etc.) I might be wrong on that. I know Aptana does, and I thought netbeans did too. But yeah, for PHP, netbeans is definitely a new contender in the IDE space.

#16. Robin Speekenbrink on 04 December 2008

Gravatar.com: Robin SpeekenbrinkNice post as always!
I've been playing around with NB for some time now and have too been comparing it to alot: the hell of eclipse, the good old fashioned, sturdy and well rounded mother IDE ZendStudio5 and others like aptana, maguma etc.. currently though my main holdback before fully switching from ZS5 to NB is the lack of sFTP support.. working on a MS Windows development client but having a full blown LAMP dev enironment ready just doenst work within NB...but true, considering that NB6.5 is just the (official) fisrt real release for PHP support in NB i'm eager to keep my eyes open and see what more they can come up with!

#15. Dave on 03 December 2008

Gravatar.com: DaveGotta say I use Zend Studio for Eclipse. It is better than trying to decipher Eclipse PDT, but it suffers from being Eclipse based i.e. resource intensive and slow and the PHP Analyzer can kill even the most bitching of high-end PCs. Unfortunately it does seem to have one thing going for it that I think NetBeans (and many others) don't and that is integrated debugging of scripts.

ZendStudio has fantastic integration with the ZendDebugger as well as with PHPUnit and PHPDocumentor and if you start down the Zend stack and use ZendPlatform you can get some incredibly indepth information about your application. Combined this has really helped me out no end (where I use PHPUnit, some projects use SimpleTest!).

So currently it's a limbo state for me, un-willing to change IDE due to the investment (both time and principally money!) in ZDE but seeing a lighter faster (and free!) IDE in NetBeans. I will keep looking at NetBeans and sampling it though.
... [more]
Incidentally: NetBeans did annoy me with its insistence that there MUST be a primary index.php file and it tries to treat this as being the project root. It cannot seem to just have a bunch of files. I have some large projects that would basically sit in /opt (for example!!), and a /websites folder would be web accessible but there may be multiple sites in there with multiple primary index.php files, but they are part of the same project. Only a minor thing really :)

Oh and the SVN checkout into a new project really confused the hell out of me the first time round - but then, so did ZDE6s when it checksout into a Type of ...... ;)

#14. sid on 03 December 2008

Gravatar.com: siddoes tea work too?

me no likee coffee


... [more] (lees dit laatste met een Jar Jar Binks accent - for extra annoyance!)

#13. Kevin on 03 December 2008

Member avatar: Kevin@ Ronen & Çağlar: Intellij doesn't support PHP right? It's important for me that my IDE does.

@ Brett Zamir: Thanks for explaining about the bug

@ Oleg Anehkin: I may look into it one day. Maybe after:
... [more] - My new IDE: Eclipse
- My new IDE: NetBeans, you will find a
- My new IDE: Aptana online ;)

@ Casper Langemeijer: So far I've found the development team to be quite accessible, maybe if you find more people they will build it. But you are aware you can link a keyboard shortcut to it right?

@ Jörg Plewe: Thanks ;)

#12. Jörg Plewe on 03 December 2008

Gravatar.com: Jörg PleweVery well written blog, I couldn't prevent myself from smiling. NetBeans was my favorite for a long time; not bc. of the features, where Eclipse was leading for a long time, but for being the underdog in the IDE battle which always bears some sympathy.
But nowadays, it is fun to see that NetBeans made such a big progress while Eclipse is stagnating a bit.

#11. Casper Langemeijer on 03 December 2008

Gravatar.com: Casper LangemeijerWhat shits me about netbeans is one missing feature: Autoremove whitespace on save.

Sure, where is a remove whitespace feature, but no way to do it automagically. We've tried explaining this to the developers: They don't understand.

#10. Ashish Waghmare on 03 December 2008

Gravatar.com: Ashish WaghmareI hava tried Apatana (free) and Netbeans 6.5 ,but i liked Netbeans support more. Refactoring is well integrated in netbeans than aptana .Also other errors like are un-used variables are better shown in netbeans 6.5.

#9. Oleg Anashkin on 03 December 2008

Gravatar.com: Oleg AnashkinIf you think NetBeans is the best PHP IDE, then I guess you haven't tried Aptana. I strongly suggest you to try it out: http://www.aptana.com

#8. Çağlar on 03 December 2008

Gravatar.com: ÇağlarI really like Netbeans but it might be much better if it has the refactoring power rich , useful shortcuts of Intellij Ide. So for now Ideaj is my main ide for java for now.

#7. Signal9 on 03 December 2008

Gravatar.com: Signal9I have been a netbeans user since it was 5.0 and I love it. True Sun has given it a home but it was originally an open source project.

I primarily use it for building N-Tier Java systems and C++ development (for both windows and linux).

#6. Brett Zamir on 03 December 2008

Gravatar.com: Brett ZamirI've been using Netbeans for JavaScript for the sophisticated syntax coloring alone. Besides being easier on the eyes when customized (I like a light blue background), Netbeans' specificity in distinguishing types makes things like globals jump out. This may sound like a fluffy concern, but if you get used to it, you will no doubt appreciate its practical power.

The developers have also been swift to respond and implement some bugs/features I've happened to report (e.g., JavaScript 1.7 support in Mozilla).

One caveat--Netbeans 6.5 has a very annoying bug (not present in 6.1) with object accessors causing an error to be triggered when one adds whitespace after it. They say it has been fixed in trunk, but the update has not been pushed yet. I mention this so people aren't deterred because it is otherwise a REALLY nice IDE, and apparently only getting better (but I'm still sticking with Early Access PHP 6.1 for now).
... [more]
Although I don't think Netbeans (as with Eclipse) is all that welcoming and intuitive to learn from the beginning (it has a lot of features you won't need if you just develop in JavaScript and PHP), and I prefer an IDE like Komodo Edit for its flexibility in customization (e.g., adding snippets and items to the menu rather than predefined items), I'm happy to mostly just stick with Netbeans' very useful Navigator display and powerful syntax coloring options. I really hope they will allow sharing of coloring profiles because I've come up with one which I really think is awesome.

#5. Tom on 03 December 2008

Gravatar.com: TomYou've pretty much just summed up my last few weeks. A fresh OS install and then remembering what a pain Eclipse PDT is to set up. I tried Netbeans after reading good things and everything worked out of the box. The subversion interface worked perfectly and there's lots of great little features (I discovered the CSS editor today). I doubt I'll be returning to Eclipse in the near future.

#4. Kevin on 02 December 2008

Member avatar: Kevin@ Peter Velba: Excuse your French Peter! I would like to think I have always been quite nuanced in my judgment of Eclipse or any other technology for that matter. You may not have read my posts so well. You may have even misunderstood the Churchill quote!

#3. Ronen on 02 December 2008

Gravatar.com: RonenIv been a long avid user of intellij, after trying eclipse for a couple of times i gave up, iv found Netbeans to be the closest thing to intellij out there, things simply work, intellij has the upper hand on speed and features but its not free.

#2. Peter Velba on 02 December 2008

Gravatar.com: Peter VelbaThis Anti-Eclipse-blog is published on dzone.com, the website of Sun-marketing-whore Rick Ross. I am not astonished at all.

#1. bloggingg on 02 December 2008

Gravatar.com: blogginggThat sounds familiar to me. I've made the change to Netbeans last week after years of that love/hate relation with Eclipse.