Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

banxzxx
Copy link

@banxzxx banxzxx commented May 6, 2024

No description provided.

@banxzxx banxzxx changed the title 전체 구현 [로또 미션] 방지원 미션 제출합니다. May 6, 2024
@Anhye0n
Copy link

Anhye0n commented May 7, 2024

안녕하세요 지원님! 코드리뷰를 맡게된 안정현입니다.
자바를 시작한지 얼마 안되어 실력이 많이 부족하지만 도움드릴 수 있도록 최대한 노력해보겠습니다!

@Anhye0n
Copy link

Anhye0n commented May 7, 2024

혹시 4단계 수동 입력은 개발이 아직 안된걸까요?

Copy link

Choose a reason for hiding this comment

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

README가 매우 깔끔하게 작성되어 있어서 보기 좋았습니다!
어떻게 설계하시면서 코딩을 하셨는지 잘 보여진 것 같아요.
제가 배워야될 것 같습니다. 감사합니다.

Comment on lines +19 to +25
private void checkValidate(String bonusNumber) {
if (!PATTERN.matcher(bonusNumber).matches()) {
throw new IllegalArgumentException("[ERROR] 올바르지 않은 입력값 입니다.");
}


}
Copy link

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;
Copy link

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(){
Copy link

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);
Copy link

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) {
Copy link

Choose a reason for hiding this comment

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

마찬가지로 Cnt가 Count로 바뀌면 좋을 것 같습니다!

Copy link

Choose a reason for hiding this comment

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

outputView의 파일이 너무 잘게 나눠져 있는 것 같습니다. 하나로 합쳐서 메서드로 표현해도 되지 않을까요?

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