Dmitri Zaitsev

Results 149 comments of Dmitri Zaitsev

I had some more thoughts and found some conceptual difficulties when seeing streams as lists of time-value pairs. When you consider a pure function `f : a -> b`, you...

> I'm not sure I understand the problem nor the solution. A stream is only a list in the semantic sense. Considering a stream a list gives us a mental...

@paldepind > Because, what is a channel? A stream is clearly defined. It's a list of pairs with time and value. Such a thing can be understood precisely and mathematically....

@paldepind I had to think how to define it mathematically. Ironically, my experience as professional mathematician talking to programmers was mostly in the opposite direction -- making statements "too precise"...

Fitting illustration from https://hackernoon.com/10-react-mini-patterns-c1da92f068c5 ![data-flow](https://cdn-images-1.medium.com/max/2000/1*J5XOQh2WKIl0NFTAMvcVbQ.png) Shows very similar pattern how the top model sends data to the view and subsequently to child component via the props. However, the props play...

> I agree that enforcing a separation of concerns between the model and the view is very important. Did you see my post here #35 where I make a similar...

Here it might be nice to slightly overload the `div`, so you could simply pass the stream or behavior of component directly to `div`: https://github.com/funkia/turbine/blob/master/examples/counters/src/index.ts#L59 I've thought that was also...

Also wouldn't say no to some more details on the "mysterious" `list` function :) https://github.com/funkia/turbine/blob/master/examples/counters/src/version3.ts#L66

@paldepind >>That would remove the need for the model, right? >Yes, it actually would. But in the next version of Hareactive stepper will return either a Behavior or a Now...

>>The component itself looks like a general purpose selector component, to which you pass the array labels = [1, 2, 3, 4], along with the child component selectorButton. >>I wonder...