Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That'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/h...


It's assigning the result of a constructor to a variable. It's JavaScript. So this isn't your thing I guess.


As 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: