Skip to content
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주차] 3장 코드 구성하기_김민석 #25

Closed
v0o0v opened this issue Feb 21, 2022 · 1 comment
Closed

[2주차] 3장 코드 구성하기_김민석 #25

v0o0v opened this issue Feb 21, 2022 · 1 comment

Comments

@v0o0v
Copy link
Contributor

v0o0v commented Feb 21, 2022

p.30 첫번째 단락에 보면
"클린 아키텍처의 가장 본질적인 요건은 2장에서 배웠듯이 애플리케이션 계층이 인커밍/아웃고잉 어댑터에 의존성을 갖지 않는 것이다.
예제 코드의 웹 어댑터와 같이 인커밍 어댑터에 대해서는 그렇게 하기가 쉽다. 제어 흐름의 방향이 어댑터와 도메인 코드간의 의존성 방향과 같은 방향이기 때문이다."

이 내용이 잘 이해가 안되는데 설명 좀 해주실분?

@v0o0v v0o0v changed the title [2주차] 3장 코드 구성하기 김기현 [2주차] 3장 코드 구성하기 김민석 Feb 21, 2022
@v0o0v v0o0v changed the title [2주차] 3장 코드 구성하기 김민석 [2주차] 3장 코드 구성하기_김민석 Feb 21, 2022
@v0o0v
Copy link
Contributor Author

v0o0v commented Feb 23, 2022

제가 책 내용을 오해한거네요. 그렇게 하기가 쉽다는 게 포트를 두고 어댑터를 사용하는 아키텍처를 말하는 거였는데 저는 그 윗줄에 의존성을 갖지 않는 것이다에 대한 내용인 줄 알았습니다. 광훈님이 말씀해주셔서 책 138 페이지 "인커밍 포트 건너뛰기"를 보고 확실히 알게 되었습니다. 아무튼 인커밍 포트는 원래부터 의존성 역전이 필요없이 방향이 코어쪽을 향하고 있으니 포트나 어댑터 같은거 안쓰고 싶을 수 있지만 그러면 안된다 하는 내용이었습니다.

@v0o0v v0o0v closed this as completed Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant