-
Notifications
You must be signed in to change notification settings - Fork 49
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
[로또 미션] 방지원 미션 제출합니다. #16
base: main
Are you sure you want to change the base?
Conversation
안녕하세요 지원님! 코드리뷰를 맡게된 안정현입니다. |
혹시 4단계 수동 입력은 개발이 아직 안된걸까요? |
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.
README가 매우 깔끔하게 작성되어 있어서 보기 좋았습니다!
어떻게 설계하시면서 코딩을 하셨는지 잘 보여진 것 같아요.
제가 배워야될 것 같습니다. 감사합니다.
private void checkValidate(String bonusNumber) { | ||
if (!PATTERN.matcher(bonusNumber).matches()) { | ||
throw new IllegalArgumentException("[ERROR] 올바르지 않은 입력값 입니다."); | ||
} | ||
|
||
|
||
} |
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.
mvc 패턴 중 view에 해당하는 inputView에서는 입력만 받고, 예외 처리 로직은 domain에서 작성하면 좋을 것 같습니다!
profit += 5000* Bingo.getBingo3().correctLotto; | ||
profit += 50000*Bingo.getBingo4().correctLotto; | ||
profit += 1500000*Bingo.getBingo5().correctLotto; | ||
profit += 30000000*Bingo.getBingo5wB().correctLotto; |
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.
"줄여 쓰지 않는다(축약 금지)"의 요구사항에 맞지 않는 것 같습니다.
w와 B가 with와 bonus를 의미한다면 풀어쓰는게 좋을 것 같습니다!
public class CalculateProfit { | ||
double profit = 0; | ||
|
||
public void calcProfit(){ |
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.
여기도 calc를 calculate으로 표현되면 좋을 것 같습니다!
private final List<Integer> numbers; | ||
|
||
public Lotto(List<Integer> numbers) { | ||
checkValidateCnt(numbers); |
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.
Cnt가 Count로 바뀌면 좋을 것 같습니다!
} | ||
} | ||
|
||
private void checkValidateCnt(List<Integer> numbers) { |
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.
마찬가지로 Cnt가 Count로 바뀌면 좋을 것 같습니다!
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.
outputView의 파일이 너무 잘게 나눠져 있는 것 같습니다. 하나로 합쳐서 메서드로 표현해도 되지 않을까요?
No description provided.