refactoring to patterns - andstudy/forge GitHub Wiki
์ฐธ๊ฐ์
- ์ด๋ํ
- ์ ํฌ์ข
- ์์ค์
- ๋ฐ์ฃผํฌ
- ๋ง์ผ - ๊ณ ๋ณด์ฑ
- ์ฌ๊ฐ๋ - ๊น์ฌ๊ด
- ๊นจ์ก - ์ต์คํธ3
- ๊น๊ฒฝ๋ ฌ
- ๊ณ ์ฉ์ค
- ๊ฐ๋๋ช
- ๊ตฌ๋ฃจ - ๋ฐ์ง์ฑ
- ์ง๊ธ์ด๋ - ์ค์๋ฏผ
- ์ด์ ๋ฏผ
- ์ด์ฝ๋ก - ์์ ํธ
- ๊น๋ช ๊ด -
- ๋ฐ์งํธ
- ๊น๊ดํ
- ๋น์์๋ -
- ์ญ์ด -
ํ๋น๋ฉ๋ถ ๋ด์ญ
| ๋ ์ง | ๋ด์ญ | ๊ธ์ก |
|---|---|---|
| 4์ 12์ผ | ๊น๊ฒฝ๋ ฌ, ๋ฐ์ฃผํฌ | 80,000 ์ |
| 4์ 19์ผ | ์ด๋ํ, ์ ํฌ์ข , ๊น๊ดํ, ์์ ํธ, ์ค์๋ฏผ, ๊น์ฌ๊ด, ์ต์คํธ, ๊ณ ๋ณด์ฑ, ๊ฐ๋๋ช , ๋ฐ์ง์ฑ, ์์ค์ | 440,000 ์ |
| 4์ 26์ผ | ๊น๋ช ๊ด, ๊ณ ์ฉ์ค, ๋ฐ์งํ | 120,000 ์ |
| 5์ 31์ผ | ์ด์ ๋ฏผ | 40,000 ์ |
| ์ด์ก | - | 680,000 ์ |
| ๋ด์ญ | ์ ๊ธ | ์ถ๊ธ |
|---|---|---|
| ํ๋น ์ ๊ธ์ก | 680,000์ | |
| 4์ 12์ผ ํ ์ฆ ๋น์ฉ | 36,000์ | |
| 4์ 19์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 4์ 26์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 5์ 3์ผ ํ ์ฆ ๋น์ฉ | 56,000์ | |
| 5์ 10์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 5์ 17์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 5์ 24์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 5์ 31์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 6์ 7์ผ ํ ์ฆ ๋น์ฉ | 50,400์ | |
| 6์ 7์ผ ์ฑ ๊ฑธ์ด ๋น์ฉ | 130,000์ | |
| --------------------------------- | ||
| ์ ๊ณ | 524,400์ | |
| ================================= | ||
| ์ด ๊ณ | 155,600 ์ |
๋ฐํ ์์
-
4์ 19์ผ
- ch1.์์ค์
- ch2. ์์ค์
- ch3. ์ด๋ํ
- ch4. ์ ํฌ์ข
-
4์ 26์ผ
- ๋ฐ์ฃผํฌ - Replace constructors with Creation Methods
- ๊ณ ๋ณด์ฑ - Chain Constructors
- ์ต์ฃผํฌ - Encapsulate Classes with Factory
- ๊น์ฌ๊ด - Introduce Polymorphic Creation With Factory Method
-
5์ 3์ผ
- ์ด์ ๋ฏผ - Replace Conditional Logic with Strategy
- ๊ณ ์ฉ์ค - Form Template Method
- ๊ฐ๋๋ช - Compose Method
- ๋ฐ์ง์ฑ - Replace Implicit Tree with Composite
-
5์ 10์ผ
- ์ค์๋ฏผ - Encapsulate Composite with Builder
- ๊น๊ฒฝ๋ ฌ - Move Accumulation to Collecting Parameter
- ์์ ํธ - Extract Composite
- ๊น๋ช ๊ด - Replace One/Many Distinctions with Composite
-
5์ 17์ผ
- ๋ฐ์งํธ - Extract Adapter
- ๊น๊ดํ - Unify Interfaces with Adapter
-
5์ 24์ผ
- ๊ฐ๋๋ช - Replace Conditional Dispatcher with Command
- ์ค์๋ฏผ - Replace Type Code with Class
- ์ ํฌ์ข - Replace State-Altering Conditionals with State
- ๋ฐ์ฃผํฌ - Introduce Null Object
- ๋ฐ์งํธ - Inline Singleton
- ๋ฐ์งํธ - Unify Interfaces
-
5์ 31์ผ
- ์ด์ ๋ฏผ - Limit Instantiation with Singleton
- ๋ฐ์ง์ฑ - Replace Hard-Coded Notifications with Observer
- ์ด๋ํ - Move Embellishment to Decorator
-
6์ 7์ผ
- ์ต์คํธ - Extract Parameter
- ๊น๊ฒฝ๋ ฌ - Move Creation Knowledge to Factory
- ์์ ํธ - Move Accumulation to Visitor
- ๊น๊ดํ - Replace Implicit Language with Interpreter