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

feat/#19: week7 compose 과제 구현 #20

Open
wants to merge 27 commits into
base: develop-compose
Choose a base branch
from

Conversation

youjin09222
Copy link
Collaborator

@youjin09222 youjin09222 commented Jun 7, 2024

Related issue 🛠

Work Description ✏️

  • Repository를 활용하여 UI와 Data로직 분리

Screenshot 📸

KakaoTalk_20240508_163749744.mp4

To Reviewers 📢

week_4 브랜치가 안합쳐져서 뭐가 많습니다..

+일단 pr 올렸는데 오류 있어서 빨리 고치겠습니다..

@youjin09222 youjin09222 requested review from kez-lab and a team June 7, 2024 13:56
@youjin09222 youjin09222 self-assigned this Jun 7, 2024
Copy link
Member

@boiledEgg-s boiledEgg-s left a comment

Choose a reason for hiding this comment

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

코드 진짜 진짜 깔끔해요! 보면서 반성하게 되네요,,
xml이랑 비슷하게 짜신 것 같아 궁금한 건 거기 물어봤어요~
너무 고생하셨습니두!

Copy link

@hyeeum hyeeum left a comment

Choose a reason for hiding this comment

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

역시 너무 잘하시네요 특히 fold를 사용하신 점이 가장 인상깊었어요...!

return withContext(Dispatchers.IO) {
runCatching {
authService.postLogin(request)
}.fold(
Copy link

Choose a reason for hiding this comment

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

오 fold는 처음 보는데요? runCatching은 onSuccess/onFailure만 알고있었는데 이런 방법도 있군요!

}
}
}
}
}

@Composable
fun MainView(userId: String, userPw: String, userName: String, userDescription: String) {
fun MainView(viewModel: UserInfoViewModel) {
Copy link

Choose a reason for hiding this comment

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

오 완전 간결해졌네요 마음의 평화가..!..

viewModel: SignUpViewModel,
context: Context,
userId: String,
userPw: String,
Copy link

Choose a reason for hiding this comment

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

저두 pw 를 썼는데 축약어는 최대한 지양하는게 좋다고 말해주시더라구요..!

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

Successfully merging this pull request may close these issues.

3 participants