Skip to content

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

Open
wants to merge 3 commits into
base: jhm9595
Choose a base branch
from
Open

Step2 : 사다리(생성) #2412

wants to merge 3 commits into from

Conversation

jhm9595
Copy link

@jhm9595 jhm9595 commented Apr 22, 2025

No description provided.

Copy link

@pci2676 pci2676 left a 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();
Copy link

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();
Copy link

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<>();
Copy link

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

Choose a reason for hiding this comment

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

모든 유틸성 코드는 제거하고 책임을 부여한 객체를 활용해보면 좋을것 같습니다.

Comment on lines +25 to +29
public Line(Line previousLine) {
for (Boolean hasPoint : previousLine.getPoints()) {
points.add(!hasPoint && RandomUtils.nextBoolean());
}
}
Copy link

Choose a reason for hiding this comment

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

테스트가 불가능해보입니다.

@pci2676
Copy link

pci2676 commented Apr 22, 2025

테스트 코드가 없는것 같습니다. 테스트 코드 작성후 요청부탁드립니다.

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