ThemePartner, Professional Joomla! Business Templates

Theo

Why NetBeans IDE 6.9 is An Awesome Editor

June 16th, 2010 at 9:56 PM CEST in Miscellaneous

Earlier today the release of NetBeans IDE 6.9 was announced. After several beta builds and release candidates the final version of NetBeans 6.9 was released around 10:30 AM CEST. In this blog we'll look at several new options present in NetBeans 6.9. The focus will be on PHP or web development related options since those are the ones we use most ourselves. Some of the great new options include the following, which will be explained in more detail later:

  • PHP Zend Framework support
  • New formatter with many formatting rules
  • Refactoring and find usages for CSS and HTML-like languages
  • INI files support available

NetBeans 6.9 loading screen

Text editors and IDEs used by ThemePartner

About half a year ago a remarkable event took place. All three developers of ThemePartner switched their IDE to NetBeans within two days. Each of us three was using a different IDE at that time, and like most developers, we were defending it pretty fiercely as being the best out there. What caused us to switch from our beloved IDE to NetBeans in less than 48 hours? To explain that properly, we should have a look at the IDEs and text editors we were using before NetBeans:

Zend Studio 5 (commercial): Zend Studio 5 was a great product in terms of PHP development related options, and general usability. Options such as code completion, projects and syntax checking took our PHP development capacities to a whole new level.

Zend Studio for Eclipse (commercial): in our opinion these were inferior releases compared to Zend Studio 5. Despite having several new options and being built on the Eclipse engine, it took an enormous hit in performance. For example: completing a single PHP function name could take up to several seconds, which made code completion a virtually useless option in these releases.

Crimson Editor (open source): my personal favorite a couple years ago. It was (and still is) a superlight editor that actually fits on a floppy disk! Despite missing several interesting features, it generally took care of the job. Considering there was only one minor release in the past six years, and the system requirements speak about Windows 95, I do not see a bright future for this editor.

Dreamweaver (commercial): the former favorite code editor of our designer and front-end developer. Mainly the completion of HTML and CSS tags created a strong liking for this product. However, its commercial nature and bloated application style eventually were two of the main reasons to step away from this product.

Notepad++ (open source): despite not having 'the looks' for 'the big name', this is one of the best text editors out there. It is extremely lightweight, fast, stable and available in over 10 different foreign languages. What we personally love most about this product is how it handles character encodings. Even when there is no explicit notion of character encoding in the document, Notepad++ correctly identifies which character encodings is used. In a world that is becoming more international every day, this is an important feature that many other text editors out there lack.

And then there's NetBeans...

  • Superfast loading: to give you an idea how fast: the screenshot of the loading screen you see above actually took me three times to capture. Yes, it is that fast!
  • PHPUnit: NetBeans comes with integrated PHPUnit support. Creating a unit test for a file takes only a couple clicks, and you can link the test to the file so you can easily retrieve and edit it later.
  • Subversion: there is an integrated Subversion client in NetBeans. This means you can commit, update, merge, revert and to all the other things you want with SVN without leaving NetBeans.
  • Local history: NetBeans automatically keeps a local history of all the files you save. That way you will never lose a single edit you made to a file within the period you specified to keep a local history for.
  • File diff: comparing two files to each other feels intuitive and user-friendly. Just take a look at the screenshot below, and you will immediately know what changes I made to the file.

NetBeans 6.9 file diff on Joomla index.php

What is new in NetBeans 6.9 for PHP

A scala of new features was added to NetBeans 6.9. Below we will review some of the most important changes relating to PHP, HTML, CSS, JavaScript and general changes which are not directly linked to a specific scripting language.

PHP

HTML, CSS, JavaScript

General

  • Values of Constants: you can now view the value of the constant in both the navigator window in the code completion window. This applies to both global constants and class constants as well.
  • INI files support available: INI files can now be edited with syntax highlighting and checking in NetBeans. This is an interesting feature because many packages rely on INI files for their configuration.

Personal experience

With this new release NetBeans means proves once again that it is a superior IDE for editing PHP files and coding in other web languages. Aside from all the major improvements listed above I already noticed that NetBeans has fixed two relatively small issues that have been bothering me in version 6.8.

The first fixed issue is that now it's possible to click away the initial sub window in the version output. The second is that is now finally possible to click next to line numbers and drag your mouse up or down to select specific lines. This was a feature present in Crimson Editor and Notepad++ for years and I really loved, but was not present in NetBeans until now. Considering I have been using NetBeans 6.9 for less than a day now, I am sure I will find many more improved features along the way!

Download NetBeans IDE 6.9

Please tell me what your thoughts are about the latest release of NetBeans

Joomla! Search Engine Optimization e-book

Free ebook!

Joomla 3 Search Engine Optimization

Receive this 14-page illustrated free ebook written by Joomla SEO expert Theo van der Zee when you subscribe to our newsletter.

Get it now!

User Comments (28)

Add comment

M. Edward (Ed) Borasky

June 17th, 2010 at 7:25 AM CEST
I mostly develop in Perl and R, with some Ruby. I use Komodo IDE most of the time, but I've played around with NetBeans and I definitely would pick it over Eclipse. The things I like most about NetBeans are:

1. jRuby integration
2. Dozens of templates and tutorials
3. Free and open source

The main rough spots in NetBeans are lack of Perl support and lack of R support. There's an R add-in for Komodo, and I'm guessing it wouldn't be hard to build one for NetBeans, but I don't like building tools when I could spend the time building applications.

Viddo

June 17th, 2010 at 11:06 AM CEST
The problem with Zend Studio for Eclipse is probably not the editor itself and rather the Eclipse PDT plugin it is built upon. PDT 2.x (up to the latest stable build even) still suffer by long latency and performance issues. Hopefully resolved for the final release which is supposed to be out relatively briefly.

Netbeans is a good option but the lack for good debugging support (e.g. debugging through xdebug remotely, with require multiple remote hosts) is a big drawback IMHO. Still uses an older version of Eclipse PDT because of this.

Elliot

June 18th, 2010 at 11:49 PM CEST
Intersting article. We've tried Netbeans and found it to be painfully slow. After a lot of trialling, we ended up with Eclipse / Aptana, which seems to be missing from your review... you should try it!

SeanJA

June 19th, 2010 at 5:46 AM CEST
@Viddo ... It does have xdebug support built in, and has been since 6.8 (and possibly before?).

