Make your code more maintainable by avoiding accessors
Posted: October 24th, 2003 | No Comments »Why writting accessor methods should not become a religion? Even thoug arguables (you always can say in depends on the context) Allen Holub makes good remarks in Why getter and setter methods are evil.
The lack of getter/setter methods doesn’t mean that some data doesn’t flow through the system. Nonetheless, it’s best to minimize data movement as much as possible. My experience is that maintainability is inversely proportionate to the amount of data that moves between objects. Though you might not see how yet, you can actually eliminate most of this data movement.