▲ | protomolecule 7 months ago | |||||||||||||
> riddled with state machines What's wrong with state machines? Beats the tangled mess of nested ifs and fors. | ||||||||||||||
▲ | bluGill 7 months ago | parent [-] | |||||||||||||
That depends on your problem. I've seen useful state machines. I've seen someone implement a simple decoder as a complex any-to-any state machine that couldn't be understood - a single switch statement would have been better. Nothing about state machines, but some people have a hammer and are determined to prove it can drive any screw - it works but isn't how you should do it. | ||||||||||||||
|