These are chat archives for jdubray/sam

21st
Jan 2017
Jean-Jacques Dubray
@jdubray
Jan 21 2017 02:51

@devinivy catching up on the video you shared, you gotta love this line of code in the reducer:

    if (!state) return initialState ;

Do people using Redux even understand what a reducer is?

Slađan Ristić
@sladiri
Jan 21 2017 09:46
@inrix-vincent-jo I also did it like JJ suggested, was quite easy, really, the factoring is natural. :) Maybe its a green pattern.
Jean-Jacques Dubray
@jdubray
Jan 21 2017 22:07
@sladiri just to be clear, I take no credit, all these ideas are coming from TLA+. I cannot claim I have interpreted TLA+ perfectly, but I have tried to stay as close as I could possibly be.
devin ivy
@devinivy
Jan 21 2017 23:20
@jdubray that stood-out to me too