News for hackers. Stuff that matters.
Re:Ask HN: Why do you make class members private? by ronsor on Monday July 25, 2022 @01:59PM (#32228378)
Corollary:

If your programming language supports reflection, people will depend on private properties and methods regardless of what you do.

Re:Ask HN: Why do you make class members private? by LanceH on Monday July 25, 2022 @02:05PM (#32228442)
People who can't accomplish something with an API because things are kept private won't be users.
Re:Ask HN: Why do you make class members private? by lamontcg on Tuesday July 26, 2022 @09:44PM (#32246102)
It is always better to get the authors of the API to provide a supported way of doing something, rather than trying to bypass the interface. That requires human skills rather than computer skills though.