jdubray on master
Adds todomvc-app-angular Adds todomvc-app-angular Adds … (compare)
jdubray on todomvc-app-angular
Adds todomvc-app-angular (compare)
jdubray on master
Small optimization (compare)
jdubray on vue-todo-app
jdubray on master
Refactors the acceptors to use … Refactors the acceptors to use … (compare)
jdubray on vue-todo-app
Refactors the acceptors to use … (compare)
jdubray on master
Adds todomvc-app-vue sample Fixes the checked defect Adds missing files and 3 more (compare)
jdubray on vue-todo-app
Adds methods to edit the task's… (compare)
jdubray on vue-todo-app
Cleans up the code (compare)
jdubray on vue-todo-app
Adds missing files (compare)
jdubray on vue-todo-app
Fixes the checked defect (compare)
view() seems to merge SAM's model(), state() and representation() steps into one place
Yes, that's generally my issue with all the samples with see regardless of the framework. It's really not helpful, by now we should know better.
Have you seen the samples from the sam-pattern library? It's really easy to decompose your app logic into simple functions. For the clock example, it looks like it's able to subscribe to system events which is nice:
subscriptions: state => interval(Tick, { delay: 1000 }),
But I would really prefer if the Tick function did not mutate the application state directly.
In SAM events are external, but it is recommended to connect events to actions. You could consider passing the event itself as a proposal, but I would consider a bad/poor coupling. Events are emitted outside the SAM loop and should always be bound to actions.
.dom project: https://github.com/wavesoft/dot-dom
The library should never exceed the 512 bytes in size. The goal is not to have yet another template engine, but to have as many features as possible in 512 bytes. If a new feature is needed, an other must be sacraficed or the scope must be reduced.
sam-pattern
library can be used, or it's too much work (as a side note, after being exposed to functional libs like react and the likes, I see every bit of Angular code like a hacky trick...)