News for hackers. Stuff that matters.
Re:Ask HN: Why do you make class members private? by tejohnso on Monday July 25, 2022 @02:59PM (#32229289)
Yeah, "brittle", or "fragile", or "tightly coupled to the implementation"

In any case, it's not good. Also not uncommon.

Re:Ask HN: Why do you make class members private? by jacquesm on Monday July 25, 2022 @03:02PM (#32229333)
> Also not uncommon.

Fair enough.

Typically this is a case of people not really getting what unit tests are for, so they end up testing the implementation rather than the behavior.