Skip to content

[정현수_Android] 9-1주차 과제 제출 - #10

Open
Rickettsia1234 wants to merge 6 commits into
BCSDLab-Edu:mainfrom
Rickettsia1234:week9-1
Open

[정현수_Android] 9-1주차 과제 제출 #10
Rickettsia1234 wants to merge 6 commits into
BCSDLab-Edu:mainfrom
Rickettsia1234:week9-1

Conversation

@Rickettsia1234

Copy link
Copy Markdown

No description provided.

@JaeYoung290 JaeYoung290 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

수고 많으셨습니다!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

추후 clean architecture 설계를 할 때는 domain, data 계층을 분리하시면 더 좋을 것 같습니다(현재 과제에서는 선택사항이라 문제 없습니다).
예를 들어 실제 데이터를 저장하는 기능을 구현한다면 직접적으로 로컬db나 api로 데이터를 조회하는 로직은 data 계층, 이것에 대한 추상 인터페이스를 domain 계층에 두고 viewmodel이 domain 계층에 의존성을 가지도록 구현 가능합니다.

Comment on lines +25 to +29
if (data != null) {
val mode = data.getStringExtra("mode")
val word = data.getStringExtra("word").orEmpty()
val meaning = data.getStringExtra("meaning").orEmpty()
val uri = data.getStringExtra("imageUri")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

여기 있는 키들도 companion object에 상수로 선언하는 것이 좋아보입니다.

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