Software Design and Development :: CS 246

06 Prove

Design Patterns

Objectives

Introduction

Design patterns are guidelines/best practices for how to structure your code in certain scenarios. These aren't compiler-rules or Java libraries, they are language-agnostic principles developed by the software development community over the years.

There are many different design patterns. Throughout the rest of the semester, we'll be learning a new pattern each week.

Assignment

  1. Read this overview of Design Patterns. You don't need to read the details of each pattern at this time.

  2. Read this description of the Strategy pattern.

  3. Read this StackOverflow post, which provides another example of the Strategy Pattern.

  4. Read this StackOverflow post which contains more examples of the Strategy Pattern.