You can’t just find a pattern and copy it into your program, the way you can with off-the-shelf functions or libraries. ĭesign patterns are typical solutions to commonly occurring problems in software design. The pattern is not a specific piece of code, but a general concept for solving a particular problem. Design patterns are typical solutions to commonly occurring problems in software design.