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

State machines also make excellent database constraints. Trigger based enforcement removes the need to implement machines in application languages and prevents bad code from inserting bogus states. This only matters if you're storing state data in a DB. For example I wrote a simple trigger based fsm extension for postgres:

https://github.com/michelp/sqlfsm



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

Search: