-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ 2๋จ๊ณ - ๋ชจ๋ธ๋ง ํ๊ธฐ #469
base: hoon25
Are you sure you want to change the base?
Conversation
- ๋งค์ฅํ ์ด๋ธ -> ์ฃผ๋ฌธํ ์ด๋ธ๋ก ๋ณ๊ฒฝ - ์ฃผ๋ฌธํ ์ด๋ธ ์๊ตฌ์ฌํญ ์ฌ์ ๋ฆฌ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋น ๋ฅด๊ฒ ๋ค์๋จ๊ณ๋ฅผ ์งํํด ์ฃผ์
จ๊ตฐ์! ๐
๋ณธ๊ฒฉ์ ์ธ ๋ฆฌ๋ทฐ์ ์ ํ๊ฐ์ง ์ง๊ณ ๋์ด๊ฐ์ผ ํ ๋ถ๋ถ์ด ์์ด ์ฝ๋ฉํธ ๋จ๊ฒจ๋๋ ธ์ต๋๋ค.
ํ์ธํ์๊ณ ํจ๊ป ๊ณ ๋ฏผํด ๋ณด๋ฉด ์ข์ ๊ฒ ๊ฐ์์ ๐
| ์ฃผ๋ฌธ์๋น | Served | ๋งค์ฅ์ด ์ฃผ๋ฌธ์ ์์ฑํ ์ํ | | ||
| ๋ฐฐ๋ฌ์ค | Delivering | ์ฃผ๋ฌธ์ ๋ํ ๋ฐฐ๋ฌ์ ์งํ์ค์ธ ์ํ | | ||
| ๋ฐฐ๋ฌ์๋ฃ | Delivered | ์ฃผ๋ฌธ์ ๋ํ ๋ฐฐ๋ฌ์ ์๋ฃํ ์ํ | | ||
| ์๋ฃ | Complete | ์ฃผ๋ฌธ์ ์งํ์ด ๋๋ ์ต์ข ์ํ | | ||
|
||
## ๋ชจ๋ธ๋ง |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ชจ๋ธ๋ง ํ๊ธฐ
์๊ตฌ ์ฌํญ์ ์๋์ ๊ฐ์ ๋ด์ฉ์ด ์ ํ์๋ ๊ฒ ์ฒ๋ผ
์ด๋ฒ ๋จ๊ณ๋ ์ฐฝํ๋์ด ์ด์ ๋จ๊ณ์์ ์์ฑํ์ ์๊ตฌ ์ฌํญ๊ณผ ์ฉ์ด ์ฌ์ ์ ๊ธฐ๋ฐ์ผ๋ก ๋ชจ๋ธ๋ง ํ๊ธฐ
๋ฏธ์
์ด๋ผ
์ด ์์น์ ๋ชจ๋ธ๋ง ๋ด์ฉ์ ์๋ก ์์ฑํด ์ฃผ์
์ผ ํ ๊ฒ ๊ฐ์์. ๐
๋ค์ ์ ๋ฆฌํด ์ฃผ์๋ฉด ๋ณธ๊ฒฉ์ ์ผ๋ก ๋ฆฌ๋ทฐ ์์ํ ๊ฒ์!
ํค์นํฌ์ค์ ์๊ตฌ ์ฌํญ๊ณผ ์ฉ์ด ์ฌ์ ์ ๊ธฐ๋ฐ์ผ๋ก README.md์ ๋ชจ๋ธ๋ง์ ํ๋ค.
์ด๋ฏธ ์๊ณ ๊ณ์๊ฒ ์ง๋ง ๋ชจ๋ธ๋งํ์๋ฉด์ ์๋กญ๊ฒ ๋์ถ๋๊ฑฐ๋ ๋ณ๊ฒฝ๋ ์ฌํญ๋ค์
๊ธฐ์กด ์๊ตฌ ์ฌํญ๊ณผ ์ฉ์ด ์ฌ์ ์๋ ๊ณ์ํด์ ๋ฐ์ํ์๋ฉด ๋ฉ๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฐฝํ๋์ด ์๊ฐํ์๊ณ ๊ณ์๋ ๋ชจ๋ธ๋ง์ด๋ ๋ฌด์์ธ์ง ์๊ฐ์ ๋๋ ์ค ์ ์์ผ์ค๊น์? ๐
๋ชจ๋ธ๋ง์ ๋ํ ์ ์๊ฐ์ ๋จผ์ ๋ง์๋๋ฆฌ์๋ฉด
์ ์๋ ์๊ตฌ์ฌํญ๊ณผ ์ฉ์ด๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ์ํ ๋๋ฉ์ธ ๊ฐ์ฒด์ ์์ฑ๊ณผ ์ํ๋ฅผ ๊ตฌ์ฑํด ๋ณด๊ณ
๊ฐ์ฒด ๊ฐ์ ๊ด๊ณ์ ํ๋์ ์ ์ํด ๋ณด๋ ์์
์ด๋ผ ์๊ฐํฉ๋๋ค.
๋ ๋จ์ํ๊ฒ ํํํ์๋ฉด ๋น์ฆ๋์ค ์๊ตฌ์ฌํญ์ ์ํํธ์จ์ด๋ก ๊ตฌํํ๊ธฐ ์ํ ์ถ์ํ ๋ฐ ๊ตฌ์ฒดํ ๊ณผ์ ๊ฐ์์.
๊ทธ๋์ ๋ชจ๋ธ๋ง ํ์ค ๋ ์ฌ์ฉ ์ฉ์ด๋ฅผ ๋ฏธ์
์ค๋ช
์์์ ๋์ ์๋ ํจํด์ฒ๋ผ ์๋ฌธ๋ณ์๋ช
ํํ๋ก ๋์ฒดํ๊ฑฐ๋ ๊ฐ์ด ์ ์ด์ฃผ๋ฉด
๊ตฌํ๋จ๊ณ์์ ์ข ๋ ํธํ๊ฒ ์งํํ์ค ์ ์์๊ฑฐ์์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ชจ๋ธ๋ง ํ๊ธฐ
๋ฅผ ์ด๋ป๊ฒ ์งํํด์ผํ ์ง ๋ฏธ๋ฆฌ ์ง๋ฌธ์ ํ ๊ฑธ ๊ทธ๋ฌ๋ค์๐ข
์ ๊ฐ ์๊ฐํ ๋ชจ๋ธ๋ง๋ ๋ฆฌ๋ทฐ์ด๋๊ณผ ๋น์ทํ๊ฒ ํ์ค์ธ๊ณ์ ๋ฌธ์ ๋ฅผ ์ํํธ์จ์ด์ ๋ง๊ฒ ์ถ์ํ
๊ณผ์ ์ด๋ผ๊ณ ์๊ฐํฉ๋๋ค.
๋ฆฌ๋ทฐ์ด๋์ด ์์ธํ๊ฒ ์ ์ด์ฃผ์ ๋๋ฉ์ธ ๊ฐ์ฒด์ ์์ฑ๊ณผ ์ํ
, ๊ฐ์ฒด๊ฐ์ ๊ด๊ณ์ ํ๋์ ์ ์
๋ถ๋ถ๋ ์ ๊ฒฝ์จ์ ์์ฑํด๋ณด์์ด์. ์น์ ํ ์ค๋ช
๊ฐ์ฌํฉ๋๋ค.๐
๋น ๋ฅธ ๋ฆฌ๋ทฐํด์ฃผ์ ์ ํญ์ ๊ฐ์ฌํฉ๋๋ค ๐โโ๏ธ๐โโ๏ธ ์ถ๊ฐ์ ์ผ๋ก ๊ถ๊ธํ๋ถ๋ถ์ด ์๋๋ฐ์. ๋ชจ๋ธ๋ง์ ๊ฐ๋ฐ์๋ค๊ณผ ๊ณต์ ํ๋ค๊ณ ์๊ฐํ๊ณ ์์ฑํด๋ ๊ด์ฐฎ์๊น์? |
๋ต! ๋ง์ต๋๋ค. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฏธ์
์งํ ์ ํด ์ฃผ์
จ์ต๋๋ค. ๐
๊ฐ์ด ๊ณ ๋ฏผํด ๋ณผ๋งํ ์ฝ๋ฉํธ๋ค์ ๋จ๊ฒจ๋๋ ธ์ผ๋ ํ์ธ ๋ถํ๋๋ฆด๊ป์~ ๐
README.md
Outdated
### Product | ||
- Product๋ ์๋ณ์์ price, name์ ๊ฐ์ง๋ค. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฌ์ํ์ง๋ง ์ ์ฒด์ ์ผ๋ก ์ฉ์ด๋ ๋ฐฑํฑ๋ฌธ์(`) ๊ฐ์ธ์ ์ฝ๊ฒ ๊ตฌ๋ถ๋์ด ๋ณด์ด๊ฒ ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์์.
- Product๋ ์๋ณ์์ price, name์ ๊ฐ์ง๋ค. | |
- `Product`๋ ์๋ณ์์ `price`, `name`์ ๊ฐ์ง๋ค. |
README.md
Outdated
- Menu์ name์ ํ์๊ฐ์ด๊ณ , PurgomalumClient๋ฅผ ํตํด ๋น์์ด๊ฐ ํฌํจ๋์ด ์์ง ์์์ง ํ์ธํ๋ค. | ||
- Menu๋ 1๊ฐ์ MenuProduct๋ฅผ ๋ฐ๋์ ๊ฐ์ง๋ค | ||
- MenuProduct์ quantity๋ 0๊ฐ ์ด์์ด์ด์ผ ํ๋ค. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quantitiy
์ธ์๋ MenuProduct
๋ฅผ ๊ตฌ์ฑํ๋ ์์ฑ์ด ๋ ์์ง ์์๊น์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋งคํํ ์ด๋ธ ์ฑํฅ์ ๊ฐ์ง ์์ฑ๋ค์ ๋ํด์๋ ๋ชจ๋ธ๋ง์ ์ ๋ถ ์ถ๊ฐ ์๋ฃํ์ด์!
README.md
Outdated
- TakeOutOrder๋ OrderMenus์ quantity๊ฐ 0๊ฐ ์ด์์ด์ด์ผ ํ๋ค | ||
|
||
- Order๋ฅผ ์ ์ํ๋ฉด Accepted๋ก ๋ณ๊ฒฝํ๋ค |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์
๋ณด๋ค๋ ์๋ฝ
์ด๋ผ๋ ํํ์ ์ฌ์ฉํด๋ณด๋ ๊ฒ์ ๋ํด ์ด๋ป๊ฒ ์๊ฐํ์ธ์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ ์ง๊ด์ ์ธ ์ฉ์ด๋ก ๋ณด์ด๋ค์!! ๋ฐ์์๋ฃํ์ด์๐
README.md
Outdated
|
||
- Order๋ฅผ ์ ์ํ๋ฉด Accepted๋ก ๋ณ๊ฒฝํ๋ค | ||
- DeliveryOrder๋ `DeliveryAgency`๋ฅผ ํธ์ถํ๋ค |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeliveryAgency
๋ฅผ ํธ์ถํ ๋ ์ด๋ค ์ ๋ณด๋ค์ ๋๊ฒจ์ผ ํ๋์ง๋ ๊ธฐ์ ํด ์ฃผ๋ฉด ์ข ๋ ๋ช
ํํด์ง์ง ์์๊น์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฐ์ ์๋ฃํ์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+) DeliveryAgency
์ ํธ์ถ๋ด์ฉ์ ์ ๋ค๋ณด๋ ์๊ธด ๊ถ๊ธ์ฆ
๋ฆฌ๋ทฐ์ด๋์ DeliveryAgency
์ ํ์ํ ๊ฐ๋ค์ ์ฐพ๋ ์ฑ
์์ ๋ ํด๋์ค์ค ์ด๋์ ๋์ค ๊ฒ ๊ฐ๋์?
DeliveryAgency
์ ๊ตฌํ์ฒดDeliveryAgency
๋ฅผ ํธ์ถํ๋ ๊ณณ(์ง๊ธ์DeliveryService
)
์ข ๋ ์ฌํํ๊ฒ
requestDelivery(UUID orderId)
vs requestDelivery(UUID orderId, BigDecimal amount, String deliveryAddress);
์ ๊ณ ๋ฏผ์ด๋ผ๊ณ ๋ณผ ์ ๋ ์์ ๊ฒ ๊ฐ๋ค์.
์ ์๊ฐ์ ๋จผ์ ์ ์ด๋ณด์๋ฉด ์ ๋ DeliveryAgency
์ ๊ตฌํ์ฒด์์ ํ๋ ๊ฒ์ด ์ ์ ํ๋ค ์๊ฐํ์ด์.
DeliverAgency
๊ฐ ์ฌ๋ฌ ์ธ๋ถ ์๋น์ค์ ์ธํฐํ์ด์ค๋ผ๋ฉด ๊ฐ ์ธ๋ถ ์๋น์ค๋ค์ด ์๊ตฌํ๋ ์คํ์ด ๊ฐ๊ฐ ๋ค๋ฅผ ๊ฒ์ด๊ณ ,OrderService
์์ orderId
๋ง ๋๊ฒจ์ฃผ๋๊ฒ, OrderService
์ DeliveryAgency
์ ๊ฒฐํฉ๋๋ฅผ ๋ฎ์ถ๊ฒ ๋๋ค๋ ์ฅ์ ์ด ์๋ค๊ณ ์๊ฐํ์ด์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+)
DeliveryAgency
์ ํธ์ถ๋ด์ฉ์ ์ ๋ค๋ณด๋ ์๊ธด ๊ถ๊ธ์ฆ๋ฆฌ๋ทฐ์ด๋์
DeliveryAgency
์ ํ์ํ ๊ฐ๋ค์ ์ฐพ๋ ์ฑ ์์ ๋ ํด๋์ค์ค ์ด๋์ ๋์ค ๊ฒ ๊ฐ๋์?
DeliveryAgency
์ ๊ตฌํ์ฒดDeliveryAgency
๋ฅผ ํธ์ถํ๋ ๊ณณ(์ง๊ธ์DeliveryService
)์ข ๋ ์ฌํํ๊ฒ
requestDelivery(UUID orderId)
vsrequestDelivery(UUID orderId, BigDecimal amount, String deliveryAddress);
์ ๊ณ ๋ฏผ์ด๋ผ๊ณ ๋ณผ ์ ๋ ์์ ๊ฒ ๊ฐ๋ค์.์ ์๊ฐ์ ๋จผ์ ์ ์ด๋ณด์๋ฉด ์ ๋
DeliveryAgency
์ ๊ตฌํ์ฒด์์ ํ๋ ๊ฒ์ด ์ ์ ํ๋ค ์๊ฐํ์ด์.
DeliverAgency
๊ฐ ์ฌ๋ฌ ์ธ๋ถ ์๋น์ค์ ์ธํฐํ์ด์ค๋ผ๋ฉด ๊ฐ ์ธ๋ถ ์๋น์ค๋ค์ด ์๊ตฌํ๋ ์คํ์ด ๊ฐ๊ฐ ๋ค๋ฅผ ๊ฒ์ด๊ณ ,OrderService
์์orderId
๋ง ๋๊ฒจ์ฃผ๋๊ฒ,OrderService
์DeliveryAgency
์ ๊ฒฐํฉ๋๋ฅผ ๋ฎ์ถ๊ฒ ๋๋ค๋ ์ฅ์ ์ด ์๋ค๊ณ ์๊ฐํ์ด์.
์คํธ! ํฅ๋ฏธ๋ก์ด ํ ๋ก ์ฃผ์ ๊ฐ ๋ ์ ์์ ๊ฒ ๊ฐ์์! ๐ฅ
๋จผ์ ์ฐฝํ๋์ ์๊ฒฌ์ ์ถฉ๋ถํ ํ๋น์ฑ ์๊ณ ํฉ๋ฆฌ์ ์ด๋ผ ์๊ฐํฉ๋๋ค! ๐
ํ์ง๋ง ์ ์ ๊ฒฝ์ฐ๋ ๋จ์ผ ์ฑ
์ ์์น(SRP)์ ๊ด์ ์์ ๋ค์ฌ๋ค ๋ณด์์ ๋
DeliveryAgency๋ฅผ ํธ์ถํ๋ ๊ณณ์์ ํ์ํ ๊ฐ๋ค์ ์ฐพ๋ ์ฑ
์์ ๋๋ ๊ฒ์ด ๋ ์ ์ ํ ๊ฒ ๊ฐ๋ค๋ ์๊ฒฌ์
๋๋ค.
์ฃผ ์ด์ ๋ DeliveryAgency๋ ์ธ๋ถ ๋ฐฐ๋ฌ ์๋น์ค์ ๋ํ ๋จ์ํ ์ธํฐํ์ด์ค ์ญํ ์ ํ๋ ๊ฒ์ ์ง์คํ๋๊ฒ ์ข์ ๊ฒ ๊ฐ์์์.
์ธ๋ถ ์๋น์ค ํธ์ถ์ ํ์ํ ๋ฐ์ดํฐ๋ฅผ ์ง์ ์กฐํํ๋ ๋ก์ง์ ํฌํจํ๊ฒ ๋๋ฉด
DeliveryAgency๋ ๋ฐฐ๋ฌ ์๋น์ค ํธ์ถ์ด๋ผ๋ ๋ณธ์ฐ์ ์ฑ
์ ์ธ์ ๋ฐ์ดํฐ ์กฐํ๋ผ๋ ๋ ๋ค๋ฅธ ์ฑ
์์ ์ง๊ฒ ๋๊ฒ ์ฃ .
DeliveryService๋ ๋ฐฐ๋ฌ ์ฒ๋ฆฌ๋ผ๋ ๋น์ฆ๋์ค ๋ก์ง์ ๋ด๋นํ๋ ๋ฐฐ๋ฌ ์์ฒญ์ ํ์ํ ์ ๋ณด์ ์ ๊ทผํ๊ธฐ ๋ ์ฌ์ธ ๊ฒ ๊ฐ๊ณ
์์งํ ์ ๋ณด๋ฅผ DeliveryAgency์ ์ ๋ฌํ๋๊ฒ ์์ฐ์ค๋ฌ์ ๋ณด์ฌ์.
์ ์ฐ์ฑ ์ธก๋ฉด์์๋ ๋ง์ฝ DeliveryAgency ๊ตฌํ์ฒด ๋ด๋ถ์์ ํ์ํ ์ ๋ณด๋ฅผ ์กฐํํ๋๋ก ํ๋ค๋ฉด
์ ๋ณด ์กฐํ ๋ฐฉ์์ด ๋ณ๊ฒฝ๋ ๋๋ง๋ค (์: ๋ค๋ฅธ ๋ฐ์ดํฐ ์์ค์์ ์กฐํ, ์กฐํ ๋ก์ง ๋ณ๊ฒฝ ๋ฑ) DeliveryAgency ๊ตฌํ์ฒด๋ฅผ ์์ ํด์ผ ํฉ๋๋ค.
๋ฐ๋ฉด์ DeliveryService๊ฐ ํ์ํ ์ ๋ณด๋ฅผ ์ค๋นํ๋ ๊ฒฝ์ฐ ์ ๋ณด ์กฐํ ๋ฐฉ์ ๋ณ๊ฒฝ์ DeliveryService ๋ด์์๋ง ์ด๋ฃจ์ด์ง๋ฏ๋ก DeliveryAgency๋ ๋ณ๊ฒฝ์ ์ํฅ์ ๋ฐ์ง ์์ ๊ฒ ๊ฐ์์.
์ฐฝํ๋์ DeliveryAgency๊ฐ ์ฌ๋ฌ ์ธ๋ถ ์๋น์ค์ ์ธํฐํ์ด์ค๋ผ๋ฉด ๊ฐ ์๋น์ค์ ์คํ์ด ๋ค๋ฅผ ์ ์๊ณ
OrderService์์ orderId๋ง ๋๊ฒจ์ฃผ๋ ๊ฒ์ด OrderService์ DeliveryAgency์ ๊ฒฐํฉ๋๋ฅผ ๋ฎ์ถ๋ค๊ณ ํ์
จ๋๋ฐ
DeliveryAgency๋ ๊ฐ ์๋น์ค์ ์ฐจ์ด์ ์ ์บก์ํํ์ฌ DeliveryService์๊ฒ ์ผ๊ด๋ ์ธํฐํ์ด์ค๋ฅผ ์ ๊ณตํ๋ ์ญํ ์ ํด์ผ ํ ๊ฒ ๊ฐ์์.
DeliveryAgency ๋ด๋ถ์์ ๊ฐ ์๋น์ค์ ๋ง๋ ๋ฐ์ดํฐ ๋ณํ์ด๋ ์ฒ๋ฆฌ๋ฅผ ์ํํ ์ ์์ง๋ง
๋ฐ์ดํฐ ์กฐํ ์์ฒด๋ฅผ DeliveryAgency์ ์ฑ
์์ผ๋ก ๋ณด๋ ๊ฒ์ ๊ณผ๋ํ ๊ฒ ๊ฐ์์.
๋ํ OrderService์์ orderId๋ง ๋๊ฒจ์ฃผ๋ ๊ฒ์ด ๊ฒฐํฉ๋๋ฅผ ๋ฎ์ถ๋ค๋ ์ ์ ์ผ๋ถ ๋์ํ์ง๋ง
์ด๋ DeliveryAgency๊ฐ ํน์ ๋๋ฉ์ธ(Order)์ ๊ฐํ๊ฒ ๊ฒฐํฉ๋๋ ๊ฒ์ ์๋ฏธํ ์ ๋ ์์ ๊ฒ ๊ฐ์์.
๊ทธ๋ฆฌ๊ณ DeliveryService๊ฐ ํ์ํ ์ ๋ณด๋ฅผ ์ง์ ์ ๋ฌํ๋ ๋ฐฉ์์ ๊ฒฝ์ฐ
DeliveryAgency๊ฐ ๋์ฑ ์ผ๋ฐ์ ์ธ ๋ชฉ์ ์ ์ํํ๋๋ก ๋ง๋ค์ด
OrderService ์ธ ๋ค๋ฅธ ์๋น์ค์์๋ ์ฌ์ฌ์ฉ๋ ๊ฐ๋ฅ์ฑ์ ๋์ผ ์ ์์ ๊ฒ ๊ฐ์์.
๋ฌผ๋ก ์ํฉ์ ๋ฐ๋ผ ์ฐฝํ๋์ ์๊ฒฌ์ด ๋ ์ ์ ํ ์๋ ์์ด์!
์๋ฅผ ๋ค๋ฉด DeliveryAddress๋ฅผ DeliveryService์์ ์ ๊ทผํ๊ธฐ ์ด๋ ต๊ฑฐ๋
DeliveryAgency ๋ด๋ถ์์ ์ต์ ํ๋ ๋ฐฉ์์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ์กฐํํ ์ ์๋ ํน๋ณํ ๊ฒฝ์ฐ์๋
์ฐฝํ๋์ ์๊ฒฌ์ด ๋ ํฉ๋ฆฌ์ ์ผ ์ ์์ต๋๋ค.
ํ์ง๋ง ์ ๋ SRP ์์น์ ๊ณ ๋ คํ์ ๋ ๋ฐ์ดํฐ๋ฅผ ์ค๋นํ๋ ์ฑ
์์ DeliveryService์ ์๋ ๊ฒ์ด ๋ ๋ฐ๋์งํ๋ค๊ณ ์๊ฐํ์ต๋๋ค.
์๊ณ ๋ง์ด ๋๋ฌด ๊ธธ์ด์ก๋๋ฐ ์ถ๊ฐ ์๊ฒฌ ์์ผ์๋ฉด ์ธ์ ๋ ์ง ๋ง์ํด ์ฃผ์ธ์. ๐
README.md
Outdated
- EatInOrder๋ OrderTable๋ฅผ ๊ฐ์ง๋ค | ||
- DeliveryOrder๋ deliveryAddress๋ฅผ ๊ฐ์ง๋ค | ||
- TakeOutOrder๋ ์กด์ฌํ๋ค |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ญ๊ฐ ์ด์ง ๋ถ์์ฐ์ค๋ฌ์ด ๋ฌธ์ฅ์ฒ๋ผ ๋๊ปด์ง๋๋ฐ TakeOutOrder๋ผ๋ ์ฃผ๋ฌธ ์ ํ์ด ์๋ค๋ ๊ฑธ ๋ํ๋ด์ ๊ฑธ๊น์?
๊ทธ๋ ๋ค๋ฉด OrderType์ โ, โ, โ ์ค ํ๋๋ค.
๋ผ๋ ์์ผ๋ก ์ ์ฒด๋ฅผ ๋์ดํด ์ฃผ๋ ๊ฑด ์ด๋จ๊น์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋๊ฐ์ง ๋ง์์ด ์์ฌ์ ์ ๋ ๊ฒ ํํ์ด ๋์๋ค์๐ข ๋ถ๋ฆฌํด์ ๋์ดํ์ด์!
README.md
Outdated
- OrderTable์ name์ ํ์๊ฐ์ด๋ค. | ||
- OrderTable Occupied ๋ณ๊ฒฝ | ||
- OrderTable์ Occupiedํ ๋ ์ ์ฝ์ ์๋ค |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์ฝ์ด ์๋ ๊ฒ์ ๊ตณ์ด ๋ช ์ํ ํ์๊ฐ ์์๊น์? ๐ค
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#469 (comment) ์ ๋์ผํ๊ฒ ๋ถ๋ฆฌํด์ ๋์ดํ์ด์!
์์
์๊ฐ์ ๋ฐ์ด๋๋ ์ปจํ
์คํธ์ ๊ฐ๋
์ ๋ฐฐ์ฐ์
จ๊ณ ๋ค์ ๋ฏธ์
๋ ๋ฐ์ด๋๋ ์ปจํ
์คํธ ์ค์ฌ์ ํจํค์ง ๊ตฌ์กฐ๋ก ๋ฆฌํฉํฐ๋งํ๊ธฐ ์ธ๋ฐ์. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํผ๋๋ฐฑ ํ๋ฅญํ๊ฒ ๋ฐ์ํด ์ฃผ์
จ์ด์! ๐
์ฐฝํ๋์ด ์ ๊ฒ ์ฃผ์ ์ง๋ฌธ์ ๋ต๋ณ๊ณผ ์ ๋ ์ฐฝํ๋๊ป ๋๋ฆฌ๋ ์ง๋ฌธ์ ๋จ๊ฒจ๋๋ ธ๋๋ฐ์.
ํ์ธํ์๊ณ PR์ฃผ์๋ฉด ๋ฐ๋ก ๋จธ์งํ๋๋ก ํ๊ฒ ์ต๋๋ค! ๐
์๋ ํ์ธ์ ๋ฆฌ๋ทฐ์ด๋ 2๋จ๊ณ๋ ์๋ถํ๋๋ฆฝ๋๋ค๐โโ๏ธ
๋๊ฐ์ง ์์ ์ ๋ฉ์ธ์ผ๋ก ์งํํ์ด์. ์ถ๊ฐ์ ์ผ๋ก ๋ฐ์ํด์ผ ํ๋๊ฒ ์ด ์์ผ๋ฉด ๋ฆฌ๋ทฐ ๋จ๊ฒจ์ฃผ์ธ์!