3 ms·
What don't you like about Backbone? I never hear anything constructive or even a solidly coherent argument from its detractors
by krebby 14y ago
What don't you like about Backbone? I never hear anything constructive or even a solidly coherent argument from its detractors
- SoapSeller 14y agoBackbone is pretty much a classic MVC, You define your data-model, your views(HTML) and than connecting all together in the controller. It's an old and trusty way of doing GUI, but it require you to define your UI(views) in two places - HTML and js code. You must have hardcoded HTML references in your JS code(via CSS selectors & etc), and for every change you do in your view you have to check(and probably change) your js code as well - and vice versa. Where in MVVM based frameworks(e.g. knockout) you define your view only once - in your HTML file. Your view contains everything that is needed to render the data in your View Model, and can initiate changes to the view model(and render any change that is being made to the date in the view model). There is never a need to use hardcoded references to the HTML in your js code.
- politician 14y agoThere is a multitude of two-way DOM data binding add-ons for Backbone.
- ganarajpr 14y agoGet jashkenas or the people behind Backbone to write a data-binding plugin.. I guess, I will consider BB for data-binding then. I have tried most of the data-binding plugins in backbone.. They all fall short one way or the other. Stickit does not deal with collections, model-binder does but is a pain in the ass to use properly. Rivetjs seems better than the other two - but the scariest part of backbone plugins is that the community behind each is extremely small -hence its scary to consider them.
- nailer 14y agoOfficial docs are terrible. Other sources are better but not maintained with the current release.