4 ms·
State machines. They can be a helpful abstraction for UI or business logic, and they also make regular expressions make a lot more sense.
by paulgb 8y ago
State machines. They can be a helpful abstraction for UI or business logic, and they also make regular expressions make a lot more sense.
- jimpudar 8y agoYeah, far too often people create horrific spaghetti code of if/else statements which could be neatly coded as a state machine. This is a very important concept to grasp.