4 ms·
I love the idea of viewmodel and automatic UI updates! What I don't really like is the implementation of that concept by these three frameworks. For example, f
by rudasn 14y ago
I love the idea of viewmodel and automatic UI updates! What I don't really like is the implementation of that concept by these three frameworks.
For example, from Knockout's homepage: http://knockoutjs.com/img/homepage-example.png http://knockoutjs.com/img/homepage-example.png
That mixing of HTML and JS variables (in data-bind: chosenTicket, tickets) and behavior (click: resetTicket) looks very alien to me. It just doesn't feel right.
It does make automatic UI update very very easy to implement but at what cost? Is code like this maintainable? Is it easily testable? Does is scale well?
- hasenj 14y agoHaven't used knockout heavily yet (but I plan to!). From what I can tell (mostly by intuition and experience), this looks at least more maintainable than typical MVC systems like Backbone.js