Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat/dip#15

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jinmyeongAN wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
fromfeat/DIP
Open

Feat/dip#15

jinmyeongAN wants to merge2 commits intomasterfromfeat/DIP

Conversation

@jinmyeongAN
Copy link

@jinmyeongANjinmyeongAN commentedAug 2, 2023
edited
Loading

What I did

의존성 역전 원칙 (DIP)에 대한 번역을 진행했습니다.

Problem

번역 자체는 큰 문제는 없어 보이지만, 이 예제가 과정 의존성 역전을 이해하기에 명확한 예시인지 모르겠습니다.

제가 생각하는 의존성 역전이란, 클래스를 상속할 때 최대한 추상화의 단계가 높은 (상위 클래스) 클래스를 의존해야 한다는 것 입니다.
하지만, 예제는 그것과는 거리가 좀 있어 보입니다.

kyc3492 reacted with eyes emoji
@kyc3492
Copy link

kyc3492 commentedAug 7, 2023
edited
Loading

해당 의견에 동의합니다. 의존성 역전에서의 나쁜 예시라면.write() 객체를 비효율적으로 2번 이상 호출하는 것을 보여줌으로써 추상화에 의존한 좋은 예시의 효과를 극대화했어야 한다 생각합니다.

해당 링크를 참고했습니다:링크
여기 링크의 장난감 예시가 개인적으로 엄청 간결하고 확실해보이네요 😁

@FacerAin
Copy link

저도 의견 주신 내용들처럼 예시가 DIP보다는 캡슐화에 가까워서 적절한 예시와는 거리가 있는 것 같습니다.
부모-자식 클래스들의 관계를 이용하여 예시를 들었다면 더욱 잘 이해됐을텐데 그 점이 조금 아쉬운 것 같습니다.
깔끔하게 번역하시느라 고생 많으셨습니당☺️☺️☺️☺️

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@FacerAinFacerAinAwaiting requested review from FacerAin

@kyc3492kyc3492Awaiting requested review from kyc3492

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@jinmyeongAN@kyc3492@FacerAin

[8]ページ先頭

©2009-2025 Movatter.jp