Spine.js vs Backbone.js
hjortureh.tumblr.com
hjortureh.tumblr.com
is 2.6k smaller
is 7k and still split into multiple files
doesn't have collections
by default doesn't verify that changes were preserved
must use 'id' for object identifiers
includes a tiny subset of underscore
is written in a functionally equivalent but syntactically
different variant of JS that requires additional tooling
... I'm unconvinced. Do yourself a favor and use backbone. Strangely enough Spine models generate a client identifier that is set on the id before saving to the server and is overwritten as the model is synced for the first time. This is in my opinion very confusing and only increases the likelihood of introducing bugs.
I'm surprised he did redress this at the summaryEDIT: Backbone/Spine target different use cases than KnockoutJS, but KnockoutJS seems to target the more relevant ones.
I haven't done much GUI programming, so I'm not familiar with the classic definition of MVC. KnockoutJS's MVVM (really V-VM) is very clear and I love it.
KnockoutJS would benefit from the addition of Models (in order to make it a 'framework'), but I'm 90% more productive right now and am certain that KnockoutJS will evolve to include Models.
From the conclusion: "...when the key thing is simplicity, file size or CoffeeScript integration choose Spine. In most other cases [use] Backbone." Simplicity, however, is highly subjective, and certainly from reading the article I saw no clear differences. As for Coffeescript integration, as anyone who's tried will attest, Backbone integrates perfectly with Coffeescript. And finally, the articles treatment of file size was deeply confusing as to which was actually smaller but at worst the difference is only a couple of kb.
In short, there's really not a lot of difference here, which makes it all a bit pointless, I fear.
Looking at the following Spine methods, Spine.Model.sub, configure, I cannot even make an educated guess what they do.
All you need to know are, init, create, save, find.
Backbone is more famous though, I don't know why.
Someone failed at math or failed at making that sentence understandable...
Backbone is bigger ( 5.6k ) because it depends on the utility library Underscore.js ( 4k ) that makes up for some of Javascript missing features.
What do you mean "really referring to ID" ? Is that different to id (other than case)?