Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

State machines. They can be a helpful abstraction for UI or business logic, and they also make regular expressions make a lot more sense.


Yeah, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: