The No.1 i-Technology Magazine in the World !
   
 

      ES no BS
This is a personal blog of Yakov Fain       My son's animations and music         No BS IT podcast      Америчка




Archives

««Sep 2010»»
SMTWTFS
    1
2
34
567891011
12131415161718
19202122232425
2627282930

RSS Feed








Subscribe to these blogs

A cup of AJAX? Nay, just regular Java please.

posted Tuesday, 13 December 2005

These days everyone is talking about AJAX. It's supposed to be a cool way of creating Web applications.

The idea is noble: instead of rendering an entire HTML page on each little change on the page, it’s much better to send an asynchronous request that will  get the data for you and refresh only the relevant portion of the screen. Every author writing on AJAX is giving the same (the only? ) examples where this technology is being used: Google maps and email. (BTW, I’m a little sick of these examples). Since I’m not going to be helping Google in improving their maps, I’d like to see some real-world examples implementing  this technology.  Ajax proponents will immediately come with this exciting example of how great it is to refresh some  screen info as the user enters character in a text field. And here's  a sample conversation that might have happened between an imaginary  AJAX supporter and myself.

  •  See, I’m just typing the letters of the person’s name, and as I type it prompts me with all potential candidates like in Microsoft Outlook
  •  Wow! I like it… as long as you do not have to be a rocket scientist to program this functionality. But wait a minute, do not you think that any entry level Visual Basic/PowerBuilder/Java programmer can do the same thing easily? AJAX applications have to rely on JavaScript, assume the expert knowledge of this not-so-interesting language, different Web browsers may give you different serious issues, may not even always report the problems in communication between you browser and the server, yada-yada-yada..   
  • Yeah, but we want this functionality under the Web browser.
  • But what about using Java Web Start (JWS) to launch the full-fledged Swing clients? They can easily process events, work the same way under each operational system?
  • Yeah, but what if your users  do not have   the JVM?
  • But JWS can download it automatically for you.
  • Yeah, but what if you are Google, Amazon or EBay and want to have a very thin client.

OK, now we’re talking.  I can agree that big Internet guys can and should invest some serious dough into supporting screen-refresh-on-mouse-move in HTML-based screens. But when it comes to a regular Intranet business application,  when the users/browsers/platforms are known and  when the  cost of the project development matters, I’d stay with a fat client written in Java, or (if you like a fancy GUI) Macromedia’s Flash or Flex.

Many vendors  are happy to offer you a tool to simplify AJAX development, because it’s the right momentum to do so. But development is just the beginning. What about production support? I have a gut feeling that starting an Ajax project is like one way street: it won't be easy to  go back. The users will be more and more demanding, and you'll be spending  most of your time on adding more bells and whistles to the GUI instead of solving  business problems.

Today's  Business Week has published a surprisingly shallow article called "Java? It's so Nineties".  First, a former Sun's employee explains that LAMP is the way to go. After that, they say that the number of published books in Java is 4% off this year while sales of AJAX books is up 68%. Sure, if last year there was just one AJAX  book and now there are three of those, we can even talk about 200% increase. I guess, it's hard to write about programming just by putting together several  search results from Google without having the real-world indusrty experience.

Having said all this, I have to admit taht I also include the talks on AJAX in my Weekend With Experts seminars, because it’s a buzzword and people want to hear about it, but as of today, I’m not going to invest my time in mastering this technology. I’m staying with the good old Java.

links: digg this    del.icio.us    technorati    




1. Mani murugan left...
Wednesday, 14 December 2005 7:55 am

Need information about ajax


2. Lena Aleksandrova left...
Wednesday, 21 December 2005 6:00 pm

Damn! I enjoy reading you! And in fact all the articles of yours I've read so far (here and there, mostly in JDJ) are like you are reading out of my mind and putting it in words! Thanks.


3. anlat.net left...
Friday, 6 January 2006 9:06 pm :: http://anlat.net

Thanks , excellent..


4. Sebastien Brunot left...
Friday, 20 January 2006 5:47 am :: http://www.octo.com

So, you're thinking that there is only ONE technology eligible for rich client in intranet business application ? A kind of "silver bullet" ?

Maybe you're right (against computer & software history), but i have the feeling that you'd better get interested in BOTH RDA (Rich Desktop Applications), RIA (Rich Internet Applications) and ROA (Rich Office Applications) if you want to get a chance to fullfill user requirements in the future...


5. Jim Villano left...
Tuesday, 31 January 2006 1:46 pm :: http://www.insitechinc.com

I agree AJAX is not the panacea that the RIA market seems to be building it up to be.

You might be interested in knowing about a standards based Thin-Client Java Swing framework that can do what AJAX does and so much more-- simply because it uses a real programming language on the client rather than JavaScript. The product is called XTT - Smart Web Clients for Java.

XTT based applications really do behave as thick-client solutions but because of the XTT Framework they can be deployed in a Zero footprint or ultra-thin client depending on your needs. Within the XTT Framework we provide data-binding to both relational databases and objects which abstracts away the pain of complex development and enables developers to focus on implementing business logic.

XTT provides a VB-like development environment for Java Swing Client/Server applications that are ultra-thin and can be easily deployed over the Internet. http://www.insitechinc.com


6. backgammon.gen.tr left...
Thursday, 2 February 2006 5:03 am :: http://www.backgammon.gen.tr

tanks


7. punkgf left...
Tuesday, 11 April 2006 10:14 pm

From software dev point of view, I love java technology much better than ajax...Programming in ajax to me is so stupid. However, from users/business point of view, I've to say ajax application wows the clients/stakeholder more...


8. James left...
Monday, 24 April 2006 11:29 am

I was programming what is now called "AJAX" back in 1999. It was a painful experience then and things don't appear to be much easier today.


9. can left...
Thursday, 27 April 2006 5:19 pm :: http://www.tavla.bz

thanks


10. Tim left...
Tuesday, 18 July 2006 4:37 pm

This is not a competition. No one says you have to write Google mail just to get the effects of AJAX. A little AJAX can help with repeated reloads and just slightly increases smooth communication with the user. Java's webstart is a joke. Applets will never fly again. Java & Javascript work in different places and are not in competition.