• JonC@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    Also take a look at the Specification Pattern for something similar.

    That’s something I would only use if the logic becomes very complex, but it can help break things down nicely in those cases.