News for hackers. Stuff that matters.
Re:DRY is an over-rated programming principle? by victor106 on Thursday July 07, 2022 @11:28AM (#32015318)
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.

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.