Why Nostr? What is Njump?
2024-10-10 05:12:17
in reply to

Graham Downs on Nostr: npub19lwgd…u3rpd There are always going to be minor changes in each implementation, ...

There are always going to be minor changes in each implementation, though, to make it fit the context. Variable names, mostly. I don't know the tool you're talking about though, so I don't know if it's able to handle that. And when it comes to maintenance/enhancement/bug fixing, will I still be able to make the change in only one place and have it automatically propagate to all four places?

If so, then what you're describing is basically creating a single, generic, abstract function that you call from four different places. In which case, we have an accord. :-)

If not, then see my other replies: one of the biggest issues with duplicating code like that is that people change it in one place but don't know or forget that they need to change it in three others. The three other places maybe affect functionality that's not used very often or not used by very many clients, so it gets overlooked... until the next release, maybe months down the line, where it causes a show-stopping bug for a client and now we have to drop everything and work all-nighters to get it fixed. It's happened.
Author Public Key
npub1q8hnju2crm5r4fu7ystcdfav2r8etmx45nsur4le5ljjmhwj5yzs9a5w8f