본문 바로가기

전체 글147

[Type Challenge] Capitalize 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00527-medium-append-to-object/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념.. 2023. 4. 9.
[Type Challenge] Append to Object 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00527-medium-append-to-object/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념.. 2023. 4. 8.
[Type Challenge] BEM style string 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/03326-medium-bem-style-string/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념.. 2023. 4. 7.
[Type Challenge] Absolute 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00529-medium-absolute/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념정리 infer.. 2023. 4. 3.
[Type Challenge] Length of Tuple 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00018-easy-tuple-length/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념정리 as .. 2023. 4. 2.
[일상] 트위터의 추천 알고리즘 공개 (is_elon) https://github.com/twitter/the-algorithm GitHub - twitter/the-algorithm: Source code for Twitter's Recommendation Algorithm Source code for Twitter's Recommendation Algorithm - GitHub - twitter/the-algorithm: Source code for Twitter's Recommendation Algorithm github.com 아주 재미있는 일이 있었습니다. 트위터에서 추천알고리즘을 오픈소스로 공개해버렸습니다. 처음에는 오픈채팅에 올라온 글을 보고 호기심에 커밋을 들어가봤는데.. 알고보니 일론 머스크가 의도적으로 소스코드를 공개한다고 공약을 했었더라구.. 2023. 4. 1.
[Type Challenge] Pick 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00004-easy-pick/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념정리 Lookup Type.. 2023. 4. 1.
[Type Challenge] Exclude 문제 https://github.com/type-challenges/type-challenges/blob/main/questions/00043-easy-exclude/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collection of TypeScript type challenges with online judge - GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge github.com 문제 의도 및 개념정리 제네릭과 유니온.. 2023. 3. 26.
[Type Challenge] Concat 다들 잘 지내셨나요~! 오랜만에 글을 쓰네요! TS를 사용하는데 제네릭이 너무 까불어서 도저히 참지 못하겠더라구요.. TS 챌린지를 처리해버리고 모든 오픈소스들의 제네릭을 다 이해하는것이 목표입니다.. 꾸준함이 중요한거 아시죠?! 다들 시작합시다! 문제 배열 2개를 넣었을때, 안의 원소들을 모두 합친 하나의 배열을 표현하는 타입 만들기. https://github.com/type-challenges/type-challenges/blob/main/questions/00533-easy-concat/README.md GitHub - type-challenges/type-challenges: Collection of TypeScript type challenges with online judge Collecti.. 2023. 3. 23.
[Typescript] Axios API 함수 리턴하기, 결과값 리턴 차이를 타입의 측면에서 바라보기 Axios를 사용하다보면 API를 호출하는 함수를 통째로 리턴할지, 그 결과값을 리턴할지 고민을 모두 하셨을거라 생각합니다. 개인 프로젝트 진행 중 고민이 됐었는데요. 사람마다 다르지만 결과값을 리턴하는 케이스가 많더라구요. 왜 함수를 통째로 리턴하는건 선호되지 않을까요? 두개의 차이는 무엇이고 어떤것을 쓰는것이 나은지 알아보겠습니다. (그런 글이 없는것 같아서..ㅎ) ​ TS를 사용하고 있었기에 차이가 체감 되었습니다. export default { // Axios API 함수 리턴 fetchLectureList : () => { return axiosInstance.get(url) } // Axios API 요청의 결과값 리턴 fetchLectureList : () => { return axiosIn.. 2022. 12. 12.
728x90