Skip to content

Commit 7fb1384

Browse files
committed
start with strategy and decorator
1 parent e265aa4 commit 7fb1384

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

behavioral/strategy/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Behavioral » Strategy
22

3+
## Elements
4+
5+
- Context
6+
- Strategy
7+
- Concrete Strategy
8+
39
## Description
410

511
The strategy pattern uses different algorithms to achieve some specific

structural/decorator/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Decorator
22

3+
## Elements
4+
5+
- Component
6+
- Decorator
7+
- Concrete Component
8+
- Concrete Decorator
9+
10+
## Description
11+
312
The decorator pattern provide a lot of benefits when working with legacy code. In this example legacy code is represented by a legacy recipe. A decorator add functionality and in this example decorators are new ingredients.
413

514
```go

0 commit comments

Comments
 (0)