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단계 - Tomcat 구현하기] 알파카(최휘용) 미션 제출합니다. #568

Merged
merged 11 commits into from
Sep 6, 2024

Conversation

slimsha2dy
Copy link
Member

안녕하세요 로빈! 벌써 세번째 만남이네요.. ㅎㅎ
시간 문제로 인해 1단계 및 리팩토링만 진행하고 제출하게 되었습니다.
조금이라도 개선이 필요해보이면 부담 없이 리뷰로 남겨주시길 바랍니다.
열심히 리뷰 반영해서 미션 잘 완성해보아요

@slimsha2dy slimsha2dy requested a review from robinjoon September 6, 2024 08:47
Copy link

@robinjoon robinjoon left a comment

Choose a reason for hiding this comment

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

안녕하세요 알파카! 세번째 만남인게 신기하네요 ㅋㅋㅋ 1단계만 해주셔서 크게 리뷰를 드릴만한 부분이 없었어요. 그래서 메서드 이름같은 자잘하다면 자잘한 부분에만 신경을 쓰게 되었네요.

HTTP에 대한 이해나 스레드 대한 이해 같은 것 역시 이번 단계에서 짚고 넘어가기에는 요구사항이 워낙 제한적인 단계라 적절하지 않다고 생각해서 남기지 않았어요. 다음 단계 구현 뒤에 리뷰 요청 주실 때는 알파카의 학습을 위해 HTTP나 스레드에 대해 질문을 남겨보려 합니다. 제가 더 잘 안다고 생각해서 하는 것은 아니고, 같이 이야기해보면서 학습해보고자하는 의도에요.

Comment on lines +18 to +23
InMemoryUserRepository.findByAccount(requestAccount)
.ifPresent(user -> {
if (user.checkPassword(requestPassword)) {
LOGGER.info(user.toString());
}
});

Choose a reason for hiding this comment

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

Optional을 잘 이용한다면 깊이를 줄일 수 있을 것 같아요.

Comment on lines +46 to +47
String resourceName = requestMapper.requestMapping(request);
String responseBody = parseStartLine(resourceName);

Choose a reason for hiding this comment

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

변수랑 메서드 이름이랑 잘 맞지 않는 것 같아요. requestMapper 가 requestMapping 을 한다는게 어떤 의미인지 알기 어렵네요.

parseStartLine()의 결과가 responseBody인 부분도 마찬가지로 의아하네요.

Comment on lines +22 to +24
public String getQueryStringData(String input) {
return queryString.get(input);
}

Choose a reason for hiding this comment

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

메서드 이름에 Data와 String이 둘 다 들어가는 부분이 어색하게 느껴지네요. 둘 중 하나만 들어가는건 어떤가요?

@robinjoon robinjoon merged commit d45988c into woowacourse:slimsha2dy Sep 6, 2024
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