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

부산대 Android_이지은 5주차 2단계(리팩토링 완료) #77

Open
wants to merge 22 commits into
base: jieunyume
Choose a base branch
from

Conversation

JieunYume
Copy link

@JieunYume JieunYume commented Jul 26, 2024

중점적으로 봐주셨으면 하는 부분

JieunYume added 16 commits July 26, 2024 00:19
…se를 사용하여 데이터를 관리하도록 변경

- SavedLocation에 id 속성을 추가하기 위해서 Location에도 id 속성 추가(Kakao api에서 id 값을 가져온다)
- Location을 객체 직렬화 후 intent로 클래스를 전달하도록 수정
- 5주차 2단계 기능 목록 작성
Copy link

@bigstark bigstark left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 지은님! 전반적으로 좋은 방향으로 코드가 좋아지고 있는 것 같아요! 안드로이드 아키텍쳐coroutine best practices 등 조금 더 참고하여 조금씩 변경해주시면 좋을 것 같아요!!


data binding 사용을 전반적으로 변경해주셔서 좋은 것 같아요! ViewHolder bind 시에 setOnClickListener 를 하는 것만 변경해주시면 좋을 것 같습니다 :)

inner class LocationHolder(
itemView: View,
inner class LocationViewHolder( //
private val itemLocationBinding: ItemLocationBinding,

Choose a reason for hiding this comment

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

👍

Comment on lines 47 to 48
} // -> item_saved_location.xml에서 data binding을 통해 ImageView에 리스너를 달았는데 작동을 안하네요..! 여기서 리스너를 달아도 괜찮은 걸까요?
}

Choose a reason for hiding this comment

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

안됩니다. bind 시에 setOnClickListener 를 추가하는 것은 좋지 않아요!

@JieunYume JieunYume changed the title 부산대 Android_이지은 5주차 2단계 부산대 Android_이지은 5주차 2단계(리팩토링 완료) Jul 30, 2024
Copy link

@bigstark bigstark left a comment

Choose a reason for hiding this comment

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

고생 많으셨어요 지은님! 리뷰는 6단계에서 반영해주시면 됩니닷!


@Singleton
@Provides
fun provideDispatchers(): CoroutineDispatcher {

Choose a reason for hiding this comment

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

CoroutineDispatcher 와 같은 abstract class 나 interface 는 다형성을 띄기 때문에 문제가 발생할 수 있어요.
Qualifer annotation 같은 것으로 "어떤 객체인지" 명확하게 보여주는 것이 좋습니다!

itemView.setOnClickListener {
itemSelectedListener.onLocationViewClicked(item)
}
itemLocationBinding.onItemSelectedListener = itemSelectedListener

Choose a reason for hiding this comment

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

으악 ㅋㅋ 이것도 안하시는 것이 좋아요! 필요하다면 init 시점에서 처리해주시는 것이 좋습니다!

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