Skip to content

Commit

Permalink
Merge pull request #20 from Zionified/lab13
Browse files Browse the repository at this point in the history
added lab13
  • Loading branch information
ckaestne authored Dec 4, 2023
2 parents 21f6333 + 7f125b4 commit e421e98
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions labs/lab13.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Lab 13 - Design Pattern Review

In this recitation, you will provide an overview of three crucial design patterns: **Strategy**, **Template**, and **Decorator**. For each pattern, your task is to articulate key aspects, discuss scenarios where it is beneficial, highlight situations where it might not be the best choice, and present a UML diagram from *Santorini or past homework* that demonstrates the pattern.


## Deliverables
- [ ] Fill out the **Strategy** pattern template and answer follow-up questions of the TA
- [ ] Fill out the **Template** pattern template and answer follow-up questions of the TA
- [ ] Fill out the **Decorator** pattern template and answer follow-up questions of the TA

## Introduction
Throughout the semester, we've delved into seven commonly used design patterns: **Strategy**, **Template**, **Decorator**, **Composite**, **Observer**, **Proxy**, and **Adapter**.

In this lab, we will focus on the first three.

For each design pattern, you are expected to provide information in four sections:

- **Description**: Define the key characteristics that distinguish the pattern from others.
- **Pros**: Explain when and why you would choose this pattern. Focus on its advantages in terms of design principles and coding styles.
- **Cons**: Identify scenarios where choosing this pattern might be suboptimal. Focus on what makes it less preferable compared to alternative choices.
- **UML Diagram/Code snippet**: Present a UML diagram illustrating a concrete scenario in the Santorini God Cards context. For the other design patterns, feel free to use examples from other past assignments.


## Instructions

### Download the cheatsheat

1. Create a copy of the template at https://docs.google.com/document/d/1o-j6jTDt1VLfUzJaF_kp-3blUSpXp-U7BGSPdN4vt08/edit?usp=sharing

### Tips

- Strive to devise your explanations before consulting external sources.
- While you are only required to explain three design patterns to the TA, feel free to continue filling in the information for the remaining patterns and seek clarification or assistance from the TA if needed.


0 comments on commit e421e98

Please sign in to comment.