[thelist] Javascript Frameworks

Barney Carroll barney.carroll at gmail.com
Sat Nov 20 12:06:48 CST 2010


Regarding templating/modules — I've never been too big a fan of jQuery UI, which purports to sort out the latter half of that equation — the components have a massive classitis which is dependent upon styles and scripts that aren't necessarily wired in right (seeing jUI module markup in a page without the associated scripts is a tragedy I've seen too many times).

I've been using the official jQuery templates plugin (soon to be built into jQuery core) for a bit now and I've got to say — it's fantastic. Really helps keep the MVC methodology flow naturally, building required markup the right way with the right customisations etc.

I was previously pretty enamoured of John Resig's tmpl, but it doesn't scale very well and the freedom to perform (in theory) any kind of JavaScript logic within templates too often led to lazy thinking and inscrutable error returns — the new MS jQuery template plugin solves all that while allowing nested templates, which used right provide massive power for dynamic markup injections. The restrictive syntax appears unnecessarily limited and verbose at first, but once you get into the flow it's a boon.

Sent from my iPod

On 20 Nov 2010, at 17:48, Olivier Percebois-Garve <percebois at gmail.com> wrote:

> Some people prefer cocacola, some others pepsi.
> 
> As jquery is currently the cocacola of the js libs, you are more likely to
> have to work on it, more likely to find people experienced with it,
> more likely to find code built on top of it.
> 
> jQuery's components are : 1. selector engine 2. dom manipulation&event
> handling 3. ajax 4. animation
> 
> They are all sweet and simple to use, which explains the success of jQuery
> against competitions.
> That said, these bricks are not sufficient when you have to scale up your
> stuff and build a real webapp,
> where you'll need to have some sort of mvc, which means to have at least a
> templating engine, and probably dependency management, oop layer, widget
> system...
> dojo and mootools already provide at least partially that (I dunno exactly
> inhowmuch), and for jquery you'll have to add these pieces by yourself.
> http://alexsexton.com/?p=106
> http://blog.rebeccamurphey.com/on-rolling-your-own
> 
> Anyway, all these libs are now mature, some of them used to have real flaws
> in the past, such as extending the native js objects, but now all that sort
> of things has üretty much been fixed, so ou are quite safe to use any of
> them, if you have the freedom to choose.
> 
> -olivier
> 
> 
> On Sat, Nov 20, 2010 at 5:47 AM, Steve Clason <stevec at topdogstrategy.com>wrote:
> 
>> Simon MacDonald wrote:
>> 
>>> Anyone had any experience of using JQuery vs Mootools - do you have any
>>> views about which Javascript Framework is the best, or if you have a
>>> preferred one.
>>> 
>> 
>> I've used both, jQuery lots more than MooTools. I think someone already
>> mentioned they were written to serve different purposes. jQuery makes
>> JavaScript easier and more efficient to write, MooTools provides a
>> JavaScript OOP interface, making it easier (if you understand OOP) to write
>> and economical to use for large applications.
>> 
>> Wordpress "bundles" (as someone said) jQuery and Joomla "bundles" MooTools,
>> and since those are the platforms I develop for mostly I found myself using
>> both, so set about to learn them both thoroughly (still working on that).
>> 
>> I believe you can use jQuery pretty well without really knowing JavaScript
>> and that is not the case with MooTools, and, also mentioned, there are loads
>> of extensions written for jQuery and many more users.
>> 
>> So my advice, FWIW: stick with jQuery unless you're stoked on OOP and
>> desperately miss it when using JavaScript. Consider MooTools for a next step
>> once you've gotten comfortable with jQuery.
>> 
>> 
>> --
>> Steve Clason
>> Boulder, Colorado, USA
>> (303)818-8590
>> 
>> --
>> 
>> * * Please support the community that supports you.  * *
>> http://evolt.org/help_support_evolt/
>> 
>> For unsubscribe and other options, including the Tip Harvester
>> and archives of thelist go to: http://lists.evolt.org
>> Workers of the Web, evolt !
>> 
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt ! 


More information about the thelist mailing list