Re:Programming Rules and Conventions
by jweir on Monday February 04, 2013 @10:25AM
(#5164527)
Don't allow private data structure to "leak" out of a module offers a great example in module, type, or even class design.
[ Parent
| on HN ]
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.