-
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
[9주차] 08. 기능 이동 (~8.4) #8
Comments
느낀점함수 옮기기는 원래도 하고 있던 부분이라 특별할 건 없었다. class Customer(
val name: String,
private val discountRate: Double,
val contract: CustomerContract = CustomerContract(LocalDateTime.now(), discountRate)
) 문장을 함수 옮기기는 함수 추출을 할 때 어떤 과정으로 진행하면 깔끔하게 되는지를 보여주는 부분이었다. 코드 : https://github.com/minkukjo/refactoring/commits/master |
느낀점
8.1 ~ 8.4 정리8.1 함수 옮기기
함수를 옮겨야 하는 신호
옮길 장소를 정하기 어려울 때
함수 옮기기 리팩터링 절차
8.2 필드 옮기기
필드를 옮겨야하는 신호
필드 옮기기 리팩터링 절차
8.3 문장을 함수로 옮기기
문장을 함수로 옮겨야하는 신호
8.4 문장을 호출한 곳으로 옮기기
문장을 호출한 곳으로 옮겨야 하는 신호
|
진도
방식
The text was updated successfully, but these errors were encountered: