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

이벤트를 통해 도메인 간 의존성을 분리한다. #928

Open
2 tasks
summerlunaa opened this issue Dec 10, 2022 · 1 comment
Open
2 tasks

이벤트를 통해 도메인 간 의존성을 분리한다. #928

summerlunaa opened this issue Dec 10, 2022 · 1 comment
Assignees
Labels
backend 백엔드 refactor 리팩터링

Comments

@summerlunaa
Copy link
Collaborator

🤷 이벤트를 통해 도메인 간 의존성을 분리한다.

🔨 상세 작업 내용

  • 도메인 간 의존성 파악
  • 이벤트를 통한 의존성 분리

📄 참고 사항

#903

⏰ 예상 소요 기간

8시간

@summerlunaa summerlunaa added backend 백엔드 refactor 리팩터링 labels Dec 10, 2022
@summerlunaa summerlunaa self-assigned this Dec 10, 2022
@summerlunaa
Copy link
Collaborator Author

요즘 드는 생각

  • 절차 지향적인 코드가 항상 나쁜 것은 아니다.
  • 이벤트 구조를 명확히 파악하고 있는 경우엔 괜찮지만 그렇지 않다면 코드 파악이 어렵고 디버깅도 어려워 진다.
  • 하지만 회원 - 캘린더 이런 도메인들은 확실하게 구별되어야 할 필요성이 있는 것 같다. 프로젝트가 커지면 모듈로 분리할 수 있을 정도의 개별적인 도메인이기 때문에,, 이런 경우는 이벤트를 사용해서 의존성을 끊어 내는 게 더 나을지도.
  • 단순히 코드가 너무 긴데? 이벤트로 분리할까? 하는 생각은 위험한 것 같다.

(시험 9시간 남아서 공부 하기 싫어서 쓴 거 아님)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend 백엔드 refactor 리팩터링
Projects
None yet
Development

No branches or pull requests

1 participant