3 ms·
There was a link earlier on HN about declarative programming. In my opinion that's the best solution to the front-end dev issue.No amount of Backbone based fra
by aikah 12y ago
There was a link earlier on HN about declarative programming.
In my opinion that's the best solution to the front-end dev issue.No amount of Backbone based framework ,as good as they are(and I use some) really solve the "how do I build a complex interactive view" problem on the client.
Setting intents and expectations and letting the framework drive the view life cycle solves many issues.AngularJS and React success are a proof of that fact.
So hardest thing to manage in an client app is the view . Backbone never solved that problem.It just had an opinion about the Domain Layer(Backbone models/collections) and the Data Access Layer(ajax).
Didnt try Ampersand but i'm curious as to how it solves that issue.
- jenius 12y agoMarionette takes care of this quite well for very complex views, results in much cleaner markup than angular etc, and is built on backbone. Give it a shot.
- HenrikJoreteg 12y agoWe build lots of complex interactive views with it. Probably should share some more examples. We support declarative subviews, that might be what you're looking for: http://ampersandjs.com/docs#ampersand-view-subviews http://ampersandjs.com/docs#ampersand-view-subviews
- Rodeoclash 12y agoNo reason why you can't roll with React to do this. Although backbone supplies a "View", it's very thin and makes it easy to use your own method of getting data into the dom.