News for hackers. Stuff that matters.
Re:Backbone.js: Hacker's Guide by ajross on Thursday July 19, 2012 @04:07PM (#4267823)
Backbone doesn't care about the DOM in precisely the same way that Rails doesn't care about HTML. And Model isn't a "convenience helper", it's a class from which you must inherit if you're going to do anything at all. A "helper" for this stuff would be something like a "save" function that took an arbitrary Javascript object and pushed it automatically to the right CRUD method on a server. Backbone isn't like that at all. Dependencies like that fester.
Re:Backbone.js: Hacker's Guide by aubergene on Tuesday July 31, 2012 @09:54AM (#4317221)
You said a view can only have one model, I was saying that within a view "model" is just a connivence helper function, you can reference as many models as you like, but give them their own name