-
Notifications
You must be signed in to change notification settings - Fork 262
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
[지하철 노선도 미션] 김태완 미션 제출합니다. #104
Open
kixtaxwax
wants to merge
38
commits into
woowacourse:main
Choose a base branch
from
kixtaxwax:main
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.
느낀 점
3주차 과제는 기말고사 때문에 시간투자를 많이 못하고 쫓기면서 하느라 코드를 짜면서도 너무나도 아쉬웠습니다. 클래스 분리를 제대로 하지 못했고, 분리한 것 마저도 제대로 책임을 가지지 못했습니다. 남은 시간을 잘 활용해서 클래스 분리에 대해 깊이 생각해봐야겠습니다.
배운 점
그동안은 선택지가 많은 문제에서 if else문 혹은 switch문을 많이 썼는데, 대신에 enum 클래스를 만들고, 그 안에서 추상 메소드를 만든 후 각 기능별로 오버라이딩해서 기능을 동작시키는 방법을 알게 되었습니다.
저번에 알게 되었던 Station 객체 비교 시 equals와 hashCode를 override하는 방법도 써봤습니다.
많은 시간을 투자한 부분
지난 과제에서 예외처리를 한다고 했는데 잘 안됐던 것 같아서 이번에도 예외처리에 투자를 많이 했고, if 문 여러 개를 어떻게 깔끔한 코드로 작성해야되는가에 대해 고민을 했습니다.
감사합니다!!