-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
1단계 - 문자열계산기 #3987
1단계 - 문자열계산기 #3987
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.
민석님 안녕하세요!
로또 미션 리뷰어 성준혁입니다
MVC 패턴도 적용하셨고,
클래스 분리도 잘 되어있는 것 같네요 👍
다음 단계 넘어가기 전 리뷰 남겼어요
확인 후 재요청 부탁드립니다!
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.
민석님! 피드백 반영해 주셨네요 😄
다음 단계 기대가 됩니다!
수고하셨습니다!
Operator operator = new Operator(expressions.get(i)); | ||
result = operator.operate(result, new Operand(expressions.get(i + 1))); |
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.
Operator
를 반복마다 인스턴스화 할 필요없을 것 같기도하네요 🤔
Operator
는 Operation
을 꺼내오는 팩토리 역할로만 사용해도 좋았을 것 같다는 의견을 드리고 싶습니다!
var operation = Operator.getOperation(symbol);
var result = operation.operate(operand1, operand2);
가급적 수업 때 말씀하셨던 부분들을 지키려고 신경써보았습니다.