News for hackers. Stuff that matters.
Re:Are software engineering “best practices” just developer ... by avgcorrection on Friday October 01, 2021 @01:03AM (#28714754)
A collection is a red herring. A collection uses a “getter” for the size since the size is not something you get/set like in a value object.

But then again no one calls it a “getter” (not even Java calls it `getSize()`) since the get/set discussion is about updatable fields, not the inner guts of objects.

Has anyone argued against encapsulation? No one has.

There are no comments on this comment yet.