-
Notifications
You must be signed in to change notification settings - Fork 272
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
[지하철 노선도 미션] 김민주 미션 제출합니다. #103
Open
kmj990929
wants to merge
66
commits into
woowacourse:main
Choose a base branch
from
kmj990929:kmj990929
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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.
2주차 때와 마찬가지로 함수 분리와 클래스 분리에 집중하였습니다.
또, MVC 패턴을 적용해서 UI 로직을 분리하고자 했습니다.
2주차 때에도 MVC 패턴을 사용했지만, 조건 검사 기능을 view에 추가하여 분리가 명확히 되지 않았던 것 같습니다.
이번에는 보다 명확하게 기능을 분리하는 데에 집중해보았습니다.
기능 선택지가 많아서 if를 여러번 반복해서 쓴 구간이 있습니다.
클린코드 규칙에 맞지 않는 것 같아 여러 번 수정을 시도해보았지만, 여전히 해결하지 못해서 최대한 함수를 분리해서 짧게 만들었습니다.
이것을 해결하지 못한 것이 가장 큰 아쉬움으로 남습니다.
이를 해결하기 위해서 class나 메소드를 parameter로 넘기는 방법 등을 시도해보았지만 이를 적용하지는 못했습니다.
마지막 날에 enum과 stream에 대해서 알게 되었는데, 이를 활용한다면 해결할 수 있을 것이라는 생각이 듭니다.
다만 시간이 얼마 남지 않아 제대로 이해하지 못한 개념을 사용하는 것보다, 해당 개념을 활용할 수 있게 되었을 때 빠르게 보완할 수 있도록 코드를 정리하는 것이 더 좋다고 판단하였습니다.
따라서 이때부터는 한 곳에 모여있던 메뉴와 기능을 클래스로 분리하는 등 코드 정리에 집중하였습니다.
코딩 테스트까지 시간이 조금 남았으니, enum과 stream에 대해 공부해보려 합니다.
테스트 때에는 완벽히 활용하는 모습 보여드리겠습니다.
감사합니다!