Skip to content
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

Merged
merged 2 commits into from
Mar 22, 2025
Merged

Conversation

bourbonkk
Copy link

가급적 수업 때 말씀하셨던 부분들을 지키려고 신경써보았습니다.

Copy link
Member

@nooose nooose left a comment

Choose a reason for hiding this comment

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

민석님 안녕하세요!
로또 미션 리뷰어 성준혁입니다
MVC 패턴도 적용하셨고,
클래스 분리도 잘 되어있는 것 같네요 👍
다음 단계 넘어가기 전 리뷰 남겼어요
확인 후 재요청 부탁드립니다!

Copy link
Member

@nooose nooose left a comment

Choose a reason for hiding this comment

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

민석님! 피드백 반영해 주셨네요 😄
다음 단계 기대가 됩니다!
수고하셨습니다!

Comment on lines +13 to +14
Operator operator = new Operator(expressions.get(i));
result = operator.operate(result, new Operand(expressions.get(i + 1)));
Copy link
Member

Choose a reason for hiding this comment

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

Operator를 반복마다 인스턴스화 할 필요없을 것 같기도하네요 🤔
OperatorOperation을 꺼내오는 팩토리 역할로만 사용해도 좋았을 것 같다는 의견을 드리고 싶습니다!

var operation = Operator.getOperation(symbol);
var result = operation.operate(operand1, operand2);

@nooose nooose merged commit 7eb477d into next-step:bourbonkk Mar 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.

3 participants