Is that a State Machine in your Toolbox?
Richard Underwood
http://www.RichardUnderwood.com
Most programmers have coded state machines already but they might not know
it. For instance a TCP connection can be in one of several states:
Established, Listening, Closed. When the connection receives a request from
other objects it responds differently depending on its current state.
Richard Underwood will present a formal treatment of the subject and
introduce some patterns for easily implementing state machines. Some
implementations involve complex case statements and many flags to hold state
information. Using a pattern can make your code simpler, more robust and
easier to understand.
|