-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: translate code smells documentation pages into korean (#767)
* docs: code smells cross-imports page translated into Korean * docs: code smells desegmented page translated into Korean * docs: code smells routes page translated into Korean * docs: code small page feedback
- Loading branch information
Showing
4 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
i18n/kr/docusaurus-plugin-content-docs/current/guides/issues/_category_.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
label: Code smells & Issues | ||
position: 4 |
21 changes: 21 additions & 0 deletions
21
i18n/kr/docusaurus-plugin-content-docs/current/guides/issues/cross-imports.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_class_name: sidebar-item--wip | ||
pagination_next: reference/index | ||
--- | ||
|
||
import WIP from '@site/src/shared/ui/wip/tmpl.mdx' | ||
|
||
# ํฌ๋ก์ค ์ํฌํธ | ||
|
||
<WIP ticket="220" /> | ||
|
||
> Cross-import๋ Layer๋ ์ถ์ํ๊ฐ ์๋์ ์ฑ ์ ๋ฒ์๋ฅผ ๋์ด์ค ๋ ๋ฐ์ํฉ๋๋ค. ๋ฐฉ๋ฒ๋ก ์์๋ ์ด๋ฌํ Cross-import๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํ ๋ณ๋์ Layer๋ฅผ ์ ์ํฉ๋๋ค. | ||
## ์ฐธ๊ณ ์๋ฃ | ||
|
||
- [(์ค๋ ๋) Cross-import๊ฐ ๋ถ๊ฐํผํ ์ํฉ ๋ ผ์](https://t.me/feature_sliced/4515) | ||
- [(์ค๋ ๋) Entity์์ Cross-import ํด๊ฒฐ ๋ฐฉ๋ฒ](https://t.me/feature_sliced/3678) | ||
- [(์ค๋ ๋) Cross-import์ ์ฑ ์ ๋ฒ์ ๊ด๊ณ](https://t.me/feature_sliced/3287) | ||
- [(์ค๋ ๋) Segment ๊ฐ import ์ด์ ํด๊ฒฐ](https://t.me/feature_sliced/4021) | ||
- [(์ค๋ ๋) Shared ๋ด๋ถ ๊ตฌ์กฐ์ Cross-import ํด๊ฒฐ](https://t.me/feature_sliced/3618) |
97 changes: 97 additions & 0 deletions
97
i18n/kr/docusaurus-plugin-content-docs/current/guides/issues/desegmented.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_class_name: sidebar-item--wip | ||
--- | ||
|
||
import WIP from '@site/src/shared/ui/wip/tmpl.mdx' | ||
|
||
# Desegmentation | ||
|
||
<WIP ticket="148" /> | ||
|
||
## ์ํฉ | ||
|
||
ํ๋ก์ ํธ์์ ๋์ผํ ๋๋ฉ์ธ์ ๋ชจ๋๋ค์ด ์๋ก ์ฐ๊ด๋์ด ์์์๋ ๋ถ๊ตฌํ๊ณ , ํ๋ก์ ํธ ์ ์ฒด์ ๋ถํ์ํ๊ฒ ๋ถ์ฐ๋์ด ์๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ต๋๋ค. | ||
|
||
```sh | ||
โโโ components/ | ||
| โโโ DeliveryCard | ||
| โโโ DeliveryChoice | ||
| โโโ RegionSelect | ||
| โโโ UserAvatar | ||
โโโ actions/ | ||
| โโโ delivery.js | ||
| โโโ region.js | ||
| โโโ user.js | ||
โโโ epics/ | ||
| โโโ delivery.js | ||
| โโโ region.js | ||
| โโโ user.js | ||
โโโ constants/ | ||
| โโโ delivery.js | ||
| โโโ region.js | ||
| โโโ user.js | ||
โโโ helpers/ | ||
| โโโ delivery.js | ||
| โโโ region.js | ||
| โโโ user.js | ||
โโโ entities/ | ||
| โโโ delivery/ | ||
| | โโโ getters.js | ||
| | โโโ selectors.js | ||
| โโโ region/ | ||
| โโโ user/ | ||
``` | ||
|
||
## ๋ฌธ์ ์ | ||
|
||
์ด๋ ๋์ ์์ง๋ ์์น์ ์๋ฐํ๋ฉฐ, **Changes Axis์ ๊ณผ๋ํ ํ์ฅ**์ ์ด๋ํฉ๋๋ค. | ||
|
||
## ๋ฌด์ํ์ ๋์ ๊ฒฐ๊ณผ | ||
|
||
- delivery ๊ด๋ จ ๋ก์ง ์์ ์ ์ฌ๋ฌ ์์น์ ์ฝ๋๋ฅผ ์ฐพ์ ์์ ํด์ผ ํ๋ฉฐ, ์ด๋ **Changes Axis๋ฅผ ๋ถํ์ํ๊ฒ ํ์ฅ**ํฉ๋๋ค | ||
- user ๊ด๋ จ ๋ก์ง์ ์ดํดํ๋ ค๋ฉด ํ๋ก์ ํธ ์ ๋ฐ์ **actions, epics, constants, entities, components**๋ฅผ ๋ชจ๋ ์ฐพ์๋ด์ผ ํฉ๋๋ค | ||
- ์๋ฌต์ ์ฐ๊ฒฐ๋ก ์ธํด ๋๋ฉ์ธ ์์ญ์ด ๋น๋ํด์ง๊ณ ๊ด๋ฆฌ๊ฐ ์ด๋ ค์์ง๋๋ค | ||
- ๋ถํ์ํ ํ์ผ๋ค์ด ์์ฌ ๋ฌธ์ ์ธ์์ด ์ด๋ ค์์ง๋๋ค | ||
|
||
## ํด๊ฒฐ ๋ฐฉ์ | ||
|
||
๋๋ฉ์ธ์ด๋ use case์ ๊ด๋ จ๋ ๋ชจ๋๋ค์ ํ ๊ณณ์ ๋ชจ์ ๋ฐฐ์นํฉ๋๋ค. | ||
|
||
์ด๋ฅผ ํตํด ๋ชจ๋ ํ์ต์ด๋ ์์ ์ ํ์ํ ๋ชจ๋ ์์๋ฅผ ์ฝ๊ฒ ์ฐพ์ ์ ์์ต๋๋ค. | ||
|
||
> ์ด ์ ๊ทผ์ ์ฝ๋๋ฒ ์ด์ค์ ํ์์ฑ๊ณผ ๊ฐ๋ ์ฑ์ ๋์ด๊ณ , ๋ชจ๋ ๊ฐ ๊ด๊ณ๋ฅผ ๋ ๋ช ํํ๊ฒ ๋ณด์ฌ์ค๋๋ค. | ||
```diff | ||
- โโโ components/ | ||
- | โโโ DeliveryCard | ||
- | โโโ DeliveryChoice | ||
- | โโโ RegionSelect | ||
- | โโโ UserAvatar | ||
- โโโ actions/ | ||
- | โโโ delivery.js | ||
- | โโโ region.js | ||
- | โโโ user.js | ||
- โโโ epics/{...} | ||
- โโโ constants/{...} | ||
- โโโ helpers/{...} | ||
โโโ entities/ | ||
| โโโ delivery/ | ||
+ | | โโโ ui/ # ~ components/ | ||
+ | | | โโโ card.js | ||
+ | | | โโโ choice.js | ||
+ | | โโโ model/ | ||
+ | | | โโโ actions.js | ||
+ | | | โโโ constants.js | ||
+ | | | โโโ epics.js | ||
+ | | | โโโ getters.js | ||
+ | | | โโโ selectors.js | ||
+ | | โโโ lib/ # ~ helpers | ||
| โโโ region/ | ||
| โโโ user/ | ||
``` | ||
|
||
## ์ฐธ๊ณ ์๋ฃ | ||
|
||
* [(์ํฐํด) Coupling๊ณผ Cohesion์ ๋ช ํํ ์ดํด](https://enterprisecraftsmanship.com/posts/cohesion-coupling-difference/) | ||
* [(์ํฐํด) Coupling, Cohesion๊ณผ Law of Demeter](https://medium.com/german-gorelkin/low-coupling-high-cohesion-d36369fb1be9) |
46 changes: 46 additions & 0 deletions
46
i18n/kr/docusaurus-plugin-content-docs/current/guides/issues/routes.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_class_name: sidebar-item--wip | ||
sidebar_label: Routing | ||
--- | ||
|
||
import WIP from '@site/src/shared/ui/wip/tmpl.mdx' | ||
|
||
# Routing | ||
|
||
<WIP ticket="169" /> | ||
|
||
## ์ํฉ | ||
|
||
Page์ URL์ด ํ์ Layer์ ํ๋์ฝ๋ฉ๋์ด ์๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค. | ||
|
||
```tsx title="entities/post/card" | ||
<Card> | ||
<Card.Title | ||
href={`/post/${data.id}`} | ||
title={data.name} | ||
/> | ||
... | ||
</Card> | ||
``` | ||
|
||
## ๋ฌธ์ ์ | ||
|
||
URL์ด Page Layer์ ์ง์ค๋์ง ์๊ณ , ํ์ Layer์ ๋ถ์ฐ๋์ด ๊ด๋ฆฌ๋ฉ๋๋ค. | ||
|
||
## ๋ฌด์ํ์ ๋์ ๊ฒฐ๊ณผ | ||
|
||
URL ๋ณ๊ฒฝ ์ Page Layer ์ธ์ ์ฌ๋ฌ ํ์ Layer์ ์๋ URL๊ณผ redirect ๋ก์ง์ ๋ชจ๋ ๊ณ ๋ คํด์ผ ํฉ๋๋ค. | ||
|
||
๊ฒฐ๊ณผ์ ์ผ๋ก ๋จ์ํ Product Card ๊ฐ์ Component๋ Page์ ์ฑ ์์ ๊ฐ์ง๊ฒ ๋์ด, ํ๋ก์ ํธ ๊ตฌ์กฐ๊ฐ ๋ถํ์ํ๊ฒ ๋ณต์กํด์ง๋๋ค. | ||
|
||
## ํด๊ฒฐ ๋ฐฉ์ | ||
|
||
URL๊ณผ redirect ๋ก์ง์ Page Layer์ ๊ทธ ์์ Layer์์๋ง ๋ค๋ฃจ๋๋ก ํฉ๋๋ค. | ||
|
||
์ด๋ฅผ ์ํด composition, props ์ ๋ฌ, Factory ํจํด ๋ฑ์ ํ์ฉํด URL ์ ๋ณด๋ฅผ ํ์ Layer์ ์ ๋ฌํฉ๋๋ค. | ||
|
||
## ์ฐธ๊ณ ์๋ฃ | ||
|
||
- [(์ค๋ ๋) Entity/Feature/Widget์์ Routing ์ฒ๋ฆฌ์ ์ํฅ](https://t.me/feature_sliced/4389) | ||
- [(์ค๋ ๋) Page์์๋ง Route ๋ก์ง์ ๋ค๋ค์ผ ํ๋ ์ด์ ](https://t.me/feature_sliced/3756) |