• JonC
    link
    English
    35 hours 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.