3 ms·
Not the worst. Seems acceptable imo, yes its a long function with giant switch statement but its pretty clear what it does and easy to read.
by jdthedisciple 5y ago
Not the worst. Seems acceptable imo, yes its a long function with giant switch statement but its pretty clear what it does and easy to read.
- dsego 5y agoAdding a few more fields would require me to update every case plus add some more, no? Resulting in an hard to maintain explosion of state? Or am I missing something. https://statecharts.dev/state-machine-state-explosion.html https://statecharts.dev/state-machine-state-explosion.html