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

one good reason would be because setters and getters are way easier to mock out than direct access to member variable And we all want to have code tested , don't we ? :-)


No, I most certainly don't.




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

Search: