Design Patterns I
Learning Objectives
- Describe the concept of a design pattern and its elements (name, problem, solution, and consequences)
- Match the following design patterns to their descriptions
- abstract factory
- builder
- factory method
- prototype
- singleton
- Identify the most applicable design pattern(s) for a scenario
How to Complete this Lesson
Complete the following learning activities: (1.75–2 hours total)
- Read the following in Software Engineering:
- Chapter 7: Design and implementation
(15 minutes)
- Design patterns
- Chapter 7: Design and implementation
(15 minutes)
- Read the following in Design Patterns: Elements of Reusable
Object-Oriented Software:
- Chapter 1: Introduction
(15–20 minutes)
- What Is a Design Pattern?
- Design Patterns in Smalltalk MVC
- Describing Design Patterns
- The Catalog of Design Patterns
- Chapter 1: Introduction
(15–20 minutes)
- Read the following from Tutorialspoints.com’s Design Patterns Tutorial (15–30 minutes)
- Attend the class meeting (60 minutes)
Resources
Videos
- History of Design Patterns (3 minutes)
- Pattern Format (1 minute)
- Factory Method Pattern and Factory Method Pattern Example (5 minutes)
- Strategy Pattern and Strategy Pattern Example & Demo (9 minutes)
- Other Common Patterns (4 minutes)
- Singleton (6 minutes)