These are chat archives for jdubray/sam

13th
Jan 2017
James Yang
@futurist
Jan 13 2017 01:03
Hi, everybody
Gary Stephenson
@stephensong
Jan 13 2017 06:04
Hi all. I am attempting to port my existing React / Redux app over to use Meiosis with React, but I confess I am struggling a bit. The examples given are too simplistic, and I was wondering if anyone can demonstrate more complicated examples available that make more extensive use of React - eg. lifecycle methods etc. thx.
Edward Mulraney
@edmulraney
Jan 13 2017 10:20
@stephensong how come you want to port your app to Meiosis?
@futurist hey :) you played with SAM yet?
James Yang
@futurist
Jan 13 2017 10:26
@edmulraney Hi! not yet. I'm just noticed this and haven't going deep now.
devin ivy
@devinivy
Jan 13 2017 13:26
thought you all might find this interesting. another shot at solving this issue of effects in redux. https://www.npmjs.com/package/petux
Jean-Jacques Dubray
@jdubray
Jan 13 2017 13:37
Don't you get the impression that declarative effects is just about "kicking the can"? When you look at Elm examples they claim "no stubs are needed" but the stubs are coded in the app itself, which seems to be much worse. I have never seen someone architect a system just because they could make it cool for devs (TimeTravel, HotReloading). Dan's obsession with these two features will ultimately kill React.
Jean-Jacques Dubray
@jdubray
Jan 13 2017 13:51
@edmulraney So, do you feel we are in a position where we can go back to the discussion we had before the break? (i.e. what is an action?)
Edward Mulraney
@edmulraney
Jan 13 2017 13:59
@devinivy nice - that's one of the better solutions in my opinion
@jdubray what do you mean? do you have new information to discuss regarding an action? go for it
Fred Daoud
@foxdonut
Jan 13 2017 14:01
@devinivy that's interesting, thanks for sharing
Edward Mulraney
@edmulraney
Jan 13 2017 14:06

@jdubray

Don't you get the impression that declarative effects is just about "kicking the can"?

No not at all

@stephensong you can achieve SAM in your app without changing framework to Meiosis :) if you want to learn Meiosis however @foxdonut is your man
Jean-Jacques Dubray
@jdubray
Jan 13 2017 14:34
@edmulraney I thought we had agreed to discuss the nature of actions in the context of an example. You had asked me to provide a spec for that example, here it is: https://www.linkedin.com/pulse/solstice-clock-jean-jacques-dubray
@stephensong there are also some SAM-React samples on the github repo.
Edward Mulraney
@edmulraney
Jan 13 2017 14:37
ah yeah, i wasn't familiar with the clock issue - I'll have to read up on the clock system first to understand the problem. realistically it looks like i'll need half a day to understand and produce a solution
Jean-Jacques Dubray
@jdubray
Jan 13 2017 14:39
Yes, I understand, at a high level, the solstice clock is just about:
1/ getting a "tick" every second (in computer time)
2/ calling an API to get the real time position of the earth
3/ computing the "solstice time" (the planetary time)
4/ displaying that time
Jean-Jacques Dubray
@jdubray
Jan 13 2017 15:03