ADS BY GOOGLE
TOP LINUX LINKS YOU MUST CLICK ON


A Cup of AJAX? Nay, Just Regular Java Please
The idea is noble: instead of rendering an entire HTML page on each little change on the page

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? ) example 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 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)  Adobe  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.

Having said all this, I have to admit that 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.

posted Tuesday, 13 December 2005 12: 45 PM EST

About Yakov Fain
Yakov Fain is a managing principal of Farata Systems, consulting, training and product company. He has authored several Java books, dozens of technical articles. SYS-CON Books released his latest co-authored book , "Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters" in Spring 2007. Sun Microsystems has nominated and awarded Yakov with the title Java Champion. He leads the Princeton Java Users Group. Yakov teaches Java and Flex 2 part time at New York University. He is an Adobe Certified Flex Instructor and an Editor-in-Chief of Flex Developers Journal.

  Subscribe to our RSS feeds now and receive the next article instantly!
In It? Reprint It! Contact advertising(at)sys-con.com to order your reprints!
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS

ADS BY GOOGLE
An applet, a Java program that runs in a browser, often has to access the client resources. However,...
Social computing is no longer a casual activity: corporations are increasingly leveraging wikis and ...
You’ve heard about Web 2.0 Enterprise Mashups, you’ve seen the press, now you can see the real t...
Jeff Haynie will introduce you to Appcelerator’s open-source RIA platform. You will learn how Appc...
Three-letter acronyms (TLAs) are hardly new in Information Technology: EAI, ESB, SOA, BPM, BAM, ETL,...
ExaGrid Systems announced support for Vizioncore’s backup and recovery solution, vRanger Pro. Both...
jMaki has evolved from giving developers the ability to sprinkle AJAX into their web apps easily to ...
AJAX isn’t just for rich UIs and mashups anymore. Web 2.0 has infiltrated the enterprise workforce...
As a solution provider it is vitally important you don't get locked into a specific vendor’s solut...
As much as we like the term real-time, it has over time become too saturated to lend itself any use ...
DataCore announced that it has integrated the latest generation of Emulex high speed 8Gb/s Fibre Cha...
Technology's highest paid CEO currently is also America's highest paid CEO, namely Larry Ellison of ...
At Hummer Winblad we often joke that we focus on the "boring side of software." By this we mean that...
From Composable Services and Facelifting SOA to Real-Time SOA Systems and SOA For Parallel Computing...
SYS-CON Events, producer of Cloud Computing Expo 2009 East, to be held March 22-24, 2009, in New Yor...
Achieving an effective disaster recovery solution has always been difficult and expensive. Often com...
Melding a stable enterprise architecture with the right level of technical and organization transpar...
In a recent study, CIOs ranked "improving business processes" as their #1 priority for 2008. But the...
Desktop and application virtualization technologies are increasingly being used throughout the enter...
In this webcast you will see some examples of leveraging JBoss product suite in Enterprise Service-O...