Re:Data flow syntax: The missing piece for the success of fu...
by iovrthoughtthis on Thursday July 16, 2015 @09:37PM
(#9900901)
This is a problem I've experienced (and partially solved for my self) when working with streams of events on UI's in js.
e.g.
applyStoreFilterStream.recv(function () {
// do some stuff
})
// when either removing a filter or adding a filter
.compose.serial(removeStoreFilterStream, applyTypeFilterStream)
.recv(removeAllElements)
.recv(pager.reset.bind(pager))
.recv(requestProductsStream.send);
This was using an in house streams library (before i'd found Rxjs).
I did find that, because there is only one line at a time within which to express a dependency (from one stream to another) it was quite difficult to conceptualize the graph structure being created. I think perhaps having editors that can interpret this sort of code into a visible graph structure and conversely, compile a graph structure down into this form, would be interesting.
e.g.
This was using an in house streams library (before i'd found Rxjs).I did find that, because there is only one line at a time within which to express a dependency (from one stream to another) it was quite difficult to conceptualize the graph structure being created. I think perhaps having editors that can interpret this sort of code into a visible graph structure and conversely, compile a graph structure down into this form, would be interesting.