One of my favourite features is the auto creating of overriding methods. ctrl + space on a new line in a class and it will list all of the methods that you can override (that you haven't already overridden). Also the @method support for documenting methods available through __call and __callstatic, and @property (and @property-read, and @property-write) via __get and __set.

SeanJA

June 19th, 2010 at 5:55 AM CEST
@Elliot Zend Studio and Zend for Eclipse are both Eclipse based no? Aptana is just another ide built on Eclipse... it may have better support for js and css than a standard pdt install... but other than that, I found it to be not much better.

Eduard Seifert

July 1st, 2010 at 12:28 AM CEST
And this [1] is the main reason for me why Netbeans fails.

[1] http://netbeans.org/bugzilla/show_bug.cgi?id=89894

Nathaniel Kofalt

July 12th, 2010 at 6:26 PM CEST
@Eduard:

Ouch! Don't you hate it when some critical issue is a years-old ticket that slowly degenerates into various of "why is it taking so long" and "real X don't need feature Y" and "I like cheese, your argument is invalid."

From my point of view, it's one of the worst aspects of the open-source world. Features that seem simple to the user, but are technically challenging and the development gets complacent.

How to solve this? Somebody should take a whack at studying "zombie tickets" and how to prevent it - perhaps modern ticketing systems that would allow you to move/delete comments? Personally, I would rather take the transparency hit by deleting a rude comment than run the risk of seeing a rebuttal, rebuttal rebuttal, etc spiral the ticket out of control.

Nathaniel Kofalt

July 12th, 2010 at 6:27 PM CEST
Another option may be a tech/social split. Developers and longtime community members automatically post to the tech version, others post to social and can have their posts moved between the two at ticket owner's discretion. Then give the option to view one side at a time, or both simultaneously.

Nathaniel Kofalt

July 12th, 2010 at 6:53 PM CEST
@Elliot: hopefully you weren't using the "full" distribution when making performance comparisons, right? Benchmarks shows the Big IDE (at least the 5.x era releases) can run about 30% slower than their lightweight counterparts.

This has improved a ridiculous amount of late with a smart system that figures out what you use and only loads those modules. They are also continuously working to make sure each release is a bit faster. I forget their specific goals, but I was impressed by the amount of effort going into speed.

However, if you're running on outdated hardware, using the language-specific releases is still the order of the day.

Gary Mort

July 13th, 2010 at 7:25 PM CEST
Just curious how many other Joomla coders are using editors and if so, if anyone has started working on a collection of Netbeans code templates for creating standard Joomla coding layouts.

Stan

July 13th, 2010 at 8:39 PM CEST
So, no wordwrap....as promised....again? As a front-end developer there are many cases where i need to keep some code on a single line, it becomes increasingly burdensome having to scroll so damn far to the right just to see that code. Guess I'll keep on with Dreamweaver until Netbeans gets this right...

Nick

July 13th, 2010 at 10:42 PM CEST
Imo it would be best to stick with Netbeans even if it does not have this word wrapping feature that you desire. Dreamweaver has more bulk than Netbeans, all i personally want is a code editor not the designer stuff that dreamweaver has made it's mark with.

Jeff

July 15th, 2010 at 1:02 PM CEST
There are those of us who have used Netbeans for quite a while and find the 6.9 release to be anything than spectacular. My reason for feeling this way and which I know is shared by numerous other developers is because Netbeans hasn't improved its support for dynamic languages that run on the JVM.

Considering Netbeans' Java roots, this has been a huge disappointment. Eclipse, though itself not outstanding in dynamic language support, is still far better than Netbeans, especially in its support for Groovy.

As the popularity and use of JVM based dynamic languages continues to grow, Netbeans risks becoming increasingly irrelevant. As a long time fan of the IDE I am hoping that Oracle and the Netbeans governing board takes immediate steps to reverse this trend. It would be very exciting to see a 7.0 release that shows real improvement in this area.

Jeff

Javier

July 15th, 2010 at 5:54 PM CEST
Groovy is supported natively in NetBeans IDE from NetBeans IDE 6.5 onwards. http://wiki.netbeans.org/Groovy

Indoboarder

July 16th, 2010 at 11:34 AM CEST
At the moment I'm using Aptana. Mainly because of it's great "direct-editing-over-ftp" and "single-file-sync-over-ftp" features. But since Aptana has discontinued PHP-support, I think i'll give Netbeans a try.

Jeff

July 16th, 2010 at 1:32 PM CEST
@Javier While what you say is true its level of support is horrible. Code completion is nearly useless. Grails support is the worst out of all the IDEs with STS so far having the better of them all because it can take advantage of Eclipse Groovy support.

Eclipse is much better at it at this time yet I would also give it a failing rating though they are on a committed track on improving it with the help from SpringSource.

While support for dynamic languages might just be the hardest thing an IDE can be asked to do it is by far time that IDEs do this well.

Isaak

July 16th, 2010 at 3:11 PM CEST
Netbeans is a great IDE because of its range of features but it still completely sucks as an editor. I cannot even code with a piece of mind because all the built-in hard coded code completion slows me down with every line of code I type.

I use(d) Netbeans mainly for PHP development and couldn't just convince myself to keep using it because of all the editor annoyances; unwanted and unsophisticated indentation, quote completion (the most annoying one), file based syntax settings instead of language based, etc. etc. Since I moved to PHPed I have never wanted anything else. That is worth calling an awesome editor. Unfortunately it's nor free nor open source.

However, NetBeans is still my main choice for Java development and I hope by the time I master the Java language, that they actually spend some time in the editor instead of only new features and JavaFX.

I really hope so.

Adrian Blakey

July 16th, 2010 at 5:05 PM CEST
Someone needs to provide a plugin to manage jetty. :-)

Tor

