Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'd say that the primary functionality that is supplied by Backbone.js is in fact the event model. And yea, it's possible to code this by hand, because it's an indeed simple model. </p> <p>In case of Spine.js, a very similar library I'd say that the other feature that it offers is Class, a wrapper around javascript prototypes.</p> <p>That said, there are I think quite a few important caveats that you'd like to get right. These caveats are among other things:</p> <ul> <li>When exactly are your events triggered? <ul> <li>Is it like in case of Backbone.js detected automatically? </li> <li>OR do you want like in Spine.js to do that explicitly by calling save()</li> </ul></li> <li>If there are two functions triggered in response to an event and they receive a model instance: <ul> <li>Do they receive the same instance - i.e. changes done by one of them will be immediately visible to the other</li> <li>OR do they receive some kind of copies. If copies: <ul> <li>Will they react to future changes on the model,</li> <li>OR won't they</li> </ul></li> </ul></li> <li>The list goes on...</li> </ul> <p>There are surprisingly many things to get right. I'm definitely biased, because I find the choices done by Backbone.js awfully cumbersome. I clearly like Spine.js much better. However I'd encourage you to look for some nontrivial examples of use-cases for both libraries and to make your mind for yourself. </p> <p>It might be the right choice to go on and implement all of this yourself - Spine.js core is just 2KB of minified code. However I'd strongly encourage you to try to learn on others mistakes. There are plenty of things to get wrong in my opinion.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload