Git Product home page Git Product logo

Comments (6)

BeokBeok avatar BeokBeok commented on August 22, 2024 1
Presentation Layer > Domain Layer < Data Layer

위와 같은 의존성 관계가 되어야 합니다.

1.implementation 이 android 프로젝트 내 build.gradle > dependencies {...} 내의 종속성을 의미하는것으로 이해하고 있습니다.

맞습니다

2.data 모듈에서 domain(Use Case)를 구현하기때문에 data 모듈이 domain 모듈을 implementation 하는것이지요?

UseCase는 domain 모듈에서 구현해야합니다.
만약 domain 모듈이 data 모듈을 implementation 하게 된다면, domain 모듈에서는 굳이 알 필요 없는 data 모듈의 구현체까지 전부 알게 됩니다.
domain 모듈이 data 모듈의 구현체를 알 경우, domain 모듈 빌드 시 data 모듈도 같이 빌드가 진행됩니다.
각 모듈간에는 서로 구현체를 모르는 것이 좋습니다.
ref. https://proandroiddev.com/compile-less-with-solid-bd0633c1f84

@ParkChan
domain 모듈이 data 모듈을 알 경우 -> domain 모듈이 data 모듈의 구현체를 알 경우
^ 수정했습니다

from cleanarchitecturestudy.

ParkChan avatar ParkChan commented on August 22, 2024

data 모듈은 domain 모듈을 implementation 해야 한다.
👉 domain 모듈은 data모듈을 implementation 해야 한다. 가 맞아보이는데 확인부탁드릴게요~!

from cleanarchitecturestudy.

BeokBeok avatar BeokBeok commented on August 22, 2024

domain 모듈은 data모듈을 implementation 해야 한다. 가 맞아보이는데 확인부탁드릴게요~!

이렇게 생각하신 이유가 무엇인가요?

data 모듈이 domain 모듈을 implementation 해야 하는 것이 맞습니다 😄

from cleanarchitecturestudy.

ParkChan avatar ParkChan commented on August 22, 2024

이렇게 생각하게 된 종속관계를 아래와 같이 생각하게 되면서 나온 질문이었습니다.
Presentation Layer > Domain Layer > Data Layer

1.implementation 이 android 프로젝트 내 build.gradle > dependencies {...} 내의 종속성을 의미하는것으로 이해하고 있습니다.
2.data 모듈에서 domain(Use Case)를 구현하기때문에 data 모듈이 domain 모듈을 implementation 하는것이지요?

from cleanarchitecturestudy.

ParkChan avatar ParkChan commented on August 22, 2024

의견 감사합니다. 모르고 있던 부분이었는데 이해에 도움이 되었습니다🤞

from cleanarchitecturestudy.

ParkChan avatar ParkChan commented on August 22, 2024

등록하여주신 요구사항대로 프로젝트를 구성하였습니다.

from cleanarchitecturestudy.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.