Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sproutcore 2

Sproutcore 2

Avatar for Thomas Reynolds

Thomas Reynolds

October 13, 2011
Tweet

More Decks by Thomas Reynolds

Other Decks in Programming

Transcript

  1. CLIENT-SIDE APPS • Must have STATE - Logged in? Current

    date? • Must be INTERACTIVE - Events effect the STATE • Must be CONSISTENT - On-screen data is always up-to-date • Must be MAINTAINABLE - No more 2000 line jQuery files • Must be FAST - We’re competing with Native Thursday, October 13, 11
  2. SPROUTCORE SOLUTIONS • SC.Object (Model) • SC.View and Templating Engine

    (Handlebars) Touch-aware, Data Binding and DOM Updates • SC.Controller Manage State, Stay Consistent Thursday, October 13, 11
  3. ET CETERA • Sproutcore RunLoop Batches all changes (new values,

    DOM updates, etc) to run at once. Updating 5 items in a list runs 1 DOM update, not 5. • Handlebars Automatic Binding Variables references in templates are ALWAYS up-to-date • Built on jQuery Thursday, October 13, 11