Re:Ask HN: Angular/Knockout/Ember, logic in templates, and m...
by hasenj on Friday August 31, 2012 @04:34AM
(#4458828)
Haven'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
For example, from Knockout's homepage: 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?