News for hackers. Stuff that matters.
Re:Backbone vs Knockout by jashkenas on Tuesday November 22, 2011 @05:59PM (#3267836)
Hey -- it's great to have the discussion. You describe a "nice abstraction on top of jQuery event bindings"... I'd be very curious to know, without any particular implementation in mind, what would you consider to be an ideal API to work with in JavaScript, to control these pieces of HTML UI? Do you have any (pseudo)code you could share?
Re:Backbone vs Knockout by jonmc12 on Tuesday November 22, 2011 @08:36PM (#3268348)
I created a quick doc to describe some of my ideals: http://jonmc12.github.com/BackboneIdeals/ - very quick obviously.. but I think it gets main points across:

  1.  A conceptual model that describes the input / output between DOM and user.
  2.  More explicit enumerations of event bindings
  3.  Explicit link between user interactions/events and constrained DOM manipulation 
      - to match conceptual model.
  4.  Defining all viewable elements in HTML templates
  5.  Round-trip syncing between HTML and data models
Let me know if you think inputs are interesting or would want any more detail around concepts.