3 ms·
"Example: you can make all your variables private to better "minimize accessibility of variables", but that requires elaborate accessor methods which increase "
by jimbokun 18y ago
"Example: you can make all your variables private to better "minimize accessibility of variables", but that requires elaborate accessor methods which increase "vertical complexity"."
No. don't create accessors and don't access the data in private variables outside of the scope in which they are defined.
Accessors, in most cases I have seen, simply outright defeat the entire purpose of having a private keyword to begin with.
EDIT: replaced CAPS with italic emphasis, in order to reduce decibel level.
- ajross 18y agoChill. That was exactly my point. Clearly you have a strong aesthetic sense. :) You might want to lose a few of those CAPITALS though. Someone might think you were screaming about software.