Languages - DevSource
DevSource: Microsoft Developer Resource DevSource Home Sponsored by Microsoft Home Add Ons Architecture Languages Techniques Using VS Forums
Home arrow Languages arrow Gosling Outlines the Trouble With AJAX
Gosling Outlines the Trouble With AJAX
By DevSource

Rate This Article: Add This Article To:

Gosling Outlines the Trouble With AJAX
( Page 1 of 2 )

Q&A: James Gosling, Sun Microsystems executive and creator of Java, talks about the future of AJAX and Sun's highs and lows in the software arena.

James Gosling, the creator of Java and chief technology officer of Sun Microsystems' Developer Products group, believes Sun is leading the way to enabling developers to incorporate Asynchronous JavaScript and XML components into Web applications. But building those components is another story. In an interview with eWEEK Senior Editor Darryl K. Taft, Gosling discusses some of Sun's highs and lows in the software business.

ADVERTISEMENT

What's Sun doing in terms of AJAX support and what do you think you could do more of? What are Java developers asking for?

What we're doing these days is a combination of things. One is to make sure that the server-side frameworks like JSF [JavaServer Faces] will work well with the various different client frameworks like AJAX. So using JSF you can build JSF components that download AJAX on the client. They do the interaction using AJAX so that people can use it pretty easily. At a level up we move a lot of effort into the tools so that when you use something like Creator and the enterprise stuff in NetBeans, then you can incorporate AJAX components into the Web pages that you build.

So we end up with this kind of meta-component model, where we can use components of many different kinds and get them to all work together. Whether it's AJAX or applets or plain old HTML, they all play together. And that works pretty well. That's sort of the area that we get the most demand from developers.

Click here to read about the delivery of Sun's Java Studio Creator 2.

The place where there's sort of black magic right now that we're trying to figure out what to do in, is around how you create AJAX components. We can make it pretty easy to use AJAX components. There are a bunch of folks out there that just need to use them. But there's a dramatically smaller community of people that create them.

Creating them is extremely hard. Not because programming JavaScript is hard, but because all these flavors of JavaScript are ever so slightly different. You have to build your components so that they're adaptable to all the different browsers that you care about. And you have to figure out how to test them. None of the browsers has decent debugging hooks. We could build little things for people where they could test these components.

The problem is that it wouldn't be exactly the same environment as being inside Internet Explorer or being inside Spark or being inside Firefox. And those environments are pretty limited. Pretty much all you can do is include a bunch of printf's—capture the log input as printf's—[with] no ability to look at variables or segue points or single-step things. There's no ability to do cross-platform QA; you've just got to do them one by one. Right now it looks pretty hopeless to make AJAX development easier.

So would that be an area you guys would want to go into?

Well, if we could figure out a good story, it would be nice to go into. We haven't come up with a story there that says anything terribly useful.

Do you think anybody has?

Well, the problem is just intrinsically really, really hard because of the divergence of the platforms. And there's a bunch of things people do to try to make that better. Like there are a number of libraries that exist that try to paper over the differences, but lots of difficulties exist.

Next Page: Pick your favorite blunder.



 
 
>>> More Languages Articles          >>> More By DevSource
 



Microsoft's Future: A Chat With Their CTO, Barry Briggs

Play Video >

All Videos >

Julia explores the Robotics Studio!

Read now >

Messages to Bill Gates!

Read now >

View Now
DevSource RSS FEEDS
XML Want an easy way to keep up with breaking tech news? And the Get DevSource headlines delivered to your desktop with RSS.