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

[변수미] 챕터 7: 자바스크립트 디자인 패턴 (2/3) #58

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

sumi-0011
Copy link
Contributor

@sumi-0011 sumi-0011 self-assigned this Nov 5, 2024
@sumi-0011 sumi-0011 changed the base branch from main to 챕터7_1/변수미 November 5, 2024 12:02
Copy link
Member

@100Gyeon 100Gyeon left a comment

Choose a reason for hiding this comment

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

👍👍👍

- 오버라이드 된 부모 클래스의 생성자 호출 -> 생성자 체이닝

여기서 나온 메서드 체이닝이 내가 아는 개념이랑 같은건가? 했는데,
prototype등을 타고타고 메서드를 호출하는것도, 부모 클래스의 메소드를 호출하는것도 다 메서드 체이닝으로 부르는듯 합니다. -> https://www.geeksforgeeks.org/method-chaining-in-javascript/
Copy link
Contributor

Choose a reason for hiding this comment

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

아티클 공유 감사합니다 👍🏻

장점 : 함수의 중복을 줄이고 재사용성을 높인다.
단점: 복잡해짐.

> 글의 저자는 문서화를 잘 해두면 괜찮을거다, 라고 이야기하였는데 웬만한 상황이 아니라면 믹스인 패턴은 안쓰는게 나을것 같다고 생각했습니다.
Copy link
Contributor

Choose a reason for hiding this comment

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

ㅇㅈ합니다

Copy link
Member

@hyesungoh hyesungoh left a comment

Choose a reason for hiding this comment

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

👍 👍 👍 👍

Base automatically changed from 챕터7_1/변수미 to main November 12, 2024 06:53
@sumi-0011 sumi-0011 merged commit 1c38a9d into main Nov 12, 2024
1 check passed
@sumi-0011 sumi-0011 deleted the 챕터7_2/변수미 branch November 12, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants