-
Notifications
You must be signed in to change notification settings - Fork 0
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
Week1 필수과제 #1
Week1 필수과제 #1
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.
멋.찌.다. 선환아
if (id == binding.etMainId.text.toString() && password == binding.etMainPassword.text.toString()) { | ||
val intent = Intent(this, MainActivity::class.java) | ||
intent.putExtra("name", name) | ||
intent.putExtra("specialty", specialty) |
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.
여기서 "name", "specialty" 와 같은 부분은 매직리터럴이라고 합니다~
만약 MainActivity 에서 intent 로 부터 담긴 value 를 꺼내올때 key 에 오타가 있으면 컴파일 시점에는 잡히지 않는데,
런타임 시점에서는 버그로 발생되어지겠죵?
val name = binding.etSignupName.text | ||
val specialty = binding.etSignupSpecialty.text | ||
|
||
if(id.length !in 6..10){ |
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, else 처리는 개인적으로 코틀린 스럽지 않다고 생각되어지고요..
이런거 해결하는 방법들을 코틀린스럽게 에서 알려줄게요~
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.
성환이...최고.....💝
Issue Number
필수과제 수행
심화 과제
도전 과제
부족한 부분