Design patterns in the interview: how to use them, and when not to
A design pattern is a named arrangement of classes for a problem that keeps coming up. The 23 classic ones come from the book Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, published in 1994. Interviewers want to hear a pattern named when a requirement needs it, together with the simpler design it beat. They don't want a list.
A cook's techniques
Think of a cook who knows dozens of techniques, such as frying, steaming, grilling and slow-cooking. A diner orders a beef stew with a side salad. Before she picks any technique, the cook looks at each ingredient. The beef is a tough cut, so she slow-cooks it, and she can say why in one sentence: slow-cooking makes tough meat tender, where frying would leave it chewy. The salad leaves need nothing, so she washes them and serves them as they are.
Now picture a second cook who fries the lettuce, because frying is a technique he knows. He has changed a dish that nobody asked him to change. And if a diner asks either cook "which techniques will you use?" before ordering, the honest answer is "tell me the dish first."