Slashdot Log In
Is the Google Web Toolkit Right For You?
Posted by
CmdrTaco
on Wed Jun 28, 2006 09:41 AM
from the sure-why-not dept.
from the sure-why-not dept.
An anonymous reader writes "The recently released Google Web Toolkit (GWT) is a comprehensive set of APIs and tools that lets you create dynamic Web applications almost entirely in Java code. However, GWT is something of an all-or-nothing approach, targeted at a relatively small niche in Web application development market. This article shows you what GWT can do and will help you decide if it's the best tool to use for your web development."
This discussion has been archived.
No new comments can be posted.
Is the Google Web Toolkit Right For You?
|
Log In/Create an Account
| Top
| 163 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Google takes more ground... (Score:5, Funny)
(Last Journal: Thursday August 18 2005, @08:44AM)
Mingling of server and client code is "unusual"? (Score:5, Insightful)
I think that's how ASP.NET components have worked for years too. So, I wouldn't say that it's unusual unless you're coming from a completely "my text editor is my development environment" world.
Re:Mingling of server and client code is "unusual" (Score:4, Funny)
(http://aerenhart.blogspot.com/)
Does it have an "I'm feeling lucky" feature? (Score:5, Funny)
(http://www.geocities.com/purpledinoz/)
Short answer: No. (Score:3, Informative)
In other words, if you want to make sure your site "just works", GWT isn't a good technology to use. If your management team is paying attention, that should pretty much stick a fork in this technology.
Accessibility? (Score:5, Interesting)
(http://www.pobox.com/~meta/ | Last Journal: Sunday February 29 2004, @09:19AM)
If not, using GWT for a corporate web site is just a lawsuit waiting to happen.
(*) This is not an idle question, I'm sincerely interested in real answers and pointers to software.
Re:Accessibility? (Score:5, Informative)
*Section 508 Standards for Electronic and Information Technology;
SubSection 1194
Re:Short answer: No. (Score:4, Insightful)
(http://www.philevans.com/)
Ever think that it's not always someone's *choice* whether they can use JavaScript enhancements?
P
Re:Short answer: No. (Score:4, Insightful)
Don't even get me started on *flash* sites...
GWT feels like GUI programming (Score:1)
(http://aymanh.com/ | Last Journal: Wednesday October 25 2006, @04:23AM)
Why I like YUI (Score:5, Interesting)
(http://ii.homeip.net/)
- it is a la carte
- it represents pretty advanced, human-readable Javascript, which has allowed me to learn advanced Javascript techniques
The first, a la carte, means that the entire web application does not need to be dedicated to YUI. Recently I incorporated a YUI DHTML window (Panel, in YUI-speak) into an existing ASP.NET application. It required only a few lines of Javascript and some HTML. Ditto for another application (JSF, this time), where I added an AJAX data lookup to dynamically populate sample values in a dropdown list. I love the DOM and Event libraries: they really clean up the cruddy job of adding small DHTML things to a website, regardless of how it's put together.
The second, that YUI is a learning experience, is also very important to me. I've come late to the DHTML game, and most books and tutorials on Javascript deal with the basics, and stuff like OO programming is either glossed over or omitted entirely. However, Javascript is a language that is suited to OO programming in a unique way, IMHO. By studing how the YUI toolkit works and seeing what Javascript is capable of, it has opened the doors for new ways of tackling problems and reducing the number of lines of JS code I write.
HBH
As if.. (Score:1, Funny)
As if GUIs in Swing or SWT weren't slow and clunky enough. Now Java developers have a slower and clunkier alternative. Yay!
-matthew
Feeling Inadequate (Score:2, Funny)
we just weren't right for each other (Score:2)
(http://thepreacher.cac2.net/)
haxe (Score:3, Interesting)
YAHOO UI Toolkit (Score:5, Interesting)
My issue was that I wanted a unified javascript library so we didn't have redundant code snippets all over the place and some way to standardize the development. So after a little searching, I found the Yahoo UI toolkit that is still in beta. It's a unified javascript library released under a BSD license that has been tested in multiple browsers.
No I have a unified library, tested in multiple browsers and standardized that all I have to do is drop into a directory and hook into the framework.
I know this is probably unrelated but since we were talking about toolkits, I thought this would be handy to mention this as well since it saved us a month of work.
Why not learn the tools instead (Score:5, Insightful)
Re:Why not learn the tools instead (Score:5, Insightful)
Expanding on parent's point, a lot of problems I see in my short time in web development is that too many people are getting into it not by learning basics (like how to build a well-formed XHTML/HTML document with DTD and such, or how to make an image swap sources onmouseover or whatever) but by diving straight into frameworks. I understand the want (and need, in some case) to make programming of all flavors more non-programmer friendly, but without that base foundation we'll end up with a bunch of forums full of "how do i make it do this" questions that are elementary in nature and, even worse, a bunch of web apps that are riddled with problems in security, UI, or other. There's no harm in asking questions, but when everyone is asking the same question that is answered in chapter 2 of any good HTML book, that's a lot of wasted time.
I'm not saying everyone needs to learn how to build Slashcode from the ground up using only Notepad, Mountain Dew, and a bag of Doritos, but learning the basics first then going to a framework to speed up your work on complex projects would seem like a better option. It will almost always be cheaper and faster to write simple things in the base language, but so many are so fixed on frameworks they wouldn't know how to do that.
Google Map's GWT API 1.1.5 (Score:1, Interesting)
Article misses the point a bit? (Score:5, Informative)
(http://ugweb.cs.ualberta.ca/~awolfe)
Also, just because GWT provides some server-side machinery doesn't mean you have to use it. GWT will happily make asynchronous calls to any old URL, so you can write your backend in PHP or Perl or C or whatever you like. Personally, I've been playing with GWT using PHP/SQLite as my backend (following Juan Hurtado's great tutorial [googlepages.com]). It works great, and since I'm already comfortable with Java, PHP and SQL, it doesn't require a steep learning curve to create very nice web apps.
That said, I will certainly be taking a deeper look at TFA later and perhaps following its example to learn how to use the Java server-side machinery. Could be interesting.
GWT vs. Echo2 (Score:3, Interesting)
Why GWT Isn't A Good Framework (Score:4, Interesting)
(http://blogtk.sourceforge.net/)
As a disclaimer, I'm a huge fan of Ruby on Rails, and not at all a fan of Java.
The problem with the GWT and other framworks like it as it ignores the reality that browsers today suck. IE's rendering engine is suckier than Monica Lewinsky holding a Dyson at the event horizon of a black hole. Firefox doesn't quite yet pass Acid2, but is as close to a reference platform as one can get. Safari shows promise, but it has a weak JavaScript environment that doesn't support things like ContentEditable. The whole problem is that the GWT assumes a much more stable platform than actually exists.
The real challenge for web application developers is that there are no frameworks (that I know of) that provide for things like fully semantic code, graceful degradation of capabilities, and full separation of content, behavior, and presentation. (For why that separation is important A List Apart has a great article on the subject [alistapart.com].) Not even Ruby on Rails gets this right by default.
GWT tries too hard to abstract the actual code that user agents see from the code the programmers create - and that level of abstraction just doesn't work yet. Just like trying to translate a passage in French to English and Japanese with a machine translator, the GWT tries to take Java code and translate it into a mish-mash of XHTML, CSS, and JavaScript - and the results are as mangled as one would expect.
Until someone comes along with a framework that creates clean, semantic code with full separation of behavior, presentation, and content, web application developers have to be mindful of their code and do a lot by hand. Frameworks can save time, but they also cause a trade-off in terms of code quality and compatibilty. The GWT goes too far in that balance IMHO, and isn't something I'd use to develop public applications. Like ASP.NET, it's too reliant on abstracting XHTML/CSS/JavaScript from what the programmers deal with, and that always leads to bloated masses of code that frustrate users and hog bandwidth.
Re:Why GWT Isn't A Good Framework (Score:4, Insightful)
(http://pyscrabble.sf.net/)
Mod -1: Trying too hard.
Seriously though, you say GWT tries to take Java code and translate it into a mish-mash of XHTML, CSS, and JavaScript - and the results are as mangled as one would expect. and then go on to say Until someone comes along with a framework that creates clean, semantic code with full separation of behavior, presentation, and content.... Isn't that kind of contradictory? If its spitting out xhtml, css and javascript, that seems like content, presentation, and behavior are all clearly defined.
Re:Why GWT Isn't A Good Framework (Score:4, Insightful)
OK, ignoring the fact that GWT uses Java as its initiation language (it could use Ruby or C++ or PHP) - I still have to disagree on a number of points.
Right, which is why something like GWT is nice because you don't really care that the browser sucks, you write your code and it works. Graceful degradation isn't really an issue in this case ... GWT supports a number of browsers identically (i.e. your code will run identically to the end-user). If you're looking for graceful degradation to plain HTML w/o JS, then that's a bit of a pipe dream, since you're not talking the same application. That's analagous to writing a GUI app (on Windows or OS X or Linux/GTK/Qt) and having it gracefully degrade to a console application. Last I checked, anything that's more than a simple app doesn't do anything like that, and for good reasons. Endless backwards compatibility is a case of diminishing returns and while it may be "nice", it isn't practical or economical.
Um, no. The results are a web-application that functions as you would expect. It is unknown if Google Calendar or Google Spreadsheet are using GWT, but according to Google, the pain they experienced writing Google Maps & GMail played a part in developing GWT - so those types of applications are certainly on the drawing board for GWT. I wouldn't call those apps mangled or anything along those lines. They're quite possibly best-of-breed.
I also disagree that Google's approach with GWT:
On the contrary, I think in reality, hand-coding, by the masses of programmers that cannot be experts at JavaScript and Browser Nuances, has already created bloated masses of code that not only frustrate users & hog bandwidth, but are also difficult to maintain, practically impossible to debug effectively, and a huge drain on an organization's resources. Its time to change that and I think GWT takes steps in the right direction. I haven't heard of masses of users being frustrated by Google Maps, Mail, or Calendar ... at least not because its bloated or hogs bandwidth.
Unobtrusive JavaScript (Score:2)
(http://craigbuchek.com/)
XML11 looks more promising (Score:2, Interesting)
application development, web interface (Score:2)
(http://www.music.mcgill.ca/~sinclair)
(Yes, most of my web experience comes from the days when it was just called DHTML..)
This is the first time I've peeked into a platform like this... it's really interesting how close it is to writing a GUI application, like in SWT or something. (Again, I've only done a little bit of SWT, since I don't prefer Java most of the time, but it definitely has its place.)
But I find it amazing how it seems totally incidental that it happens to use the web for rendering its interface. What it really makes me think of is the possibility of writing multiple back-ends for it. Imagine using it to write applications that can compile to both a GUI environment, using native Win32/GTK/Cocoa elements, and then also be able to easily re-compile to a web application. Not sure there'd be any point to that, come to think of it, but the idea sounds cool for some reason.
Or imagine writing an application which is totally local, but happens to use a browser for its interface. It could embed a mini HTTP server in it.. well, I know this has been done before, but this is the first time I've seen an API that actually makes the idea somewhat attractive to me. It would solve the multiplatform GUI problem by just using whatever browser the user happens to prefer.
Anyways, now if only I could use GWT from Python instead of Java..
(Same goes for SWT by the way.. the PySWT project isn't very useful yet. Sigh..)
Google Web ... (Score:3, Funny)
GWT Analysis (Score:1)
http://www.thinwire.com/thinwire_vs_gwt.html [thinwire.com]
GWT Interview (Score:2)
(http://www.discursive.com/)
Huh? (Score:3, Funny)
(Last Journal: Friday May 05 2006, @11:53PM)
There is an OO equivalent to spaghetti code, and it's fearsome.
Re:When I hear OO ... When I hear Java (Score:2, Insightful)
Thats my biggest beef with the way this kit works. The JSNI interface seems like a pure hack to start with doing things like embedding javascript code in a java file using code like the following:
I find these kinds of toolkits get you up and going quickly, especially if you are new. However, the first time you run into something the toolkit can't handle, the black box nature means your SOL.
Re:When I hear OO ... When I hear Java (Score:4, Insightful)
(http://benfrantzdale.livejournal.com/)
When I hear "code generator", I think compiler.
Re:When I hear OO ... When I hear Java (Score:3, Informative)
(Last Journal: Sunday November 11, @09:31AM)
There's plenty of unreadable, unusable OO code out there, as well as plenty of well performing Java.
Re:When I hear OO ... When I hear Java (Score:1)
(http://buddytrace.com/)
Re:When I hear OO ... When I hear Java (Score:1)
Ahem (Score:2)
(http://homepage.ntlworld.com/tim.wesson/ | Last Journal: Thursday October 18, @07:40AM)
There's not a lot of tolerace for criticism of corporations, is there?
I think that most coders feel the same way.
Re:When I hear OO ... When I hear Java (Score:2)
Java's performance isn't "poor" — as is frequently pointed out on this site, this is largely an outdated myth. As for not truly open source, it's a definate issue, yes, although there is open implementations [wikipedia.org].
Re:In all fairness (Score:2)
It's not like GCC was written by AT&T.