Loading page…
A coupon engine worked live from a blank prompt: five questions that pick a pattern (what varies, what stacks on top, what has a lifecycle, who listens, what's undoable), Strategy, Decorator and Observer chosen one at a time, a failing listener, four patterns left out with the sentence that would bring each in, and how to say the trade-off.
The interviewer says: design a coupon engine for a shop's checkout.