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

Proxy Pattern #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Proxy Pattern #25

wants to merge 1 commit into from

Conversation

mog-hi
Copy link
Member

@mog-hi mog-hi commented Jul 26, 2024

Proxy Pattern

  • Proxy 역할이 대리인이 돼서 가능한 처리를 대신함
  • Proxy를 사용함으로써 실제로 print할 때까지 무거운 처리를 늦출 수 있다는 것이 포인트!

Note

  • 같은 인터페이스를 가지고 하나는 프록시로 구현하고, 하나는 Subject(본인)으로 구현한다는게 재밌었음
  • proxy도 proxy인데 코드에서 null이 너무 많이 돌아다니는 것 같아서 별로 마음에 안들어!
  • 이번건 코틀린 변환하는거에 머리 좀 썼다 ㅎ

@mog-hi mog-hi requested review from toneyparky and kkoon9 July 26, 2024 10:05
@mog-hi mog-hi self-assigned this Jul 26, 2024
Copy link
Collaborator

@kkoon9 kkoon9 left a comment

Choose a reason for hiding this comment

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

jpa 지연로딩 관련 정리하면서 프록시 지겹게 봐서 그런지 익숙하네~! 고생했어 주희!

@toneyparky
Copy link
Collaborator

LGTM

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