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

[로또 - 웹, DB] 효오 미션 제출합니다. #75

Merged
merged 33 commits into from
Jun 19, 2019

Conversation

hyojaekim
Copy link

No description provided.

hyojaekim added 30 commits May 28, 2019 15:15
Copy link
Contributor

@pobiconan pobiconan left a 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 {
Copy link
Contributor

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

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

Choose a reason for hiding this comment

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

DAO 구현부를 보면 많은 중복이 보인다.
중복을 제거할 수 있는 방법을 찾아본다.

Copy link
Contributor

@pobiconan pobiconan left a comment

Choose a reason for hiding this comment

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

Controller에 대한 인터페이스 추출 💯
DAO 중복 제거도 지금 단계에서는 최선인 것 같네요.
레벨3에서 미션으로 진행하니 기대해도 좋을 겁니다.

@pobiconan pobiconan merged commit ea15eb7 into woowacourse:hyojaekim Jun 19, 2019
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