Examples of code for the popular programming patterns.