Skip to content

22.08.27

HyojinKim edited this page Aug 27, 2022 · 6 revisions

일시 : 22.08.27 13:00~

장소 : 토즈 강남토즈타워점 (오프라인)

참석자 : 영택님, 문기님, 바울님, 효진님, 채정님, 민정님, 예진님, 한슬님


author vs authors

author 로 가자!

CommitList vs Commits

s

  • rest api에서 contents이다! s를 붙이자.
  • 짧아서 좋음.
  • list는 list 자료형에만 쓸 수 있을것 같음

list

  • 그럼 information은?
  • s는 안보이기도 함. 실수할 여지가 있음

s로 갑시다!

불가산명사도 s를 붙이기.

약어는 최대한 지양. 풀네임으로 적기

type vs interface

type, interface 둘다 Pick 사용 가능

type vs interface 비교 참고자료 공유드립니다~!

[https://velog.io/@jeong3320/typescripttype과-interface의-차이작성중](https://velog.io/@jeong3320/typescripttype%EA%B3%BC-interface%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%9E%91%EC%84%B1%EC%A4%91)

https://velog.io/@youngjewoo/TypeScript-type-vs-interface

https://bny9164.tistory.com/48


메모

  • 공식 가이드문서에서 inferface 를 우선하고, 특별한 문제가 있을때만 type 을 사용하도록 권장

  • interface 는 객체형태의 타입정의만 가능

    • 단일타입, 튜플타입, computed value 등 사용 불가
    • 선언병합 사용 가능
  • interface 가 컴파일 성능에서 더 유리함

  • interface 합성시 캐시 적용되지만, type 합성시 모든 type구성요소를 순회하면서 체크함 (성능저하)

interface로 결정!

enum은 최대한 지양

https://engineering.linecorp.com/ko/blog/typescript-enum-tree-shaking

git log interface 파일 이름?

현재는 parseInterface

commitRaw.type.ts

src

  types

    commitRaw.ts

autor은 1명만 고려하자!

MVP에서는 1명만….

co author은 일단 고려하지 말자

githru를 사용하는 사람 입장에서 git commit 의 시각적 데이터 흐름에 더 관심이 있을 것 같고 co author 별로 분리해서 보는 것은 니즈가 많지 않을 것이라고 생각한다.

Basic/Root/Merge type

는 구분하지 말자.

files → fileDictionary

필드명 변경 필요하면 논의주세요