3 ms·
https://github.com/staltz/mvi-example/blob/master/src/views/items.js https://github.com/staltz/mvi-example/blob/master/src/views/... var modelItems$ = new Rx.B
by stevebmark 12y ago
https://github.com/staltz/mvi-example/blob/master/src/views/items.js https://github.com/staltz/mvi-example/blob/master/src/views/...
var modelItems$ = new Rx.BehaviorSubject(null);
var itemWidthChanged$ = new Rx.Subject();
var itemColorChanged$ = new Rx.Subject();
var removeClicks$ = new Rx.Subject();
var addOneClicks$ = new Rx.Subject();
var addManyClicks$ = new Rx.Subject();
As someone unexperienced with the Rx library, this is completely unreadable.
- glibgil 12y agoIt's assigning the result of a constructor to a variable. It's JavaScript. So this isn't your thing I guess.
- stevebmark 12y agoAs someone actively trying to damage his (how did I guess you were a guy?!) community with dismissive, condescending and anti-inclusive hatred, in a community already battling against these problems, I hope you consider making programming not your thing.
- staltz 12y agoThat's boilerplate. This example might look cleaner to you, where boilerplate is being removed in an MVI framework: https://github.com/staltz/cycle/blob/master/examples/hello/hello.js https://github.com/staltz/cycle/blob/master/examples/hello/h...