nextwebgen.com

The Next Generation Web Now

Aptana: New Web IDE in Beta

Filed under: Web 2.0 News, Front Page, Ajax, Utility — Dion Almaer at 12:59 pm on Friday, July 28, 2006

Fred Anderson pointed us to Aptana, a new web IDE based on Eclipse.

They provide some nice screencasts of the functionality, and in the documentation they list “hot-To’s” for Many of the frameworks.

Features

  • Code Assist on JavaScript, HTML, and CSS languages, including your own JavaScript functions
  • Outliner that gives a snapshot view of your JavaScript, HTML, and CSS code structure
  • Error and warning notification for your code
  • Support for Aptana UI customization and extensions
  • Cross-platform support
  • Free and open source. (Source available soon)

Aptana

XN Test: The next Unit Testing project?

Filed under: Web 2.0 News, Front Page, JavaScript, Library, Utility — Dion Almaer at 9:47 am on Monday, July 24, 2006

Brian McCallister is up to his usual tricks. This time he didn't like JsUnit for a certain use case, so he created the embryo for a new test framework in JavaScript: For now let's call it XN.

With it you can end up with a test API such as:

JAVASCRIPT:
  1.  
  2.   s.test("Asynch test which succeeds", function(t) {           
  3.     t.async();
  4.    
  5.     dojo.io.bind({
  6.       url: "/Give-Me-A-404", // 404
  7.       error: function(type, thing) {
  8.         t.succeed();
  9.       }
  10.     });
  11.    
  12.   });
  13.  
  14.   s.test("Async test which should fail", function(t) {           
  15.     t,async();
  16.    
  17.     dojo.io.bind({
  18.       url: "/Give-Me-A-404", // 404
  19.       error: function(type, thing) {
  20.         t.fail("Failure is on purpose");
  21.       }
  22.     });
  23.    
  24.   });
  25.  

A lot of where the design veers from standard XUnit form it is to accommodate JavaScript idiosyncrasies. For instance, if we look at the test() function we see a variable being passed in! This variable is the instance of the test case, which is also, as it so happens, the value of this in the test function.

JavaScript's scoping bizarrity makes it much more practical to pass the test case in as an argument, that way you don't have to capture the correct value of this, or pass around this as a context to other calls when using anonymous functions. Handy. The same thing applies to suite.

Defining it as a Dojo module is also handy, it makes building a real suite pretty easy, you just require each of the "suites" -- which is why I think I'll rename it to group or even testCase, but I hate the camel casing, so will think a bit :-)

Reporting success and failure is easy to override, the default just creates a definition list and plugs results in, like so. Not pretty, but easy to make pretty as time goes on.

The API exploration test cases are all online, but not especially polished. We'll see where this goes. I kind of like the feel of how it is coming together. A couple things I definitely need to do though are changing failure to raise an exception rather than allow the rest of the test to continue, which will make stack trace generation for tracking down failures more useful; and add some more assertion helper functions (oh, and add the one-argument form, always including an explanation is annoying once you have stack traces to see where it came from).

It is very cool that it plugs right into Dojo and could be a nice dojo.xn library for us to use. Obviously, it is early days, but thanks for the ride Brian and keep it up!

JS Sorcerer 2.0: Standalone JS checking

Filed under: Web 2.0 News, Front Page, Utility — Dion Almaer at 9:26 am on Monday, July 17, 2006

We announced the first version of JS Sorcerer which was an Eclipse-specific tool.

Now, DHI Technologies has release version 2.0 which also targets non-IDE users familiar with command line interface and utilities such as “make”. We have also made some usability enhancements for the Eclipse folks including a greatly streamlined getting started process.

JS-Sorcerer helps JavaScript programmers create interactive applications by performing syntax checking and variable type and flow analysis on JavaScript files and providing type-safe linking of multiple JavaScript files for a single web page or an application. This tool also enables developers to write cross-browser code by making use of a standard interface to ECMAScript, W3C DOM, and XMLHttpRequest (AJAX) objects.

JS-Sorcerer

MODx CMS - An Ajax/PHP Content System

Filed under: Web 2.0 News, Front Page, PHP, Utility — Chris Cornutt at 8:24 am on Monday, July 10, 2006

There’s a new offering in the PHP/Ajax content management system world and it definitely looks like it has potential - MODx CMS.

MODx is an open source PHP Application Framework that helps you take control of your online content. It empowers developers and advanced users to give as much control as desired to whomever they desire for day-to-day website content maintenance chores.

Sounds a little vauge, right? Well, head over to the demo they offer, log in, and give it a shot. It’s not the most seamless integration, but it’s definitely a step above several of the “click three times to edit a post” offerings out there. Content changes are made in a rich-text editor and simple updates are possible from the pages themselves. The real power in this software, though, is in its Admin interface. There are options galore and a tree-style layout to help you manage not only the pages making up the site, but other content as well. Of course, it’s fully Ajax-enhanced as well, making it easiler to navigate and use.