Monday, December 14, 2015

REST

I recently learned how REST is part of good design.
Representational State Transfer means that each module can derive it's state from the messages it receives.  It doesn't maintain state; state is part of the message.  So the nodes on a FSM send state along the edges.
In general: a good object is self contained,  it won't crash because it's state is violated by events that are unanticipated.