A New Deal Every Week

A New Deal Every Week: Weekly Deals: Pass the Rule In.

Updated

  1. Weekly Deals: Pass the Rule In (Apprentice): When this week's deal is picked by a switch inside checkout, every new deal means editing the code that handles the money; handing the deal into checkout as a function, the Strategy pattern in its simplest form, lets a new deal be written without touching checkout at all.