The Source for Java Technology Collaboration
User: Password:



John Ferguson Smart

John Ferguson Smart's Blog

JavaOne 2008 - The new NetBeans Javascript editor

Posted by johnsmart on May 09, 2008 at 11:50 AM | Comments (2)

Personally, I hate Javascript with a passion. This is largely my fault - I just haven't taken the time to learn it properly. Unfortunately, there are still times when you just have to work with it. And the lack of syntax checking and code completion has always driven me crazy.

This morning, I saw a most impressive demo - the new Javascript editor in NetBeans. Now, when you work with Javascript in NetBeans, you get proper code completion, complete with lists of available methods and API documentation. The API documentation also includes information about browser compatibility for each function. Sweet!

Technically, all this is no mean feat. Since Javascript is typeless, code completion is inferred dynamically from the way you use the objects in the code. So if you create a class dynamically in Javascript, you get code completion for this as well! If you document your Javascript using Javadoc-style comments, you can also have the documentation appearing with the code completion

There is also real-time syntax checking, and also best-practice rules, such as confusing '=' and '=='. And you get a proper debugger, via a Firefox plugin, where you can step through the javascript, insert breakpoints, view variables, and so on.

A very nice piece of work. A longtime Eclipse user, I am really impressed by the progress NetBeans has made over the last few versions.


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Yep taking about progress NetBeans, I suggest you to try out new Netbeans Maven Intragation see more details at my blog here

    Posted by: theanuradha on May 09, 2008 at 12:43 PM

  • Yeah, Maven support in NetBeans 6.1 kicks butt!

    Posted by: johnsmart on May 09, 2008 at 01:41 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds