These are chat archives for jdubray/sam

16th
Jun 2016
Jean-Jacques Dubray
@jdubray
Jun 16 2016 07:39

@edmulraney For instance, this is what it takes to use observables (and RxJS) in Angular
http://blog.lambda-it.ch/reactive-data-flow-in-angular-2/
Not sure if this has changed since January but:

At the time of writing, Angular 2 offers no elegant way to elegantly convert a event binding listener into an Observable, so let's do it the explicit way, using Observable.create to create two streams of clicks:

weepy
@weepy
Jun 16 2016 09:49
@jdubray Cerebral is looking like a really nice project
thanks for the tipoff
Jean-Jacques Dubray
@jdubray
Jun 16 2016 10:01
I am talking to Christian in 30 min
I agree
weepy
@weepy
Jun 16 2016 10:18
oh cool
maybe you can make some kind of cerebral PAL module
This message was deleted
Fred Daoud
@foxdonut
Jun 16 2016 11:57
interesting @jdubray , would love to hear what comes out of your conversation with Christian
Jean-Jacques Dubray
@jdubray
Jun 16 2016 12:01
@foxdonut I believe I picked his interest. He is going to look at some code samples and assess how SAM could be implemented with Cerebral
Fred Daoud
@foxdonut
Jun 16 2016 13:59
cool! (I think you mean pique his interest)
Michael Terry
@formido
Jun 16 2016 15:53
What I like about cerebraljs is that I learned about it by accident
I was introduced to a legitimately wonderful little web app webpackbin.com
and found that it was created with cerebraljs, which is a nice piece of evidence in its favor
Riccardo
@riccardoferretti
Jun 16 2016 16:22
@jdubray I was reading about the composition for the actions, but there is something I don’t fully understand
does the data passed to action conform to the model?
my understanding was that this doesn’t necessarily need to be the case, but then I don’t understand how C(data) = A(B(data)) works
Riccardo
@riccardoferretti
Jun 16 2016 16:53
also, given the reactive flow, would you achieve the composition by passing A as the presentfn in B?
Jean-Jacques Dubray
@jdubray
Jun 16 2016 21:11
@riccardoferretti Actions play the role of an adapter between the view and the model.Ideally the data structure presented to the model conforms to the model but that"s not a hard rule. It is more important that the view components be reusable and 100% decoupled from your application.
Jean-Jacques Dubray
@jdubray
Jun 16 2016 21:45
data' = A(data) simply expresses that an action is a transformation of the event's dataset more than a traditional function with inputs and outputs.
devin ivy
@devinivy
Jun 16 2016 22:46
@jdubray i look forward to hearing how that goes