Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stevensanderson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
Learn the MVVM pattern and knockout.js quickly with in-browser coding exercises
(learn.knockoutjs.com)
47 points
by
stevensanderson
15y ago
|
19 comments
32.
▲
by
stevensanderson
15y ago
Knockout focuses more on the front-end - helping you make a sophisticated UI that responds to view model changes using declarative bindings. It isn't as opinionated as backbone about how you should load and save data. Both approaches are va
33.
▲
by
stevensanderson
16y ago
It can do in cases where you find that more convenient. Whenever you prefer to move logic into your view model and just reference it, you can do so. It's intended to be flexible.
34.
▲
by
stevensanderson
16y ago
The evaling is a robust way to parse the JSON-like binding syntax at the full speed of the browser's native code. Much faster than implementing the parsing in JavaScript.
35.
▲
by
stevensanderson
16y ago
Think of the bindings as data, not as procedural code. It's so much more convenient to do it this way (avoiding having to figure out where each bit of behaviour comes from), especially when you're generating UI from within templates.
36.
▲
by
stevensanderson
16y ago
See http://knockoutjs.com/documentation/observables.html#how_dep...
37.
▲
by
stevensanderson
16y ago
Knockout is meant to enable the whole MVVM pattern, and supports it with: * Declarative binding syntax (a very simple way to link model properties/functions to DOM elements without writing manual "render" functions or event handlers) * Aut
38.
▲
Knockout: JS library for rich UIs, declarative bindings, and dependency tracking
(knockoutjs.com)
103 points
by
stevensanderson
16y ago
|
45 comments