Example pattern Code pattern is a snippet of code, representing a solution to a typical problem.