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

> make sure that objects are always in a consistent state

This only works for invariants that constrain the state of a single object. Realistically, invariants that constrain the state of multiple objects are a necessity, and no amount of in-object validation will help you enforce those.



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

Search: