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

Haven't seen it, but a large switch can be for implementing a state machine. Which is a good structure to put a whole lot of application code in. You can tell if all the states and events are handled; you can find exactly where code for a state transition lies.


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

Search: