Re:Why I Hate Frameworks (2005)
by tunesmith on Tuesday October 19, 2021 @07:10PM
(#28924877)
I wonder if this is the type of complexity that comes by default with state machines? I have the same feelings with complex react component structures, as well. There is something about state machines where the command flow (that updates the states) feels "hidden", and I thus far haven't found a way to design or document this kind of programming cleanly. Instead I have copious documentation explaining what each combination of states means and how it can be triggered.
[ Parent
| on HN ]
Getting OT, but I am a fan of state machines.
They get big, but it is not right to confuse size with complexity. A huge state machine (size measured by the number of states) can be quite simple. Both in the whole, and each state transition can be isolated and considered independently
Re:Why I Hate Frameworks (2005)
by FridgeSeal on Tuesday October 19, 2021 @10:17PM
(#28926059)
And at least a large state machine has the dignity to make the state + transitions explicit.
I’d much rather deal with a large state machine than something that does the same thing, but implicitly or inconsistently.