Pages

Monday, April 20, 2009

Google Web toolkit, Why & How

Why Google WEB Toolkit....

                How long will you stay on a website solely made of HTML pages. The answer is yours.
AJAX is a very primary requirement for todays web sites. Making AJAX with the only help of JAVA Script is like coding on assembly language. So to reduce the developer's pain a number of JS framework is already on the web. First of all I am not that much experienced in AJAX or JS. Anyway I have used few JS frameworks. GWT is among them. And to me GWT is superb. Specially for its code management. JAVA is a very developer friendly language , I think. Just imagine you can control you java script and basic HTMLs with the power of JAVA. Actually GWT is a JAVA to JS converter. And it converts in source code level not from the java byte codes. Thats why it is very much faster. Converting JAVA to any other language from the JAVA byte code is rather easy. Like you can watch this video. They have made a JAVA to Iphone converter.


Which is not high performing like GWT. Another very nice feature of GWT is its browser compatible JS. My experience says GWT apps run fine on IE, Mozilla Fire fox and Google Chrome. This was a real headache in pure JS.
            

            

            You can easily create java classes for your pages and its better to make classes for you small page areas like components. You can build your own customized GWT components with only JAVA programing or with the help of external JAVA script. EXT-GWT  and Smart GWT are two very nice examples.


            Web designing on GWT is another interesting part. In fact GWT has done nothing for web designer. It is totally left over CSS. That is cool. So cook the food with JAVA and serve it over CSS. So the well known benefit of CSS is developer & designer can work separately.

            Thanks GWT for its RPC support. You can send receive about all java objects over RPC between the client, server. Need not to think about ugly XML parsing, URL encoding all sorts of thing. After all RPC is faster than its counter parts. Here I have just put the gist of GWT. In near future I will try my best to put few more examples. Enjoy GWT.

2 comments:

  1. Anonymous8:26 AM

    nice

    ReplyDelete
  2. Nice Blog...Very well written.
    But, I disagree to your point where you have pointed GWT as a "JAVA to JS converter". Actually, GWT is not a converter, it's a full-fledged compiler, it follows every steps that a compiler does (even the "expensive" code optimization step).
    Anyway, Iftee vaia, nice blog and the whole blog site looks marvelous...

    ReplyDelete