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

Dependency Rule is Violated #3

Open
curran opened this issue Jun 29, 2018 · 2 comments
Open

Dependency Rule is Violated #3

curran opened this issue Jun 29, 2018 · 2 comments

Comments

@curran
Copy link

curran commented Jun 29, 2018

@unclebob Is it not true that all the arrows should point inward?

image

In this codebase, I see that CodecastDetailsUseCase (in package cleancoderscom.usecases) imports cleancoderscom.Context, which in turn imports cleancoderscom.gateways.CodecastGateway (from package cleancoderscom.gateways).

Therefore, doesn't the Use Case layer import from the Gateway layer, which violates the dependency rule?

@unclebob
Copy link
Contributor

unclebob commented Jun 29, 2018 via email

@curran
Copy link
Author

curran commented Jul 5, 2018

@unclebob Thank you so much for your response. I appreciate your presence here.

Thank you for all your contributions to the field. I've become a huge fan recently, watching all your talks on YouTube and trying to really implement Clean Architecture in a large project.

All the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants