Trying to ensure best practices and learn clean coding standards...
I know that public variables are generally bad, but sometimes you HAVE to manipulate veriables from elsewhere... So which is better:
- A public variable
or...
- A private variable with a public method to manipulate it?
or...
- A third method that I am unaware of...
2 seems better (even though it's a tad more work) b/c at least I can have the method report who accessed it for troubleshooting purposes.
