-
Notifications
You must be signed in to change notification settings - Fork 3
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/#357] Profile / 프로필 수정 뷰 중고딩 부분 구현 #366
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대학생 부분이랑 전반적인 흐름이 비슷하네용 무한 스크롤 부분 참고하겠습니당 LGTM ~~~~~
object Success : ImageChangeState() | ||
object NotChanged : ImageChangeState() | ||
object Error : ImageChangeState() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
세심하시네욧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
커스텀 스테이트 굿굿티비!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿티비 고생하셨습니다!!!
object Success : ImageChangeState() | ||
object NotChanged : ImageChangeState() | ||
object Error : ImageChangeState() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
커스텀 스테이트 굿굿티비!!!
if (viewModel.grade.value != grade.toString()) { | ||
viewModel.grade.value = grade.toString() | ||
viewModel.isChanged = true | ||
(activity as SchoolProfileModActivity).checkIsGradeTextNone() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 이전 앱잼 멘토분께 받았던 피드백인데, as
를 활용하여 강제 타입 변환을 시키는 것은 crash를 야기할 수 있어 위험할 수 있는 습관이라고 합니다! 대체할 수 있는 방법을 생각해보면 어떨까요?
EX) 고차함수, 공유 뷰모델
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이것도 리팩토링하면서 고쳐보겠습니다 ! 액티비티를 액티비티로 타임 지정을 해주는 방법이라 괜찮다고 생각했는데, 혹시 모를 오류가 발생할 수도 있겠군요..!
_getSchoolListState.value = UiState.Empty | ||
} | ||
|
||
fun getUserDataFromServer() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
민주 PR에도 달았던 코리를 데려왔습니다!
뷰모델은 리포지토리의 함수가 서버 통신과 관련되었는지 로컬 디비와 관련되었는지 알 필요가 없기 때문에 네이밍에도 FromServer
같은 건 빼주는 게 추상화의 효과도 극대화되고 유지보수성이 향상되지 않을까요?
꼭 써주고 싶다면 차라리 리포지토리 함수에 명시하는 게 좋을 것 같다는 생각입니다...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아핫...! 함수 만들때 우리 서버랑 카카오랑 구분하려고 사용하던 습관이었슴니닷
담에 한번에 쏵 리팩토링 해볼겡요 ㅎㅎ
…into feat/#357-profile-mod-school
⛳️ Work Description
📸 Screenshot
KakaoTalk_Video_2024-02-02-18-28-09.mp4
📢 To Reviewers