What is Nostr?
npub1dem…thv4
2025-02-01 07:36:22
in reply to nevent1q…jr6f

npub1de…nthv4 on Nostr: Also OOP is overrated. Some of the concepts are useful but the way traditional ...

Also OOP is overrated. Some of the concepts are useful but the way traditional languages implement objects is inflexible (can't implement an interface/abstract class for non-class types) and the idea of inheritance has problems around leaking internal details and comprehension.

Composition is much better than inheritance. The only problem with composition is if you want to delegate many things it gets annoying. This is not very frequent problem though and can be worked around using macros.
Author Public Key
npub1demlfu7fn90q3p7s9hy4kwtf9avxg8k4kpeewthcdnttv8kvdwhq8nthv4