News for hackers. Stuff that matters.
Re:Why Developers Never Use State Machines (2011) by viraptor on Monday February 26, 2018 @11:01PM (#16470998)
I don't understand the issue very well... If you have a new event, you either have to handle it in the state machine or some other way. Any place where the event doesn't apply should cause an appropriate failure. Same with new states - you have to write those transitions in some way. You can use macros/abstractions/whatever for simplifying many cases. But none of that code really disappears when you don't use SM.
Re:Why Developers Never Use State Machines (2011) by sgt101 on Tuesday February 27, 2018 @02:28AM (#16471677)
I think the concern is that the update is across the code -dispersed in the code base. But this only applies to legal events in all states else the default behavior should be invoked. If a new event that is legal in many states is created then you have to handle it everywhere anyway, and my experience that if then structures fill with bugs fast in this case