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

feat: 리뷰어 리뷰이 매칭 및 매칭 결과 공지 #18

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

davidolleh
Copy link
Collaborator

작업 내용

  • 리뷰어 리뷰이 매칭 및 결과 공지 기능을 구현하였습니다.

스크린샷 2025-02-27 오전 4 16 19

SlashCommand 안에 자동완성 기능이 포함되어 있습니다. 그래서 자동완성 기능을 가진 SlashCommand를 그림과 같이 상속을 통해서 표현했습니다. ReviewMatchListener는 SlashCommand를 상속받은 AutoCompleteInteraction를 구현했기에 자동으로 이벤트로 등록 됩니다.

참고 사항

  • 테스트 코드의 방향성을 정하지 않아 테스트에서 랜덤 Shuffle을 처리하기 위해 Shuffle하는 기능을 추상화 하였고 테스트 코드에서는 직접 mock 클래스를 만들어 테스트 하였습니다.

관련 이슈

PR 체크리스트

  • 테스트는 모두 통과했나요?
  • 빌드는 성공했나요?
  • 코드 포맷팅을 진행했나요?
  • PR 내부의 예시는 삭제하셨나요?

@davidolleh davidolleh linked an issue Feb 26, 2025 that may be closed by this pull request
3 tasks
@davidolleh davidolleh self-assigned this Feb 26, 2025
@davidolleh davidolleh changed the title 14 feat 리뷰어 리뷰이 매칭 및 매칭 결과 공지 feat: 리뷰어 리뷰이 매칭 및 매칭 결과 공지 Feb 27, 2025
@davidolleh davidolleh added the feature New feature development label Feb 27, 2025
Copy link
Contributor

@TaeyeonRoyce TaeyeonRoyce left a comment

Choose a reason for hiding this comment

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

고생 많으셨어요~!
복잡한 로직일텐데 꼼꼼하게 신경 써주셨군요.
인터페이스 구조도 상황에 맞게 잘 잡아주신 것 같아요.

몇가지 코멘트 남겼으니 확인하시고 의견 남겨주세요!

@davidolleh
Copy link
Collaborator Author

마지막으로 질문 있습니다! For Each와 for loop은 취향차이인지 상황마다 확실한 장단점이 있는지 궁금합니다.

@TaeyeonRoyce
Copy link
Contributor

마지막으로 질문 있습니다! For Each와 for loop은 취향차이인지 상황마다 확실한 장단점이 있는지 궁금합니다.
확실한 장단점 보단 특징이 달라요.
for-loop은 Index를 조작 할 수 있고, continue나 break 같은 흐름 제어가 가능하죠.
forEach()는 그런게 불가능 하지만, 선언적인 표현으로 좀 더 직관적이고 간결하게 나타낼 수 있습니다.
성능도 Java21을 사용하는 상황에서는 유의미한 차이는 전혀 없을 것 같아요!

Copy link
Contributor

@TaeyeonRoyce TaeyeonRoyce left a comment

Choose a reason for hiding this comment

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

LGTM 🚀
고생하셨어요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: 리뷰어 리뷰이 매칭 및 매칭 결과 공지
2 participants