[2팀 이진희] Chapter 1-2. 프레임워크 없이 SPA 만들기 (2)#64
Open
bebusl wants to merge 9 commits into
Open
Conversation
|
엇 사수님이 얼리리턴 왜 비선호하시는지 궁금해요 👀 |
Author
조건분기가 많은 함수였는데 그 때는 오히려 얼리리턴이 코드 읽기가 힘들다고 사수님께서는 비선호한다고 하셨어용 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
과제 체크포인트
배포 링크
https://bebusl.github.io/front_6th_chapter1-2/
기본과제
가상돔을 기반으로 렌더링하기
이벤트 위임
심화 과제
Diff 알고리즘 구현
과제 셀프회고
이번주 뜬금없는 코로나에 걸려 정신없이 보냈습니다;;
심화과제는 진행하지 못했지만, 기본과제를 하면서 가상돔의 역할과 기존에 jsx가 어떻게 DOM으로 변환되는지 과정을 알 수 있어 좋은 경험이었던 것 같습니다.
심화과제는 다음주가 시작되기 전에 꼭 한 번 해결해보고 넘어가려고 합니다.
궁금한점
저는 얼리 리턴을 매우 선호하는 편인데요,(얼리 리턴 가능한 거의 모든 상황에서 얼리 리턴을 하는 편인 것 같습니다.)
얼리 리턴을 비선호하시는 분들도 있다고 알고 있어서요.
코치님은 얼리 리턴을 선호하시는 편인지, 어떠한 경우에는 얼리 리턴을 쓰고 그 외 조건문으로 분기 처리하시는 지 궁금합니다.