• JonC@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months 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.