What is Nostr?
pippellia
npub176p…vgup
2025-02-16 10:06:56
in reply to nevent1q…9w9q

pippellia on Nostr: my 2 sats about abstraction. I understand the itch about taking some piece of code ...

my 2 sats about abstraction. I understand the itch about taking some piece of code and making it more general, more abstract, however I try to resist it as much as possible. Why? Because it inevitably adds more complexity, it requires more effort to understand and debug. My rule now is that I abstract only when I have repeated the same code 2 or 3 times.

No-one will be confused by repeated code, which is not the case for an abstraction that doesn't fit or is premature.
Author Public Key
npub176p7sup477k5738qhxx0hk2n0cty2k5je5uvalzvkvwmw4tltmeqw7vgup