News for hackers. Stuff that matters.
Re: Sproutcore vs jQuery +backbone.js by mhd on Wednesday January 19, 2011 @10:45AM (#2120045)
How dependent is backbone on jQuery? I see that the docs mention zepto as an alternative to jQuery for backbone.view, how hard would it be to extend that to other libraries?

jQuery sits pretty much at one end of the libraries spectrum, being mostly a DSL about dom manipulation. So if you want a bit more structure by using e.g. YUI or MooTools, would there be any big issues?

Re: Sproutcore vs jQuery +backbone.js by nzjames on Wednesday January 19, 2011 @04:48PM (#2121402)
I've got to +1 for YUI3.

I started researching the space for building real Javascript applications fully biased on doing it with x and JQuery. But after a bit of research and prototyping I was sold on the quality and coverage of YUI.

- It has simplified DOM selectors like JQuery

- A solid Base class to extend for everything

- A fully extensible widget class/lifecycle

- Datatable has just hit beta http://developer.yahoo.com/yui/3/datatable/

Re: Sproutcore vs jQuery +backbone.js by gregwebs on Wednesday January 19, 2011 @11:00AM (#2120117)
someone forked a MooTools version, so it is doable.

Zepto is a lighter-weight jQuery compatible library- so you shouldn't feel as bad about having it as a dependency. It might also be possible to have a stripped build of jQuery.

Re: Sproutcore vs jQuery +backbone.js by ryankirkman on Wednesday January 19, 2011 @06:29PM (#2121750)