you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 2 years 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.

  • source
  • parent