These are chat archives for jdubray/sam

26th
Jun 2016
Fred Daoud
@foxdonut
Jun 26 2016 00:01
Just to clarify,
for instance actions.clearEdit(); looks too much like a function call/setter. Actions should always have an argument.
This message was deleted
Fred Daoud
@foxdonut
Jun 26 2016 00:07
In reality, actions.clearEdit() in turn calls present(data) with the appropriate data to propose to the model to clear the edit field. the model still has to accept it, of course. It remains a proper step/state transition with PAL. actions.clearEdit() shields the view from having to know the details of how that happens. the view simply calls actions.clearEdit().
Jean-Jacques Dubray
@jdubray
Jun 26 2016 12:28
I understand that it is all factored properly, I am trying to find a signature that makes it harder to come up with "simple setters". Actions are unlike methods or functions. That's the general problem in programming, we don't have a good way to create variants
Jean-Jacques Dubray
@jdubray
Jun 26 2016 15:06
Semantics matter, see how this question is asked:
https://twitter.com/AdamRackis/status/746861637001314304
Jean-Jacques Dubray
@jdubray
Jun 26 2016 15:11
Is Adam really talking about an "action" or a mere API call initiated from an action? An API call is not an action, though you can invoke actions via an API. He is talking about weaving a persistence API within the React/Redux programming model which include actions such as "init", triggered for instance via "componentDidMount" events.
Jean-Jacques Dubray
@jdubray
Jun 26 2016 16:00
Jean-Jacques Dubray
@jdubray
Jun 26 2016 16:07
Google is funnny
blob
so ...
blob