1. 25
    Extend State ADT Based Transitions after React/Redux Integration
    2m 46s

Extend State ADT Based Transitions after React/Redux Integration

Share this video with your friends

Send Tweet

Once we have our model fully integrated with a dispatching state management system like Redux and a front-end implementation in something like React, there will come a time when we will need to either add to or extend our model in some way.

By building out our model first and keeping all of our game logic concerns isolated to our pure state transitions, it is easy to alter. Usually it is just a matter of capturing our modifications in a single function and then locating the point in our existing model where we need our change applied. Then we just plop in our function, and as long as our function is pure, most of the time it will just work.