-
Notifications
You must be signed in to change notification settings - Fork 748
Step2 : 사다리(생성) #2412
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
base: jhm9595
Are you sure you want to change the base?
Step2 : 사다리(생성) #2412
Conversation
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 static void main(String[] args) { | ||
|
||
String[] names = InputView.inputNames(); |
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.
String 배열을 사용해야만 하는 이유가 있을까요?
|
||
String[] names = InputView.inputNames(); | ||
|
||
int ladderHeight = InputView.inputLadderHeight(); |
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.
값 객체를 활용해보시면 좋을것 같습니다.
|
||
int ladderHeight = InputView.inputLadderHeight(); | ||
|
||
LinkedList<Line> lines = new LinkedList<>(); |
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.
line의 타입을 LinkedList라고 명시적으로 노출해야하는 이유가 있을까요?
@@ -0,0 +1,19 @@ | |||
package nextstep.util; | |||
|
|||
public class StringUtils { |
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 Line(Line previousLine) { | ||
for (Boolean hasPoint : previousLine.getPoints()) { | ||
points.add(!hasPoint && RandomUtils.nextBoolean()); | ||
} | ||
} |
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.
테스트가 불가능해보입니다.
테스트 코드가 없는것 같습니다. 테스트 코드 작성후 요청부탁드립니다. |
No description provided.