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

[백지연] 챕터 4: 안티 패턴 #25

Merged
merged 1 commit into from
Oct 22, 2024
Merged

[백지연] 챕터 4: 안티 패턴 #25

merged 1 commit into from
Oct 22, 2024

Conversation

100Gyeon
Copy link
Member

No description provided.

Comment on lines +12 to +18
> 책 설명이 부족한 것 같아서 [아티클](https://ui.toast.com/fe-guide/ko_ANTI-PATTERN)을 참고했어요

- 전역 컨텍스트에서 변수 정의하여 전역 네임스페이스 오염시키기 ([참고](https://ui.toast.com/fe-guide/ko_ANTI-PATTERN#%EB%B3%80%EC%88%98-%EC%84%A0%EC%96%B8-%EC%97%86%EC%9D%B4-%EB%B0%94%EB%A1%9C-%EB%B3%80%EC%88%98%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%98%EC%A7%80-%EC%95%8A%EB%8A%94%EB%8B%A4))
- `setTimeout`이나 `setInterval`에 함수가 아닌 문자열을 전달해서 내부적으로 `eval()` 실행되게 하기 ([참고](https://ui.toast.com/fe-guide/ko_ANTI-PATTERN#settimeout-setinterval-%EC%82%AC%EC%9A%A9-%EC%8B%9C-%EC%BD%9C%EB%B0%B1-%ED%95%A8%EC%88%98%EB%8A%94-%EB%AC%B8%EC%9E%90%EC%97%B4%EB%A1%9C-%EC%A0%84%EB%8B%AC%ED%95%98%EC%A7%80-%EC%95%8A%EB%8A%94%EB%8B%A4))
- Object 클래스의 프로토타입을 수정하기 ([참고](https://ui.toast.com/fe-guide/ko_ANTI-PATTERN#%EB%84%A4%EC%9D%B4%ED%8B%B0%EB%B8%8C-%EA%B0%9D%EC%B2%B4%EB%8A%94-%ED%99%95%EC%9E%A5%ED%95%98%EA%B1%B0%EB%82%98-%EC%98%A4%EB%B2%84%EB%9D%BC%EC%9D%B4%EB%93%9C-%ED%95%98%EC%A7%80-%EC%95%8A%EB%8A%94%EB%8B%A4))
- 자바스크립트를 인라인으로 사용하여 유연성 떨어뜨리기 ([참고](https://ui.toast.com/fe-guide/ko_ANTI-PATTERN#%EC%9D%B4%EB%B2%A4%ED%8A%B8%EB%8A%94-%EC%9D%B8%EB%9D%BC%EC%9D%B8-%EB%B0%A9%EC%8B%9D%EC%9C%BC%EB%A1%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EC%A7%80-%EC%95%8A%EB%8A%94%EB%8B%A4))
- `document.createElement` 대신 `document.write` 사용하기
Copy link
Member

Choose a reason for hiding this comment

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

👏 👏 👏 👏 👏

@100Gyeon 100Gyeon merged commit 3fac288 into main Oct 22, 2024
1 check passed
@100Gyeon 100Gyeon deleted the 챕터4/백지연 branch October 22, 2024 22:57
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.

2 participants