Conversation
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.
안녕하세요 의천 리뷰어님. 5기 프론트로 들어온 이채현입니다.
4기 백엔드를 참여하게 되면서, 프론트 공부도 해보고 싶다는 생각에 프론트 스터디에 참여하게 되었습니다.
프론트 공부하면서 많은 것을 얻어가고 싶습니다 :) 잘 부탁드립니다!
프로젝트 구성
[BaseBallGame] 볼과 스트라이크를 계산함.
[ComputerNumber] 무작위 겹치지 않는 세자리 수를 반환
[InputValidation] input과정에서 3자리 서로다른 수를 반환하지 않으면 false 반환
[Index.js] html과 호환이 되게끔 model과 view를 합쳐 controller의 역할을 함.
질문사항
controller를 따로 만들자니, 기존 index.js에서 .querySelector를 가져오기가 불편해서
controller 대신 index.js를 사용했던 것 같은데,
mvc 패턴을 지키기 위해서 controller를 따로 만드는 것이 좋을까요..?
mvc를 지키기 위해서 model view controller를 지키려고 했으나, index.js에서 직접 가져오는 정보들이 있으니까, controller 보다는 index.js를 사용하게 되었는데
mvc 패턴을 지키기 위해서 controller를 어떤식으로 따로 만드는 것이 좋을까요?