July 17th, 2010 at 10:32 AM CEST
@Isaak

You can turn off autocompletion as well automatic quotes. Just look in settings. You can also file an issue, if you discover a bug.

Pete

July 17th, 2010 at 6:50 PM CEST
It's not awesome at all. Version 6.8 was much stable and responsive then current version.

By the way do a review to newest Eclipse version Helios with PDT - it's really really fast compared to Netbeans.

When Aptana and Zend will release versions of their product with Helios engine will be the much better(faster) products than Netbeans.

For the moment i believe that Jetbrains's PhpStorm is the best php ide for the moment.

But in next 1-2 months we'll have to kings of php ides:
- Aptana with Helios and PDT 2.2 or own php engine
- Zend Studio 7.3 - Helios & PDT 2.2 improved

Netbeans 6.9 is really slow and bugged, even if is full-featured is not a choice for me at least

Isaak

July 18th, 2010 at 12:46 PM CEST
@Tor

Autocompletion is a great feature and it increases my productivity so disabling it is not what I want. They just haven't implemented it the right way in NetBeans and it really needs improvement. Moreover, disabling in 6.9 doesn't really help because the feature is still buggy and makes things even more annoying. It's also not very flexible because these settings only apply to double quotes and I use single quotes for HTML attributes.

I submitted bug reports for more than a year ago but the NetBeans (PHP) development is sooo slow that it's useless for me to waste time in reporting bugs. They also didn't find my bug reports too important so it could take a few years more before they actually have another look at it, IF they ever will.

Isaak

July 18th, 2010 at 12:46 PM CEST
Continuance:

At a point I was so annoyed of these annoyances that I wanted to pay someone to fix these bugs or even learn Java myself. But then I reconsidered because why pay someone to fix these few annoyances and wait while I can have a much better performing and full-features IDE for a flat fee. So I went for a commercial one instead and the only thing that annoyed me so far is that it's not cross-platform.

Tor

July 18th, 2010 at 9:04 PM CEST
@ Isaak

I mean disabling auto-popup autocompletion not completely disabling it, so you can always invoke with ctrl+space

I'm curious what is so buggy in autocompletion, because for me it working just fine.

Isaak

July 19th, 2010 at 3:05 PM CEST
Tor,

With autocompletion I was specifically talking about quotes and brackets, not code completion.

c69

July 25th, 2010 at 7:26 PM CEST
Netbeans is very good IDE.

But why lie about its load speed ?
== Superfast loading: to give you an idea how fast: the screenshot of the loading screen you see above actually took me three times to capture. Yes, it is that fast! ==

How ?! NB6.X never loads faster than 30 in seconds.
Thats ok, i keep it always open, but why lie ?

Jeff

July 27th, 2010 at 1:00 PM CEST
@c69

My installation of Eclispe 3.6 with java/java ee, groovy, appengine and aptana plugins starts up very quickly on my 3 year old 2 gig memory laptop.

Load speed depends upon a number of factors including the number of plugins installed as well as the total sum of their initialization startup costs as well as the speed of your computer.

Jeff

Miles

July 29th, 2010 at 1:59 AM CEST
I like Netbeans quite a bit, but I'm concerned about the apparent lack of interest in dynamic language support. Development of the Python plugin in particular seems to have completely stalled. Oracle seems to regard Netbeans as their preferred tool for dynamic languages, but I haven't seen much investment there. Here's hoping for v7.

Viktor

August 22nd, 2010 at 8:10 PM CEST
do you use netbeans for joomla development ? we currently use dreamweaver.. we really like to try a true PHP IDE.. but it seem there's still no support for joomla development.. no code hinting.. how do you use PHPUnit test for joomla developement.. it seem joomla's MVC is still not supported by netbeans.. what do you think ?
Add comment

Add a comment

To prevent spam we've disabled commenting for guests on blogs older than 2 weeks. Please log in to comment on this blog post.

Subscribe to our newsletter

For exclusive promotions and great articles

 ebookFree ebook

If you sign up for our newsletter above you get our free ebook Joomla! 3 SEO for free!

Blog categories