views:

764

answers:

5

By now, I'm sure a lot of people will agree jQuery is pretty much the standard JavaScript framework (or as much as one can ever be). I mean, it has been adopted by Nokia and Microsoft.

Now that Google has put out it's own framework, is it worth my time learning it? Do you expect good adoption of it because of the Google name?

A: 

The library was released on 11/5 - a week ago from today.

This is not enough time for anyone to make a judgment on adoption, ease of use, etc. No one can answer your question because no one knows the answer yet.

matt b
Sorry - I won't delete my question, but hopefully when some people have invested some time in it, they will be able to come back and answer.
alex
Thanks anyway for introducing us to this new JS framework.
Murali VP
+3  A: 

Most of Closure consists of a set of tools to make programming Javascript easier. These tools should be compatible with JQuery. Only a small part of Closure competes with JQuery and that is the library. The rest should be useful no matter what library you use.

That said, I think I would wait to see if this gains traction. Google has published a lot of tools and API stories over the years and only a handful gain traction.

Steve Rowe
+10  A: 

The question is, adoption in what context?

If you're building large, custom applications which are Javascript intensive (such as Gmail) and need the performance and speed that Closure seems to offer, then the Closure suite of tools would be a very useful framework.

However, if you're a one-man-band or a small company building lots of simple public websites with the ocassional Ajax call and UI effects (which is most people), then Closure doesn't make as much sense. I think most developers in this context won't see much benefit in using Closure, and will stick with jQuery (or what-have-you) because it will let them get things done quickly.

Different tools for different situations, IMHO.

Sam C
Good answer, thank you. +1 . So it seems Closure is a more enterprise solution? I might look into it soon if doing a RIA.
alex
That's my impression, yes.
Sam C
The funny thing is that it isn't fully optimized. There are even places with for (i = 0; i < some_array.length;i++). Maybe not that important, but I did expect that Google would optimize everything down to very last bit, especially since they have used it internally for years. But the whole package overall looks quite nice, especially the way it's structured.
Maiku Mori
I don't agree - good JS RIA applications can be built with jQuery also. Also note that jQuery is a toolkit whereas Closure is a framework i.e. something that strongly influences the structure of your code.
Christopher Hunt
I should add that I don't think there's a one-stop-shop for building JS RIA applications and that you end up using a number of toolkits and possibly frameworks.
Christopher Hunt
+1  A: 

Sam C is right. My opinion to jQuery is simple: It is very well tested, it is very simply to understand and there are also a lot of plugins out there, that cover most needs. Like a simple but jet migthy Autocomplete.

MaikL80
A: 

Let me suggest something out of the box: Try GWT, its made by google, is based on java, supported by IDEs like eclipse and is catching on fast, I made my personal site in GWT and ppl tell me that they didnt believe a sites could be made like that.

of course, if you need it only for basic reasons such as a screen validation or something similar, i would suggest to go for a tried and tested technology..

Salvin Francis