-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
KoSeonJe
commented
Aug 31, 2023
•
edited
Loading
edited
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.
선제님!! 정말 많이 늘었네요 ㅎㅎ,, 세션 + 오브젝트 스터디의 노력이 돋보이는 순간입니다 ㅎ 고생 많으셨어요~ 시간 나면 테스트 코드도 한번 작성해보세요!!
return new Car(name); | ||
} | ||
|
||
public void moveForward() { |
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.
pickNumberInRange는 Car 도메인 바깥에서 이뤄지는게 적합할 것 같아요!
import java.util.List; | ||
import java.util.stream.IntStream; | ||
|
||
public class RacingManager { |
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.
오 RacingGame - Manager로 이어지는 설계 아주 굿입니다 !
|
||
|
||
|
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.
띄어쓰기는 날려주세요!
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.
테스트 코드 없어도 될듯 이럴꺼면 삭제
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.
여기 안 지우고 여기 밑으로 구현해야함.
@@ -0,0 +1,8 @@ | |||
package message; | |||
|
|||
public class ErrorMessage { |
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.
final , private constructor or enum 고려
import java.util.List; | ||
import message.ErrorMessage; | ||
|
||
public class Validation { |
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.
public class Validation { | |
public class Validator { |
|
||
public class Validation { | ||
|
||
private final int CHARACTER_LIMIT =5; |
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.
이게 여기 있는게 맞나 모르겠다.
private final int CHARACTER_LIMIT =5; | |
private final int CHARACTER_LIMIT = 5; |
private RacingController racingController() { | ||
return new RacingController(new RacingServiceImpl()); | ||
} |
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.
Service 만드는 것도 메서드로 뺴기.
|
||
|
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.
public class Application { | ||
|
||
public static void main(String[] args) { | ||
// TODO 구현 진행 |
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.
주석 지우기
public FrontController(InputView inputView, OutputView outputView, | ||
RacingController racingController) { |
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.
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()); |
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.
outputView의 책임