Re:Programming Rules and Conventions
by adrianmsmith on Monday February 04, 2013 @03:43PM
(#5166975)
I saw this, and was reminded that OO languages have language constructs to enforce this, i.e. the "private" keyword.
If you want to make something private (e.g. your internal implementation) it's better to make it private (resulting in an error if someone accesses it) than to make it public, and write a rule in section 3.11 of a convention document and hope everyone using your code has read it and obeys it.
If you want to make something private (e.g. your internal implementation) it's better to make it private (resulting in an error if someone accesses it) than to make it public, and write a rule in section 3.11 of a convention document and hope everyone using your code has read it and obeys it.