Re:Why Developers Never Use State Machines
by romaniv on Thursday September 01, 2011 @12:14PM
(#2950596)
Any enum with clear transition logic is effectively a state machine. However, if you try to implement SMs as separate classes/objects with explicit transition functions, than it does become an unreadable mess. The logic in your code stops representing behavior. I think that's what the grandparent post refers to. Also, "explicit" state machines don't allow to use recursion, which can made code much more readable.
[ Parent
| on HN ]
There are no comments on this comment yet.