-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Step2 구현 완료 (Step1 마지막 피드백 반영) #124
Conversation
- LotteryNumber, LotteryTicket, LotteryWinningStatistics의 멤버변수에 final 지정 - LotteryMachine의numbersGenerator 멤버변수에 final 지정
가격을 나눠서 티켓의 갯수를 구하는 부분에서도 Money를 사용해야 할까? (갯수 != 돈)
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.
안녕하세요. :) 리뷰어 박현식입니다.
1단계에서 드렸던 피드백이 많이 반영됬네요!
전체적인 값객체 사용 👍
피드백 몇개 추가했구요. 참고하시고 궁금한 점 있으시면 DM 주세요. :)
인자로 전달받은 숫자목록에 중복이 포함되어 있는지 검사할 수 있음
전체적으로 변수명을 조금 변경하고, 피드백 주신 사항들 반영했습니다. |
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.
안녕하세요. 리뷰어 박현식입니다.
로또 랭킹 추상 메서드 구현 👍
전체적으로 깔끔하게 잘 구현해주셨어요.
2단계 머지할게요. :)
다만 몇가지 신경쓰이는 점, 및 개선할 수 있는 점 피드백 추가했습니다!
다음 단계 진행하시면서 같이 개선하시면 좋을 것 같아요 :)
안녕하세요 현식님! 2단계 구현에 대한 피드백 요청합니다.
1단계 마지막에 주신 피드백의 결과로 Money 클래스가 추가되었습니다.
한 가지 궁금한 점이, 가격을 나눠서 티켓의 갯수의 타입이 Money가 되어야 할까요? 아니면 새로운 클래스를 추가해야 할까요? (갯수 != 돈)
마지막으로, LotteryMachine에서 당첨번호 목록과 보너스 목록을 인자로 받아서 추첨을 수행하는데, WinningTicket의 생성자에 정의되 인자와 똑같습니다. 이런 경우, raffle의 인자 타입은 WinningTicket가 되어야 하는건가요? 그렇게 한다면, InputView에서 WinningTicket을 반환하는 것이 더 나은 구조가 되는거겠죠?