refactor: DI container 식별자 상수명 변경#922
Merged
Merged
Conversation
- Clarify naming of DI container identifiers - Rename tokens.ts to identifiers.ts to better reflect intent - Update related imports/usages across the codebase
- Clarify naming of DI container identifiers - Rename serviceTokens.ts to diIdentifiers.ts to better reflect intent - Update related imports/usages across the codebase
ytaek
approved these changes
Oct 2, 2025
ytaek
left a comment
Contributor
There was a problem hiding this comment.
친절한 PR description 덕분에 바로 수정사항이 이해가 되었습니다!! 💯💯💯💯💯
사소해보일지라도 코드의 가독성이 올라가면 인지부하를 줄여주는 부분이 작지 않기 때문에, 이런 리팩토링 류 활동이 너무 좋은 것 같습니다!
| @@ -1,3 +1,3 @@ | |||
| export const SERVICE_TOKENS = { | |||
| export const DI_IDENTIFIERS = { | |||
Contributor
There was a problem hiding this comment.
(완전 취향) identifiers 를 복수로 하냐 단수로 하냐 이런것도 재밌는(?) 논의사항이 될 수 있습니다 ㅎㅎ
변수 사용시에
DI_IDENTIFIERS.Otcokit 으로 보이는게 맞느냐
DI_IDENTIFIER.Otcokit 으로 보이는게 맞느냐
이걸 하나의 type으로 생각한다면 단수가 맞을 수 있고.
(그룹이라고 생각하면 그룹이름인거죠)
여러개 다른 성격의 뭉침이라고 생각하면 복수가 맞을 수도 있을 것 같구요.
너무 사소하지만 한번쯤 말해보고 싶었습니다 😈😈😈😈
Zy0ung
approved these changes
Oct 6, 2025
Zy0ung
left a comment
Member
There was a problem hiding this comment.
LGTM !!!!
덕분에 코드 가독성이 더 좋아진 것 같습니다 ㅎㅎ 고생하셨습니다!!
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.
Related issue
#898
Result
DI 컨테이너에서 사용하는 식별자 상수의 네이밍을 개선하였습니다.
기존 문제점
->
DI_IDENTIFIERS라는 이름으로 변경함으로써 DI 컨테이너에서 사용하는 식별자임을 명확하게 표현합니다.Work list
SERVICE_TOKENS->DI_IDENTIFIERS(view/engine)container/tokens.ts→container/identifiers.tssrc/tokens.ts→src/diIdentifiers.ts패키지별 파일명 차이
view -
container/identifiers.tsimport { DI_IDENTIFIERS } from "container/identifiers";-> 파일명은 간결하게 표기
engine -
src/diIdentifiers.ts각 패키지가 이미 고유 컨벤션을 따르고 있고 패키지 간 이동보다는 개별 패키지 내에서 작업하는 경우가 많아, 통일된 파일명보다는 패키지별 기존 패턴을 따르는 것이 자연스럽다고 생각하였습니다.
Discussion