-justin
I dislike jQuery. I have criteria for what I consider a useful JS library.
Essentially all of them have reasonable DOM manipulation and easy animation
and things like that. Some have good reusable controls/widgets/behaviors.
But jQuery leaves you high and dry when you need to do things that are not
directly related to the DOM. If I need to retrieve a fragment of HTML via
AJAX and plop it into the page somewhere, I can do that with anything. If I
need to process a JSON response from the AJAX request to generate several
dynamic views based on the state of various form controls, however, it gets
a lot messier in ways that Prototype makes clean. If I have state to
maintain that doesn't live in the DOM, it takes more work with jQuery than
Prototype. Once you go beyond the DOM, jQuery is no longer your friend.
Because jQuery is so geared toward making it easy to manipulate the DOM,
however, it is easier for non-programmers to use and like. There are
discussions where I work about standardizing on jQuery because our HTML/CSS
guys can work with it more easily. Of course, when they need to do
something more complicated they will call on us, the programmers, and we'll
have to work in that part of the problem space where jQuery is no help at
all.
At some point, in my copious free time (ha!), I would like to learn jQuery
and Prototype at the source level (i.e. beyond using them as libraries) and
see how much work it is to build something that gives me the best of both
worlds. I suspect it will be much easier to add jQuery's convenience to
Prototype than Prototype's language niceties to jQuery, but it's a worthy
experiment. At that point, I might be in a position to build something that
really is the best of both worlds.
--Greg
I am begin to look diferents libraries: prototype, jquery, mootools, etc.
After some time I decide to use prototype because I feel what have
better documentation for beginer (can be better) like me. I just only
use AJAX. I am doing a application web (before use VB6) so no need
effects or maybe later.
My 2 cents.
ps. Sorry for my english ;)
2008/9/26 Diodeus <dio...@gmail.com>:
--
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
--
Sent from Gmail for mobile | mobile.google.com
And yet, this is a problem. Prototype should strive to be as good as jQuery
in terms of convenience for non-programmers. It isn't even difficult. A
good part of the simplicity of jQuery comes from the $() function returning
a "set" object that has a number of convenience methods for attaching event
handlers, hiding and showing, etc. to all of the returned elements. I
suspect that it would take very little to implement the same methods and
attach them to the array returned by Prototype's $$() function. I'm going
to work on it today.
> A big thanks to the core Prototype team for your work!
>
> -Laurent
--Greg
> >
>
Actually, I'm not sure it matters now. See here:
http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/
Looks to me like jQuery has gained enough momentum that my time is better
spent porting the Prototype functionality I want and need to jQuery. That
makes me really unhappy, but that's how it seems to have turned out.
> Cheers,
> Andrew
--Greg
Popularity means ecosystem, and ecosystem means reusable chunks of code you
don't have to write at all. If it's easy for your HTML/CSS developers to 1)
find plugins, 2) integrate plugins, and 3) design DOM structures suited to
scripting, everything is easier.
In fact, anything that makes it easier for non-programmers, particularly
HTML/CSS developers, to accomplish things and work smoothly with
programmers is worthwhile. If you and your HTML/CSS developers can spend
less time stepping on each other's toes, you win. If your HTML/CSS
developers can accomplish more at a lower cost (since they are almost
always cheaper than a programmer), you win.
If your HTML/CSS developers have to hand off all client-side scripting to you
then you spend your (more) valuable time setting up scripting-friendly DOM
and writing simple stuff. It might be only a couple of lines with
proto/scripty, but it still takes time and effort that could be at a lower
billing rate, not to mention the usual costs of communication.
> Karel
--Greg
Googlin' for "jquery" begets 7.73 million hits.
Dan