Hacker News new | past | comments | ask | show | jobs | submit login

What are some patterns that can be used to implement this?

I can think of using a Rule Engine but not sure if there are any performant ones and they don't seem to be used much.




Usually it just means that you have a function like `isValidPizzaToppings(ToppingsList)` somewhere that you call in multiple places, instead of having a condition `myToppings.count() >= 1` in multiple places. So, just normal functional abstraction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: