jargon

Design patterns·Making things

someone described a solution in four words and everyone in the room pictured roughly the same code.

Design pattern

Also calledpattern, software design pattern

A named, reusable arrangement of objects for a recurring design problem, along with the trade-offs of using it. The value was never the code — most patterns are a dozen lines — it is the name, which turns a five-minute explanation into a two-word one. The failure mode is treating the catalogue as a shopping list rather than a vocabulary, which is how a codebase ends up with an abstract factory producing one product.

Commonly confused with