News for hackers. Stuff that matters.
Re:DRY is an over-rated programming principle? by thrown_22 on Thursday July 07, 2022 @10:11AM (#32014334)
Not to mention it lets you do things like:

    mixed_pizza = {
        crust: [["thin"], ["thick"]],
        sauce: [["tomato"]],
        cheese: [["regular"]],
        toppings: [["beef"], ["pineapple", "pepperoni"]]
    }
Where you offload the logic of making multi-topping pizzas into the data.

There are no comments on this comment yet.