-
Notifications
You must be signed in to change notification settings - Fork 25
π 4λ¨κ³ - GitHub(μΈκΈ° μ μ₯μ) #73
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
base: fbghgus123
Are you sure you want to change the base?
Conversation
- Preview interactiveModeμμ μ€λ΅λ°κ° λ ΈμΆλλλ‘ μμ
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.
μ΄μ λ¨κ³ νΌλλ°±κ³Ό Github(μΈκΈ° μ μ₯μ) λ―Έμ
νμλλΌ κ³ μνμ
¨μ΅λλ€. π
κ³ λ―Όν΄λ³Όλ§ν μ견λ€μ μ½λ§¨νΈλ‘ μμ±νμμΌλ, μΆ©λΆν κ³ λ―Όν΄λ³΄μκ³ λμ ν΄λ³΄μΈμ. πͺ
operator fun invoke(stars: Int): Boolean { | ||
return stars >= 50 | ||
} |
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.
Star κ°μκ° 50κ° μ΄μμΈμ§ νλ¨νλ λ‘μ§μ΄ domainμ UseCaseλ‘ λ£κ²λμμ΅λλ€. Hotμ νλ¨νλ λ‘μ§μ μλΉμ€ μ μ± μ κ²°μ λ κ²μΌλ‘ λΉμ¦λμ€ λ‘μ§μΌλ‘ νλ¨νμ¬ λλ©μΈ λ μ΄μ΄μ λ£μμ΅λλ€.
νΈνλμ΄ μκ°νμλ λΉμ¦λμ€ λ‘μ§κ³Ό UI λ‘μ§μ μ΄λ€ μ°¨μ΄μ μ΄ μλ κ²μΈμ§ κΆκΈν©λλ€! π€
λν UseCaseλ 무μμ΄λΌκ³ μκ°νμλμ§λ κΆκΈν©λλ€!
νμμ(actor) μ
μ₯μμ Hot μ¬λΆλ₯Ό νλ¨ν μ μλ건κ°μ? π€
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.
νΈνλμ΄ μκ°νμλ λΉμ¦λμ€ λ‘μ§κ³Ό UI λ‘μ§μ μ΄λ€ μ°¨μ΄μ μ΄ μλ κ²μΈμ§ κΆκΈν©λλ€! π€
λν UseCaseλ 무μμ΄λΌκ³ μκ°νμλμ§λ κΆκΈν©λλ€!
λΉμ¦λμ€ λ‘μ§μ΄λΌλ κ²μ λκ° μκ³ μλ€κ° ν μ€νΈλ‘ κΊΌλ΄μ΄ μ λ¬νλ €λ λ§μ μκ°μ΄ λλλ°μ, κ΄λ²μνκ³ κ²½κ³κ° μ λ§€ν΄ λ³΄μ΄λ λΉμ¦λμ€ λ‘μ§μ λλΌ λ§νκΈ°κ° νλ κ² κ°μ΅λλ€.
λ€λ§ μν€ν μ² κ΄μ μμ μ€λͺ ν΄ λ³΄μλ©΄ μ κ° μκ°νλ λΉμ¦λμ€ λ‘μ§μ΄λ, UI νΉμ λ°μ΄ν° λ μ΄μ΄μ μκ΄νμ§ μκ³ μ±μ μꡬμ¬νμ λ§μ‘±μν€κΈ° μν λ‘μ§μ λλ€. λλ¬Έμ λ€λ₯Έ UI λ μ΄μ΄λ λ°μ΄ν° λ μ΄μ΄κ° λ€λ₯Έ κ²μΌλ‘ κ΅μ²΄λμ΄λ μ μ§λμ΄μΌ νλ λ‘μ§μ λλ€.
μ μ¦μΌμ΄μ€λ μ΄λ¬ν λ‘μ§λ€μ λ΄κ³ μλ νλμ λ¨μλΌκ³ μκ°ν©λλ€.
UIλ‘μ§μ λ¨μνκ² λ§ κ·Έλλ‘ UIμ λν΄μλ§ κ΄μ¬μ κ°κ³ μλ λ‘μ§μ΄λΌκ³ μκ°νκ³ μμ΅λλ€.
νμμ(actor) μ μ₯μμ Hot μ¬λΆλ₯Ό νλ¨ν μ μλ건κ°μ? π€
μ¬κΈ°μ λ§μνμλ νμμκ° UIλΌκ³ μκ°μ΄ λλλ°μ, Hot μ¬λΆλ₯Ό νλ¨ν μ μλμ§ μλμ§λ UIμ λλ©μΈμ΄ λλ μ Έ μλ μν€ν μ³μμλ UIκ° Hot μ¬λΆλ₯Ό νλ¨νλ λ‘μ§μ κ°μ§λ©΄ μλλ€κ³ μκ°μ΄ λλλ€.
@@ -159,12 +165,25 @@ private fun RepositoryListEmptyScreenPreview() { | |||
} | |||
} | |||
|
|||
@SuppressLint("CoroutineCreationDuringComposition") |
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.
CoroutineCreationDuringCompositionκ° μ λ°μνλ 건κ°μ?
CoroutineCreationDuringCompositionμ΄ λ°μνμ§ μλλ‘ κ°μ ν΄λ³΄λ©΄ μ΄λ¨κΉμ?
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.
Composableμ΄ λ¦¬μ»΄ν¬μ§μ
λ λ λ§λ€ μ½λ£¨ν΄μ΄ μ€νλ μ μμμ λνλ΄λ κ²½κ³ κ°μ΅λλ€ ... !
μμ νκ² μ΅λλ€.
val fullName: String, | ||
val description: String, | ||
val stars: Int, | ||
val isHot: Boolean, |
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.
Star κ°μκ° 50κ° μ΄μμΈμ§ νλ¨νλ λ‘μ§μ΄ domainμ UseCaseλ‘ λ£κ²λμμ΅λλ€. Hotμ νλ¨νλ λ‘μ§μ μλΉμ€ μ μ± μ κ²°μ λ κ²μΌλ‘ λΉμ¦λμ€ λ‘μ§μΌλ‘ νλ¨νμ¬ λλ©μΈ λ μ΄μ΄μ λ£μμ΅λλ€.
isHotμ μν΄ RepositoryUiModelμ λ§λ€μ΄μ£Όμ κ²μΌλ‘ 보μ
λλ€.
νΈνλ λ§μμ μνλ©΄, Star κ°μλ₯Ό νλ¨νλ λ‘μ§μ domainμ μμ΄μΌνλ κ²μΌλ‘ μ΄ν΄λ₯Ό νλλ°μ.
κ·Έλ λ€λ©΄ isHotμ λν μ 보λ RepositoryUiModelμ΄ μλ Repositoryμ μμ΄μΌ νμ§ μμκΉμ? π€
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.
isHotμ λΆλ¬μ€λ λ‘μ§μ UIμ μμ΄μΌ νλκ±° μλκ°? λΌλ μκ°μ΄ λ€μ΄μ ViewModelμ μμ± νμλλ°μ,
리뷰μ΄λ λ§μμ λ³΄κ³ λ€μ μκ° ν΄λ³΄λ UI λ μ΄μ΄μμ isHotμ λ°λ‘ νΈμΆνλ κ² μμ²΄κ° λΉμ¦λμ€ λ‘μ§μ ν¬ν¨νκ³ μλ€λ μκ°μ΄ λλ€μ ...
Repositoryμ isHotμ λ€κ³ κ°μ΄ μ€λ κ² λ§λ κ² κ°μ΅λλ€...!
κ°μ
μμ λ΄μ©
리뷰μ΄λμκ²
μλ νμΈμ 리뷰μ΄λ.
리뷰 μ λΆνλ립λλ€!