4 ms·
The general issue is that FSM require a lot of naming, since you want to give every state a significant name, and naming is hard. When the states are clear eno
by xondono 6y ago
The general issue is that FSM require a lot of naming, since you want to give every state a significant name, and naming is hard.
When the states are clear enough, modifying FSMs is very nice.
- teacpde 6y agoThat isn’t necessarily a state machine problem, a state is an abstraction that maps to part of your business semantics. Naming becomes hard when your state abstraction isn’t clear, which in turn is probably due to how business semantics are modeled. One the most important things in implementing state machines is to draw it up and make sure every state and transition has clear meanings before actually implementing them. There usually will be multiple iterations of modeling before arriving at a good design.
- spacemanmatt 6y agoNomenclature challenges are a negative code smell