design pattern
A named, reusable shape of solution to a problem that keeps coming up in code.
A design pattern is a documented solution structure for a recurring design problem (factory, decorator, observer…), useful mostly as shared vocabulary.
See also