Skip to content

3주차 미션 구현(김종하)#1

Open
whdgk0602 wants to merge 5 commits intoallrounder-backend:mainfrom
whdgk0602:whdgk0602
Open

3주차 미션 구현(김종하)#1
whdgk0602 wants to merge 5 commits intoallrounder-backend:mainfrom
whdgk0602:whdgk0602

Conversation

@whdgk0602
Copy link

급하게 구현해서 여기저기 이상한 부분이 많습니다.
시간이 많지 않아 기능 구현에만 집중했습니다.

@whdgk0602 whdgk0602 changed the title Whdgk0602 3주차 미션 구현(김종하) Apr 8, 2025
Copy link
Contributor

@moongua404 moongua404 left a comment

Choose a reason for hiding this comment

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

3주차 미션 수고 많으셨습니다!

if (ink < requiredInk) return false;
ink -= requiredInk;
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

의미를 잉크 사용에 둔다면 반환형을 없애고 예외로 처리해도 괜찮을거같아요

}
output.append(System.lineSeparator());
}
view.displayAscii(output.toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

가독성이 떨어지는 것 같아요
stream API로 충분히 대체 가능할 것 같아요


import java.util.List;

public class Printer {
Copy link
Contributor

Choose a reason for hiding this comment

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

printer를 모델로 두셨나요? 모델로 두셨다면 MVC 패턴 상에서 뷰의 의존성을 모델이 지고 있는게 부적절한 것 같아요.

view.displayMessage("프로그램을 종료합니다.");
break;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

예외처리도 고려하시면 좋을 것 같아요

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