Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how is it useful for programmers?

 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi author,

I copy this words from http://www.packtpub.com/google-web-toolkit-GWT-Java-AJAX/book

in detail about this tool kit.

"You write your front end in the Java programming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML."

can you please more enlighten on that.. how it change the java code into javascript?

in what manner is it useful for the programmer?
[ April 03, 2007: Message edited by: Saif uddin ]
 
Prabhakar Chaganti
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GWT uses a Java to Javascript compiler. So you write your code in Java and the compiler will convert it to javascript code that runs in your browser.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why we need this type of compiler..?

I mean as Ajax is a set of technologies. and javascript is also included in the list of this?

so developer must have knowledge of javascript to playing around with AJax.
[ April 03, 2007: Message edited by: Saif uddin ]
 
Prabhakar Chaganti
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The idea behind GWT is to shield the developer from having to play around with javascript as creating browser independent javascript is non trivial, error prone and difficult to debug. This page gives you a good overview of GWT features:

http://code.google.com/webtoolkit/overview.html


thanks
prabhakar
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply..

now I going to read it and will be back after Coffee break!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Saif uddin:
so developer must have knowledge of javascript to playing around with AJax.

Yes. GWT shields you from having to program in JavaScript. You still have to understand the underlying parts (event handling) for things to make sense.

It's like code generation in IDEs or XDoclet. You have to understand how a session bean works even if you are unlikely to write one by hand.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:

It's like code generation in IDEs or XDoclet. You have to understand how a session bean works even if you are unlikely to write one by hand.


Yeah it make more sense to me..

how do you know that I am working on Code Generator?
[ April 04, 2007: Message edited by: Saif uddin ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that Jeanne thought that you were working on code generators
Only telling that you have to know what you're doing, like in XDoclet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic