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

Especially for an object that has to have some consistency between its members, all the code that has to maintain that consistency (or that can break the consistency, same thing) should be in the same place - functions of that class. So if you ever see a class that has the data in an inconsistent state, you have a very small set of places to look for the culprit.


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

Search: