-
Notifications
You must be signed in to change notification settings - Fork 248
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
[로또 - 웹, DB] 효오 미션 제출합니다. #75
Conversation
…ning lotto numbers method
…on classes and interfaces
…al lotto, autto lotto
…d change WinningLotto Instance
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.
도메인 로직 변경을 최소화하면서 구현 잘 했네요. 💯
피드백할 부분도 많지 않네요.
그래도 의미있는 연습이 될 수 있으니 한번 도전해 보세요.
import java.util.Map; | ||
|
||
public class WebLottoController { | ||
public static String main(Request request, Response response) throws SQLException { |
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.
메소드 이름이 main()은 적합해 보이지 않음.
import java.util.Map; | ||
|
||
public class WebLottoController { | ||
public static String main(Request request, Response response) throws SQLException { |
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.
Controller의 모든 메소드 인자가 같은데 인터페이스로 구현해 보는 것은 어떨까?
private static final int TOTAL_MONEY_COLUMN = 7; | ||
private static final int YEILD_COLUMN = 8; | ||
|
||
public static void addResult(RankResult rank, Money money) throws SQLException { |
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.
DAO 구현부를 보면 많은 중복이 보인다.
중복을 제거할 수 있는 방법을 찾아본다.
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.
Controller에 대한 인터페이스 추출 💯
DAO 중복 제거도 지금 단계에서는 최선인 것 같네요.
레벨3에서 미션으로 진행하니 기대해도 좋을 겁니다.
No description provided.