• Prefix@lemm.ee
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 年前

    I think it’s one of those things that is generally a good instinct, but easy to go overboard and way over index on.

    Usually I try to optimize code for “how easy is it to entirely delete this module” - loose coupling is the bigger concern. Sometimes it makes sense to repeat code with this approach. Usually I’ll abstract a shared concern out once I repeat it 3 or so times, but not always.

    It’s all about trade offs.