4 ms·
Are those really all the states? If you have a rigid state machine, you better know all the edge cases and states. Architecturally state machines seem simple
by AtlasBarfed 4y ago
Are those really all the states?
If you have a rigid state machine, you better know all the edge cases and states.
Architecturally state machines seem simple but they area computational power beneath stack machines and of course Turing machines.
So next thing you want is a simple rules engine. Well next comes the rete processing rabbit hole, etc.
We want to think computation is just state transition graphs but real computation even just business logic goes off the rails real fast.
- Pamar 4y agoSorry, seen this only now. Yep, I do consider these states, and yes, I am aware that trying to scale up to a "simple" rule engine is a huge effort. Personally I always worked with relatively simple state machines and always wrote actual code to handle new cases or edge conditions that were not in the original design. As a tool (and at the tactical level), these work fine. Making these an overarching paradigm for your whole system, and especially adding a rule engine is something I never did and I would be wary to try, personally.