[Set] #7 - 모듈 내 세부 계층 잡기, 리소스 추가#8
Merged
EunHee-Jeong merged 9 commits intoTeamRecorDream:developfrom Sep 24, 2022
Merged
Conversation
L-j-h-c
previously approved these changes
Sep 23, 2022
Contributor
There was a problem hiding this comment.
계층 세팅, 리소스 추가하느라 고생 많으셨습니다..! 몇가지 제안이 있어요~~
- 현재 디자인 관련 Resource들이 Presentation에 들어있는데, 제 생각에는 DSKit에 있는 것이 좀더 성격에 맞지 않나 싶습니다. Factory도 함꼐요!
- Domain 내부의 Entities를 Model로 바꾸면 좋을 것 같습니다. 현재 네트워크 모듈이 분리되어 있기 때문에 네트워크 모듈에서 받아온 것들을 Entity로 넣고, Entity에서 toDomain 메서드를 만들어서 model로 만들어주는 식으로 하면 좋을 것 같아요!
- Data 내부의 Repositories를 RepositoryImpl로, Domain 내부의 Interfae를 Repository로 바꾸는게 어떨까요? 근거는 Interface라는 네이밍이 모호하기 떄문입니다.
Member
Author
Domain
|- UseCases
|- Entities
|- API (== from network)
|- Model
|
Contributor
|
넵넵 의견 반영 감사합니다~~! 2에 대해서는 찾아보니 Entity도 좋을 것 같다는 생각이 드네요! 그런데 API를 Domain에 폴더링하기가 애매한 것이, 본래 네트워크는 Data Layer에 포함되기 때문에 따로 분리된 상태여야 한다고 생각합니다. 그래서 Entity는 그대로 살리고, 네트워크 모듈에 포함되는 데이터를 받아올 모델은 DTO(Data transfer Object)라고 네이밍해야할 것 같네요 DTO, Entity 3에서 개인적으로 Interface라는 네이밍이 애매하다고 생각하는 이유는, 다른 객체지향 프로그래밍 언어(Java)들에서 Interface란 단어가 일반적인 의미를 가지고 있기 때문입니다. 한 프로젝트 내에는 수많은 인터페이스가 존재할 수 있는데, 어떤 것에 대한 인터페이스인지에 대한 의미를 나타내는 데에 한계가 있어 혼동을 줄 수 있을 것 같습니다. RepositoryInterface라고 한다면 또 괜찮을 것 같기도 해요! |
added 2 commits
September 24, 2022 15:01
- DTO가 들어갈 장소를 Data 모듈로 할 지, Network 모듈로 할 지를 고민해보기로 함
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👻 작업한 내용
🎤 PR Point
📸 스크린샷
📮 관련 이슈