Can I ask why you discounted the other frameworks (particularly YUI)?
--
Jamie Neil <ja...@gpmd.co.uk>
GPMD <http://www.gpmd.co.uk>
* There is a lot more active development happening on jQuery when compared to Prototype/Scriptaculous.
* jQuery has a more organised and active plugin-development community, with a plugin repository on the jQuery website.
* jQuery is a more focus on UI development, whereas Prototype seems more focused on language extensions. UI development is what we, as a project, need.
* jQuery is about 1/3 the size of Prototype/Scriptaculous, when factoring in gzipping & minification.
* jQuery client-side performance is better.
* Since we're currently running on a hacked, old version of prototype, it's going to be easier to incrementally roll out a migration to jQuery than it would to incrementally roll out an upgrade of prototype. And incremental roll-out is going to important in actually seeing this through to fruition.
In addition to the move to jQuery, we would like to put some effort into improving the "sapphire side" of the javascript infrastructure:* A nested requirements parser for javascript files, so that you don't need to list every single dependency as a separate Requirements::javascript() call.* A javascript concatenator/minifier, so that all of the script files get mashed into a single download.
* More standardised support for transmitting JSON and HTML-snippets to the client, so that we don't need to make this up from scratch every time.
Mat Weir
one big plus we had on the board for jQuery is a rather large centralized plugin repository,which enables us to build (mostly website-related) widgets in a quick and consistent manner.its ui-project (http://ui.jquery.com/) is currently more refined than prototypes similiar efforts (http://prototype-ui.com).
the bigger picture here is that we start off with a plan for rearchitecting the cms-specific javascript,and website-functionality like form validation into more self-contained componentsthat can be used to build great web applications (like we started with the tree control).this is no "side-effect" of choosing jquery over prototypejs.
in that light, choosing a new base library is a secondary choice (and comparable workload on the long run).we're gonna see more use of external components within the cms module, where we're also consideringhigher level frameworks such as extjs/yui/dojo. this means we're not actually rewritingevery piece of javascript we currently have, rather than trying to replace it withexisting opensourced components.
one big plus we had on the board for jQuery is a rather large centralized plugin repository,which enables us to build (mostly website-related) widgets in a quick and consistent manner.its ui-project (http://ui.jquery.com/) is currently more refined than prototypes similiar efforts (http://prototype-ui.com).
I think it's important to put this in perspective. Sure, ui.jquery.com is better organized at the moment, but from a quick browse through Ajaxian, there seems to be about the same amount of developments in both the worlds of jQuery and Prototype. This coupled with the fact that your stated outlook is for the next 2-3 years, it's reasonable to suggest that something like prototype-ui.com will become an extremely good central repository. I think it's important to mention that a good portion of the ui.jquery.com stuff is in Scriptaculous.
the bigger picture here is that we start off with a plan for rearchitecting the cms-specific javascript,and website-functionality like form validation into more self-contained componentsthat can be used to build great web applications (like we started with the tree control).this is no "side-effect" of choosing jquery over prototypejs.
I don't quite get the "no side-effect" comment here?
this means we're not actually rewritingevery piece of javascript we currently have, rather than trying to replace it withexisting opensourced components.
So what exactly is the plan? How are you planning on implementing these changes?