Re:DRY is an over-rated programming principle?
by layer8 on Thursday July 07, 2022 @01:33PM
(#32016911)
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.
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.