▲ | majormajor 13 hours ago | |||||||||||||||||||||||||
The set of developers who say "I want to implement this logic as a state machine" is MUCH larger than the set of developers who say "I should make sure I fully understand every possible state and edge case ahead of time before making a state machine!" | ||||||||||||||||||||||||||
▲ | freeone3000 2 minutes ago | parent | next [-] | |||||||||||||||||||||||||
Implement as a state machine? But. Your program exists as a set of transforms upon memory. Your program is a state machine! You just need to define the proper morpisms to map your problem domain to the computer domain. | ||||||||||||||||||||||||||
▲ | throwaway2037 12 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Couldn't this be said about any alternative solution? I fail to see how this is specific to state machines. What do you suggest instead of a state machine? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | kayo_20211030 34 minutes ago | parent | prev [-] | |||||||||||||||||||||||||
I have a coding problem. I'll use a state machine! Now, I have two problems :-( |