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

Fix: static을 제거하여 전역 접근 제거 #8

Merged
merged 4 commits into from
Jun 24, 2024
Merged

Conversation

GeonH0
Copy link
Collaborator

@GeonH0 GeonH0 commented Jun 18, 2024

  • Mapper는 특정뷰에 종속적으로 될거 같아 전역적으로 접근하는건 불필요 할거 같아 static을 제거 하여 전역 접근을 제거 하였습니다.

@@ -31,6 +31,7 @@ class RecipeListViewModel: InputRecipeListViewModel, OutputRecipeListViewModel {
private let disposeBag = DisposeBag()
private let fetchFeedListUseCase: FetchFeedListUseCase
private let searchFeedListUseCase: SearchFeedListUseCase
private let mapper = RecipeMapper()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recipeListMapper로 더 명확한 네이밍을 가지면 좋을 것 같은데 어떻게 생각하시나요?

Copy link
Collaborator Author

@GeonH0 GeonH0 Jun 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d529f15 변경했습니다!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋아요! RecipeMapper 요 객체도 같이 변경되었으면 해요~
아무래도 레시피 서비스다 보니 Recipe로 시작하는 Mapper가 더 생길 것 같아서 명확히 하는게 좋을 것 같아요 😄

Copy link
Collaborator Author

@GeonH0 GeonH0 Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b5669b5
RecipeFetchMapper로 네이밍 변경했습니다!

@GeonH0 GeonH0 force-pushed the feature/feedList branch 2 times, most recently from 302230b to cdc8dfa Compare June 20, 2024 14:39
@GeonH0 GeonH0 force-pushed the feature/feedList branch from ef2b533 to b5669b5 Compare June 20, 2024 14:43
@f-lab-barry
Copy link

Mapper는 Presentation Layer에 속하기 때문에 Fetch 같은 로직을 담는 네이밍 보다는 UI에 가까운 네이밍을 선택하는 게 어때요?

Copy link

@GeonH0 GeonH0 merged commit 798fde0 into main Jun 24, 2024
2 checks passed
@GeonH0 GeonH0 deleted the feature/feedList branch September 12, 2024 00:59
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

Successfully merging this pull request may close these issues.

2 participants