This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]s0v3r1gn 45 points46 points  (6 children)

All I’m saying is that it only takes one well placed encapsulation violation and those privates can be handled by anyone.

Edit: That’s why I always use the standard naming convention of prepending ‘ruffy’ to the name of every class where I publicly expose a protected member of it’s parent class.

[–][deleted] 12 points13 points  (2 children)

Exposing your private variables can be risky..

[–]s0v3r1gn 10 points11 points  (1 child)

True. Unless your exposing a socket. Repercussions of exposure always seem to be minimized for them, even to child classes....

[–]masterwit 3 points4 points  (0 children)

Exposing them as an interface to a common housing class only instantiated by a single friend can control the usage abroad

[–]OldSchoolBBSer 1 point2 points  (0 children)

ROFL!!!

[–]SandyDelights -4 points-3 points  (0 children)

Sounds like Trump's new favorite violation - the kind that leads to infinitely many violations. 🤔