-
Notifications
You must be signed in to change notification settings - Fork 53
[3단계-사다리] 이지윤 미션 제출합니다. #65
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
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.
고생하셨습니다!
빠르고 간결하게 3단계 미션을 잘 수행해주셨네요 👍
몇가지 코멘트 남겼으니 확인 부탁드릴게요!
src/main/java/view/OutputView.java
Outdated
public static void printLadderResult(final Ladder ladder, final Width width) { | ||
System.out.println(); | ||
for (int start = 0; start < width.value(); start++) { | ||
int end = ladder.move(start); | ||
System.out.println(start + LADDER_RESULT_ARROW + end); | ||
} | ||
} |
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.
view에서 move라는 도메인 로직이 수행되고 있네요!
다른 메소드들도 보니 view에 domain들이 노출되고 있는 형태로 보이는데요!
지난 미션에서 이야기했던 내용 중 DTO로 분리하는 시도를 해보는건 어떻게 생각하시나요?
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.
InputView에 대해서는 DTO 분리를 생각했는데 OutputView는 놓쳤던 것 같아요.
DTO로 분리해볼게요 !
지윤님 안녕하세요 3단계 미션 고생했습니다~ |
3단계도 고생 많으셨어요! 홧팅입니당~ 😊 |
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.
잘 반영해주셨네요! 💯
구조도 깔끔하고 요구사항도 잘 만족해주셨습니다 👍
안녕하세요 주노 🍀
3단계도 잘부탁드립니다!
🤔 고민한 부분
Direction Enum 도입
요구사항에
Java Enum을 적용한다.
을 어떻게 효율적으로 사용할 수 있을까 고민하다가 이번 사다리 게임의 움직임을 표현하는Direction
으로 적용 시켜봤어요!그리고 Enum 활용기를 참고했는데 제가 Enum을 효율적으로 잘 사용하고 있는걸까요? Direction에 포함시키면 좋을 로직이 더 있는지 궁금합니다.
Line과 Direction 역할 분배
Line 클래스에서
directionAt()
메서드를 통해 이동 방향을 반환하도록 설계했어요.처음에는 방향 정보를 별도 객체가 담당해야 할지 고민했는데 Line이 Point 리스트를 갖고 있으니 방향 정보를 알려주는 책임도 함께 지는 게 자연스럽다고 판단했어요.
🙋🏻♀️ 궁금한 부분