Open
Conversation
- 변수 키워드 let, const 사용 - 의미없는 변수 재할당 제거
- 축약된 변수명을 확장하여 가독성 개선
- 의미 없는 재할당 제거
- 코드 흐름상 없어도 기능에 문제가 없으므로 단순화를 위해 진행
- import, export 사용하기 위함
- 가독성 향상 목적
- 가독성 향상 목적
- 기존 코드를 이해하지 못하고 제거한 코드 복구
- 재고 상태와 문구 분리 - 재고 상태가 다른 함수에서도 사용되어야 함
- 기능상 불필요한 코드 제거 - 개행추가 - 임시 주석 추가
refactor: handleCalculateCartStuff 수정
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://0miiii.github.io/front_6th_chapter2-1/
과제 체크포인트
기본과제
심화과제
과제 셀프회고
과제를 하면서 내가 제일 신경 쓴 부분은 무엇인가요?
과제를 다시 해보면 더 잘 할 수 있었겠다 아쉬운 점이 있다면 무엇인가요?
위에서 작성한 내용들을 처음에는 신경을 썼지만 시간이 지날수록 잘 지켜지지 않았는 것 같습니다.
단계별로 리팩토링하는게 어느 순간부터 새로운 코드를 작성하고 있는것 같고, 시간 투자 대비 결과물이 만족스럽지 않았습니다.
특히 과제 처음 코드가 복잡하다고 하였지만, 막상 제 결과물을 보니 다른 사람이 보면 똑같이 복잡다고 느낄것 같아 아쉬웠습니다.
기존코드를 리팩토링할때 마음 급하게 하지 않고 코드 하나하나 분리를 하면서 천천히 해야겠다고 느꼈습니다.
리뷰 받고 싶은 내용이나 궁금한 것에 대한 질문 편하게 남겨주세요 :)