The Source for Java Technology Collaboration
User: Password:



John Reynolds

John Reynolds's Blog

Monolingual web toolkits: Phobos vs. GWT

Posted by johnreynolds on October 16, 2007 at 06:29 PM | Comments (5)

The JVM is well on its way to becoming a multi-lingual environment with support for Java, Javascript, JRuby, Groovy, etc. but I have to admit harboring concerns about polyglot programming within a single project. If at all possible, I prefer to use one language per project, but with browser-based applications that's been very tough to do. I've usually ended up with Java on the server side and Javascript on the client.

Fortunately, I can now dump either one language or the other... If I want to ditch Java I can pledge my allegiance to the GlassFish Project Phobos. If I want to ditch Javascript I can pledge my allegiance to the Google Web Toolkit (GWT).

Phobos looks really, really neat... you should really check out their screencast... but I have not had the bandwidth to even play with it. GWT also looks really neat... some of my colleagues at work have published their favorable experiences with GWT versus Dojo, and it certainly looks compelling... but once again I haven't even played with it yet.

Is it really worthwhile to use a monolingual tool? I think it is, particularly when you are trying to learn how to program. Once you've mastered one programming language it's fairly easy to pick up another, but mastering two (or more) at once seems to me like a bad idea.

As I might have mentioned before, I'm interested in teaching "normal" people how to program. Back in the good old days before that darn-old Internet things were pretty simple... I remember teaching a neighbor "enough" Visual Basic to "get by" in a few evenings. Learning "enough" to build a browser based application is dreadful by comparison...

I am thinking that Phobos might change that... Javascript seems simple enough for anyone to grok... but maybe I am kidding myself. Even Javascript has a lot of cruft.

On the other hand, GWT does liberate Java programmers from all of those nasty browser inconsistencies. For those who've mastered Java it seems like a natural... but Java seems like a poor choice for a first language to teach someone.

What do you think? Teach them Java or teach them Javascript?


(cross-posted at Thoughtful Programmer)

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Don't forget a very mature product, "Helma" http://www.helma.org.

    Posted by: kevinethridge on October 17, 2007 at 03:41 AM

  • I used an old version of Directors Lingo scripting language as an introduction. The person I was teaching had a lot of fun and got the basics of variables and loops and such. Now I've got him using NetBeans ( using a the GUI builder ) and he seems to be having fun and making progress. Learning programming is not really about the language anyways, it's about how to go about breaking a problem down into computable blocks.

    Posted by: aberrant on October 17, 2007 at 08:16 AM

  • aberrant,
    I agree with your statement: "Learning programming is not really about the language anyways"
    But it sure would be nice not to distract them with esoteric cruft that they don't need to know (yet).

    -JohnR

    Posted by: johnreynolds on October 17, 2007 at 08:47 AM

  • Well unless you have that rare student who goes beyond the coursework, then they only know what you tell them. Is there something particular you see as cruft that you must teach?

    Posted by: aberrant on October 17, 2007 at 10:46 AM

  • I will just say this...

    GWT's power isn't Java the language, though that gets you call kinds of killer tools (and the GWTShell app is a technical tour de force)...

    GWT's power is a liberation from JavaScript, which, frankly, blows. You might do "GWT" in any other language, but the meta-programming model, the dedicated compile targets, "pay for what you use" compilation, and static resolution are what earn GWT the laurel in my book.

    Posted by: kebernet on October 18, 2007 at 09:52 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds