News for hackers. Stuff that matters.
Re:Ask HN: Why do you make class members private? by jacquesm on Monday July 25, 2022 @02:34PM (#32228890)
> A dedicated user can gain access to, and modify, everything.

That may be so, but it is akin to using an undocumented system call. And good luck if that class ever gets refactored or turned into a service.

Re:Ask HN: Why do you make class members private? by klyrs on Monday July 25, 2022 @03:53PM (#32230044)
Indeed. My point was that "private" has all the strength of a "warranty void if removed" sticker.
Re:Ask HN: Why do you make class members private? by jacquesm on Monday July 25, 2022 @03:59PM (#32230134)
That's a funny way of putting it, but yes, you are correct.