July 26, 2011
5:12 p.m.
| | You should design your object's interface respecting the needed | protocols, not its internal design. Bad code smell otherwise. If your intent is to provide for subclassing in the future (or tomorrow), then you should use accessors exclusively. There is a place for such tool functionality. Bad smells are always subjective:) Dale