네트워크
-
[CS study] TDD의 중요성네트워크/CS Study 2023. 11. 30. 10:07
개요 TDD란? 왜 TDD를 할까? 테스트 종류 Jest사용해보기 TDD(Test Driven Development) 작성하고자 하는 코드가 어떤 일을 할 것인지를 묘사하고 동작을 검증할 때 테스트 코드를 먼저 작성하고 빠르게 테스트를 진행하며 개발하는 방법 순서) 요구사항 분석 및 이해 => 설계 => 테스트 코드 작성 요구사항 분석에 집중하여 목적을 명확하게 파악하게 됨 사용하기 좋은 상황) 요구사항이 명확할 때 비즈니스 로직 협업 시 문서(명세서) 역할 코드리뷰 Why? 코드의 퀄리티 상승 및 비용절감 코드의 결함을 개발 주기의 초기에 발견하는데 도움이 되어 후에 수정하는데 있어 드는 비용을 줄일 수 있다. 요구사항에 충족하는 코드인지 재확인이 가능하다. 빠른 피드백으로 코드의 퀄리티를 상승시킬 수..
-
[모각CS] DOM과 가상DOM네트워크/CS Study 2023. 11. 21. 16:52
개요 브라우저의 동작 Virtual DOM React에서의 동작 브라우저의 동작 브라우저의 동작은 VirtualDOM의 등장과 등장 이전의 RealDOM만의 한계점을 설명해주는 부분으로써 동작형태와 이점을 좀 더 이해하기 쉽게 해주기에 기억하면 좋음 브라우저의 랜더링 과정) DOM tree 생성 브라우저의 렌더 엔진이 HTML을 파싱하여 DOM노드로 이루어진 트리를 생성한다. render tree 생성 CSS 파일과 inline 스타일을 파싱하여 CSSOM을 생성 CSSOM과 렌더 엔진에 의해 만들어진 DOM을 합쳐 render tree를 생성 문서의 시각적인 구조를 나타낸다 Layout viewport에서 생성된 render tree의 각 노드가 스크린상에 어느 공간에 위치할지 결정 position, ..
-
[SSL 발급] 대체 도메인 설정 및 서브 도메인 등록네트워크/AWS 2023. 11. 20. 10:40
개요 서브 도메인 설정 대체 도메인 설정 서브 도메인 설정 과정) 도메인 구매 서브도메인 설정 서브도메인 왜 설정해야하는가? 경제적인 이유에서 도메인을 2개를 구매해서 사용하는 것은 굉장히 비효율적이다. 그러니 서브도메인을 통해서 서비스를 분리해서 구조화를 시켜 관리를 할 수 있으며 이를 통해 리소스 분산 및 다른서비스와의 분리를 통해 보안도 강화할 수 있다. 다만 host가 다르다는 것은 출처가 다르다는 것이기에 CORS에러는 별도로 해결해야 함 도메인 구매: 가비아 (가비아공식문서) 기본적으로 가비아의 설정부분을 많이 따라갔다. 차이점은 A type을 이용해서 IP를 값에 넣어주는 것이 아닌 CNAME에 CloudFront의 도메인 이름을 설정해서 값에 넣어준다. (AWS공식문서) 호스트에는 대체도메..
-
[Careerthon] 데이터베이스 기초 2네트워크/CS Study 2023. 11. 16. 11:56
개요 DB의 종류 인덱스 B-트리 DB최적화 조인 DB의 종류 계층형 (1960 ~ ) 역사가 오래된 DBMS로 폴더와 파일등의 계층 구조로 데이터를 저장 하드디스크나 DVD 파일 시스템 현재 거의 사용되지 않음 네트워크형 (1960 ~ ) 계층형의 단점을 보완하여 데이터 간 N 대 N 구성이 가능한 망형 모델 구조가 복잡해 유지보수가 어려움 관계형 (1970 ~ ) key와 value로 이루어진 데이터들을 행과열로 구성된 테이블구조로 단순화 시킨 모델 SQL을 사용하여 데이터를 처리 데이터 모델링이 간단하지만 비정형 데이터들을 다루거나 실시간 분석에 적합하지 않음 MYSQL 객체지향형 (1980 ~ ) 객체지향 프로그래밍 개념에 기반하여 만든 데이터베이스 모델 비정형 데이터들을 데이터베이스화 할 수 있..