Skip to content

Udemy/section5/74: Think about interface #49

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

Open
4BFC opened this issue Sep 24, 2024 · 0 comments · May be fixed by #48
Open

Udemy/section5/74: Think about interface #49

4BFC opened this issue Sep 24, 2024 · 0 comments · May be fixed by #48
Assignees
Labels
2회독 회독

Comments

@4BFC
Copy link
Member

4BFC commented Sep 24, 2024

✍Udemy/section5/74: Think about interface

해당 issue는 실습을 하지 않고 개념만 작성한 issue 입니다. 진도를 빠르게 넘어가기 위함이니 아래 개념만 익혀두면 설명이 충분합니다. 따라 실습관련 브랜치는 없습니다.

🔥KeyWord

  • interface

📝Description

  • 왜 interface를 사용하는가
    • 하나의 interface를 가지고 클래스형에서 다양한 클래스를 생성할 수 있게 된다. 이와 마찬가지로 함수형 또한 그러하다. 즉, 어떤 변수, 함수를 사용할지 모를 때 만들어져 있는 interface인 type을 사용하면 그만인 것이다. 더 나아가 프로젝트에서 약속한, 미리 구성되어 있는 interface에 우리가 의존한다면 타입이 지정되어 있는 안전하고 클린한 코드들을 충분히 만들어 낼 수 있는 것이다.
      • interface를 어떻게 재활용할까?
        • untility 디렉토리와 같은 하나의 디렉토리에서 규칙을 세워서 유지보수 관리하면서 extends와 implement와 같은 확장성을 사용해야 한다. 따라 어떤 무엇이 어떤 타입을 가질지에 많은 고찰과 성찰의 시간을 가지면서 활용해야 한다.

📌Summary

@4BFC 4BFC added the 2회독 회독 label Sep 24, 2024
@4BFC 4BFC added this to the Udemy:TypeScript milestone Sep 24, 2024
@4BFC 4BFC linked a pull request Sep 24, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2회독 회독
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants