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

[7주차] COW-Spring-1 학습 (KoSeonJe) #5

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

KoSeonJe
Copy link

@KoSeonJe KoSeonJe commented Aug 31, 2023

스크린샷 2023-08-31 오후 5 29 45

Copy link
Member

@wonjunYou wonjunYou left a comment

Choose a reason for hiding this comment

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

선제님!! 정말 많이 늘었네요 ㅎㅎ,, 세션 + 오브젝트 스터디의 노력이 돋보이는 순간입니다 ㅎ 고생 많으셨어요~ 시간 나면 테스트 코드도 한번 작성해보세요!!

return new Car(name);
}

public void moveForward() {
Copy link
Member

Choose a reason for hiding this comment

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

pickNumberInRange는 Car 도메인 바깥에서 이뤄지는게 적합할 것 같아요!

import java.util.List;
import java.util.stream.IntStream;

public class RacingManager {
Copy link
Member

Choose a reason for hiding this comment

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

오 RacingGame - Manager로 이어지는 설계 아주 굿입니다 !

Comment on lines +27 to +29



Copy link
Member

Choose a reason for hiding this comment

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

띄어쓰기는 날려주세요!

Copy link
Member

Choose a reason for hiding this comment

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

테스트 코드 없어도 될듯 이럴꺼면 삭제

Copy link
Member

Choose a reason for hiding this comment

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

여기 안 지우고 여기 밑으로 구현해야함.

@@ -0,0 +1,8 @@
package message;

public class ErrorMessage {
Copy link
Member

Choose a reason for hiding this comment

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

final , private constructor or enum 고려

import java.util.List;
import message.ErrorMessage;

public class Validation {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public class Validation {
public class Validator {


public class Validation {

private final int CHARACTER_LIMIT =5;
Copy link
Member

Choose a reason for hiding this comment

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

이게 여기 있는게 맞나 모르겠다.

Suggested change
private final int CHARACTER_LIMIT =5;
private final int CHARACTER_LIMIT = 5;

Comment on lines +24 to +26
private RacingController racingController() {
return new RacingController(new RacingServiceImpl());
}
Copy link
Member

Choose a reason for hiding this comment

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

Service 만드는 것도 메서드로 뺴기.

Comment on lines +10 to +11


Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

public class Application {

public static void main(String[] args) {
// TODO 구현 진행
Copy link
Member

Choose a reason for hiding this comment

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

주석 지우기

Comment on lines +13 to +14
public FrontController(InputView inputView, OutputView outputView,
RacingController racingController) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public FrontController(InputView inputView, OutputView outputView,
RacingController racingController) {
public FrontController(
InputView inputView,
OutputView outputView,
RacingController racingController
) {

outputView.showRace(racingController.startRace(inputView.inputCar(), inputView.inputRound()));
outputView.showWinner(racingController.getWinner());
} catch (IllegalArgumentException e) {
System.out.println(e.getMessage());
Copy link
Member

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.

3 participants