These are chat archives for jdubray/sam

1st
May 2017
Slađan Ristić
@sladiri
May 01 2017 19:08
Hi, I tried to use the SAM pattern with the Cerebral framework. I find the Function Tree module Cerebral uses a nice way to define a step. :)
https://github.com/sladiri/sam-cerebral/blob/master/src/sam.js#L10-L44
Jean-Jacques Dubray
@jdubray
May 01 2017 19:57
:+1:
Jean-Jacques Dubray
@jdubray
May 01 2017 21:03
So I tried to build an app with all the async calls triggered as a next-action, this is really backwards. It's a lot easier to manage async calls in the action (even multiple calls). You have to manage ancillary state machines that are pure boilerplate with zero value.
Slađan Ristić
@sladiri
May 01 2017 21:30
@jdubray Not sure, did you mean the function tree I showed above? You do not have to use it, I guess you have seen Mr. Crockford's RQ library, which is one library to help with async.