Slashdot Mirror


Open Source AJAX toolkits

twofish writes "InfoWorld columnist Peter Wayner recently reviewed six of the most popular "open source" Ajax toolkits. The article sets out to see if they are enterprise ready in comparison to commercial products such Backbase, JackBe, and Tibco's General Interface. The six open source projects covered were selected because each has a high-profile in the developer community and support of one or more stable organizations. " The toolkits covered are:
  1. Dojo
  2. Google Web Toolkit
  3. Microsoft Atlas
  4. Open Rico and Prototype
  5. Yahoo AJAX Library
  6. Zimbra Kabuki AJAX Toolkit


Whilst the definition of open source is broad, the round-up is quite helpful.

16 of 147 comments (clear)

  1. "Open source?" by cbiffle · · Score: 4, Insightful

    This column uses an interesting definition of Open Source.

    From the article:
    Microsoft's Atlas may not be open source -- the license includes terms that would rankle a devotee -- but the code you create with the system is yours to license as you like, and you'll be able to create Atlas apps with few practical restrictions.

    Oh. Is that what Open Source means? That I can create apps with it and license them how I like? Well, crap, Visual Studio must be open source too!

    Last I checked, neither Atlas nor GWT were open source in any sense of the word, though at least GWT will run on real servers.

    1. Re:"Open source?" by achacha · · Score: 4, Interesting

      The only reason large corporations push some toolkit as "open source" is because:

      1. It's a crappy product that their marketing people cannot justify as promotion cost
      2. There are better free products
      3. They are trying to get their foot into the niche so they can then charge for the "Professional" version
      4. They don't understand the space yet

      This is common for Microsoft and now becoming common for Google.

      Sadly AJAX is still the "silver bullet" of web based companies and the buzzword of the moment. So many companies are using AJAX for the sake of using it despite the fact it is not applicable to the ir use case; sometimes it is easier to wedge something in and use a buzzword to sound cool and relevant.

  2. Java != Javascript by andrewman327 · · Score: 4, Interesting
    From TFA: "[...] JavaScript is pretty close to a superset of Java[...]. It's not complicated to strip away some typing information from the Java code and end up with something that resembles JavaScript."


    This is in response to Google's toolkit, which allows users to code in Java instead of Javascript. I think this feature is a real winner to Java coders. Who wants to code Javascript when you can use Swing? Regardless of what TFA says, there is a difference between the two programming experiences.


    In summary, if you are already proficient in Java, Google is the way to go.

    --
    Information wants a fueled airplane waiting at the hangar and no one gets hurt.
    1. Re:Java != Javascript by StarvingSE · · Score: 4, Interesting

      The author of TFA is just dumb and doesn't know what he is talking about. First he says that Microsoft Atlas is open source. Then, it sounds like he truly believes that Java and Javascript are related in some way. Besides some similar syntax, they are both mutually exclusive.

      when are people going to realize that Javascript and Java share only a name???

      --
      I got nothin'
    2. Re:Java != Javascript by andrewman327 · · Score: 4, Interesting
      The confusion of Java and Javascript is one of my biggest pet peeves in computer science. I am fairly proficient in Java, but I still have to look up which command to use the once a year I actually write in Javascript. Google's engineers worked hard to design a system to convert Java into another format only to have this journalist completely disregard it.


      It's times like these that I am glad I get to tag articles.

      --
      Information wants a fueled airplane waiting at the hangar and no one gets hurt.
    3. Re:Java != Javascript by Selanit · · Score: 4, Interesting

      An early development version of JavaScript was code-named "mocha." All the way through the old 4.x series of Netscape Navigator, you could access the JavaScript console by typing "mocha:" in the address bar. How I wish they had just adopted that name for the language as a whole! It would have prevented so much confusion.

    4. Re:Java != Javascript by larry+bagina · · Score: 4, Interesting

      Mocha was renamed to LiveScript, which was then renamed to JavaScript (and later ECMAScript). "JavaScript" is actually a Sun registered trademark. When JS first made it's oh-so-buggy appearance, I thought Netscrape was trying to jump on the Java hype, but I think Sun paid them to change the name.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

  3. Erm... by savala · · Score: 5, Insightful
    If you want to add AJAX to the magic collection of buzzwords supported by your Web site (and who can resist the siren call of the latest buzzword?), then you have two major options: purchase a proprietary package or experiment with open source libraries.

    Or just write the ten lines needed to do XMLHttpRequest calls yourself (there, that's the AJAX part taken care of), and for all other effects write your own functions just like always (copy/paste from your personal library and adapt), so you don't have to deal with bloat, nine out of every ten functions being unneeded, and far too many levels of abstraction and generalization, and have the benefit of actually being able to quickly debug the script when you encounter a problem!

    The only organizations where these toolkits might be useful are the really really large ones where there's a team that can dig into the framework and basically "make it their own". Everything smaller, using occasional contractors to maintain the code, benefit far and far more from simplicity, readability and maintainability than from dubious-quality top-heavy frameworks with lack of code-level documentation and thousand and one edgecase-bugs. (Spoken like someone who's had to trace such bugs in the mess of prototype and scriptaculo.us; I've only _looked_ at Dojo, Rico, Yahoo and Zimbra (and not at all at the other two), but my impressions were that what they made up in better code quality, they lost in bloat.)

    1. Re:Erm... by slindseyusa · · Score: 5, Insightful

      I used to agree with this, until I spent some more time looking into it. Certainly XMLHttpRequest is the most powerful aspect of Ajax and it is easy to use. But Ajax generally comprises much more than that. The Dynamic HTML part can get quite confusing, especially across browsers. Look at the examples of what some of these projects can do. They are certainly big and sometimes bloated. I'm still struggling with that part as well, but I don't have the time to figure out all the details when a toolkit can handle that for me. It's no different than using a high level language and libraries, or should I write all my code in Assembly?

    2. Re:Erm... by saltydogdesign · · Score: 4, Insightful

      In my experience, prototype and Dojo are both very stable at this point, far more stable than would be any comparable library of my own making, as I don't have a team of developers or a large body of users available to test it for me. You think there's a thousand and one edgecase bugs in prototype? How many are in your personal library? I'd far rather rely on something that has been seen and used by a thousand people than something that's been seen and used by one.

      As for the usefulness of these toolkits, weighing in at 53k (considerably less if you were to use any of the js compacting methods available out there), I find prototype to be an enormous time-saver, and the code saved in my applications goes a great distance toward offsetting the one-time 53k download for users of my websites.

      Look, if I took your logic, the next time I wrote an OS X app, I'd write it from scratch in C, without the benefit of the Mac frameworks, and cut and paste from "my own personal library." And I'd probably want to compile it by hand too -- God knows what kind of code the compiler is actually generating, right?

      There is a tremendous advantage to abstraction and generalization -- indeed, we'd still be coding ones and zeros if we didn't have it. Sure, you can take it too far too fast, but as one who has done a lot of coding with javascript since not long after its inception, I can tell you that unless you're not doing anything much more complicated than rollovers, it's time to move up. Whether you want to do that with community code or your personal collection is up to you, but I'd like to have a little free time at the end of the day.

      --
      // This is not a sig.
  4. DWR by kevin_conaway · · Score: 4, Informative

    If you're doing Java/J2EE work, you should really have a look at DWR

    It makes it disgustingly simple to expose pretty much anything as AJAX calls

  5. Spelling mistake in Summary by HugePedlar · · Score: 4, Funny

    "Whilst the definition of open source is broad, the round-up is quite helpful."

    Hemos appears to have misspelt "incorrect" as "broad".

    --
    Argh.
  6. I've just implemented my first AJAX site... by Toreo+asesino · · Score: 4, Informative

    Using Atlas for asp.net (http://atlas.asp.net/). Fantastic framework; unbelievably simple.

    I took a normal asp.net form I built for an ordering-page (lot's of postbacks for updating various basket options, etc, etc), wrapped it in an atlas XML container (all of 10 seconds work), and Bob became my uncle - the entire thing was AJAX enabled, doing lightweight postbacks & updates instead instead of the usual full-page postbacks you normally get with asp.net page-events.

    And all the JS is cross-platform too - IE, FF, Safari, etc (allthough, sadly, no Opera support just yet).

    And the best thing is, for all you JavaScript haters is turning off JS in the browser just meant the page automatically reverted to full-blown postbacks instead; thus not limiting accesibility.

    Oh, and I understand you can link php into Atlas too, but I'm guessing there's other stuff out there for php aswell.

    --
    throw new NoSignatureException();
  7. A better review (w/ actual code samples) by jbellis · · Score: 5, Informative
  8. Just did this myself by slindseyusa · · Score: 5, Informative

    I just went through and evaluated most of these myself in the past week because of a new work project. Dojo is by far the best when looking at building a real web "application". The others have limitations (such as Google's toolkit which requires you to write your code in Java) or are focused too much on "flashy" stuff. Dojo provides dialog boxes, windows, an editor, and more. It still has bugs and is an early version, so you need to consider your audience and time frame. For example, I had a problem with FF 1.0.7 (even though they say it is supported) but I only need to support FF 1.5 and Safari 2. I'm building a complex web app for an internal audience and I can guarantee they'll have one of these 2 browsers. Still, it seems to have broader support than some of the others toolkits. While I'm jsut starting with it, I've been happy so far. There's little documentation but the examples are good enough to get you started.

  9. Yahoo YUI Toolkit by DeionXxX · · Score: 4, Informative

    Personally I think the Yahoo YUI Toolkit is the best framework out there. It is commented very well, it is 100% cross browser compatible (they test on Opera, Firefox, Netscape, IE etc). It is fully supported by a team of engineers. They provide several versions of each script, so you can build your site with the -debug script, move to the normal script, and then when putting it on a live server, you include the minimzed script which is much smaller.