These are chat archives for jdubray/sam
View Modelwith the
Actionlayer. In some cases, it might make sense to pass the actions into the view model during the
displayphase. However, in this case the data binding library (knockout.js) passes its own variables into the bound functions. So the view model must wrap the standardized actions. This is only really necessary if you want the actions to support multiple views / devices.
Model). In the case of knockout.js, you must bind against non-POJO observables. Thus we must introduce the
View Modelwhere bindable observables live.
Model. So in that case, we would still require a
View Modelto stage the view's data.
View Modelapproach diminishes the value of implementing SAM?
the key question is as he states:
How many steps are performed in executing the statement
f = i ∗ f of the programs in Figure 1? Does a single step change the value
of f to the product of the current values of i and f ? Are the evaluation of
i ∗ f and the assignment to f two steps? Are there three steps—the reading
of i, the reading of f , and the assignment to f ?