Join Nostr
2025-05-28 00:34:34 UTC

Per Vognsen on Nostr: There are two reasonable justifications for encapsulation. The only fundamental ...

There are two reasonable justifications for encapsulation. The only fundamental justification is preserving data invariants, especially when safety is involved. So it's very strange to me that the OOP people never talk about them and only talk about reducing low coupling to make it easy to reduce the long-range impact of changes.