목록분류 전체보기 (33)
eumjo_o

react-query https://react-query.tanstack.com/comparison https://github.com/tannerlinsley/react-query/tree/master/examples 참고 블로그 https://dev.to/g_abud/why-i-quit-redux-1knl https://kdinner.tistory.com/113 https://velog.io/@velopert/using-redux-in-2021#recoil https://velog.io/@velopert/using-redux-in-2021#api요청은-이제-react-query-swr에게-맡기자 우아한형제들 https://techblog.woowahan.com/6339/ https://www.youtu..
6장 단위 테스트 스타일 6.1 단위 테스트의 세 가지 스타일 출력 기반 테스트 output based testing 상태 기반 테스트 state based testing 통신 기반 테스트 communication based testing 6.1.1 출력 기반 테스트 정의 💡 출력 기반 테스트 output based testing 테스트 대상 시스템(SUT)에 입력을 넣고 생성되는 출력을 점검하는 방식 전역 상태나 내부 상태를 변경하지 않는 코드에만 적용되므로 반환 값만 검증하면 됨 이러한 테스트 스타일은 부작용이 없고, SUT 작업 결과는 호출자에게 반환하는 값 뿐 ⇒ 함수형 프로그래밍 functional programming 6.1.2 상태 기반 스타일 정의 💡 상태 기반 테스트 state based..
5장 목과 테스트 취약성 5.1 목과 스텁 구분 💡 목 - 데스트 대상 시스템(SUT)과 그 협력자 사이의 상호 작용을 검사할 수 있는 테스트 대역 5.1.1 테스트 대역 유형 💡 테스트 대역 - 테스트를 편리하게 하는 것이 목표인 모든 유형의 비운영용 가짜 의존성을 설명하는 포괄적인 용어 목 (목, 스파이 spy) 스텁 (스텁, 더미 dummy, 페이크 fake) 테스트 대역의 모든 변형은 목과 스텁의 두 가지 유형으로 나눌 수 있다. 목 (목, 스파이) 외부로 나가는 상호작용을 모방하고 검사하는데 도움 SUT가 상태를 변경하기 위한 의존성을 호출하는 것에 해당 SUT와 관련 의존성 간의 상호작용을 모방하고 검사 스텁 (스텁, 더미, 페이크) 내부로 들어오는 상호작용을 모방하는 데 도움 SUT가 입력 ..

webRTC란, WebRTC 통신 구조 WebRTC Technology Media 캡쳐 기기 P2P 연결 WebRTC Protocol SDP (Session Description Protocol) ICE (Interactive Connectivity Establishment)TURN 서버 STURN 서버 TURN 서버 WebRTC 연결구조 Mesh Networking SFU (Selective Forwarding Unit) MCU (Multi-Point Control Unit) LiveKit Library 화상회의 구현 🌱 출처 1. WebRTC란 - https://webrtc.googlesource.com/src/ “WebRTC is a free and open-source project providi..
https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Time Complexity O(N) new Set(array) : O(N) array 순회 모두 : O(N) Space Complexity O(N) 중복을 제거한 숫자 배열은 최대 길이가 N이기 때문에 O(N) function removeDuplicates(nums: number[]): number { const sortedArray = [...new Set(nums)]; for(let i = 0; i < sortedArray.length; i++) { nums[i] = sortedArray[i]; }; return sortedArray.length; };
https://leetcode.com/problems/merge-k-sorted-lists/ Merge k Sorted Lists - LeetCode Can you solve this real interview question? Merge k Sorted Lists - You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. Example 1: Input: lis leetcode.com Time Complexity O(N log(N)) N은 node의 총 개수 모든 va..

https://leetcode.com/problems/generate-parentheses/ Generate Parentheses - LeetCode Can you solve this real interview question? Generate Parentheses - Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3 Output: ["((()))","(()())","(())()","()(())","()()()"] Exa leetcode.com DFS 탐색 Log 0 0 1 0 ( 2 0 (( 3 0 ((( 3 1 ((() 3 ..
https://leetcode.com/problems/merge-two-sorted-lists/ Merge Two Sorted Lists - LeetCode Can you solve this real interview question? Merge Two Sorted Lists - You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists leetcode.com Time Complexity O(N + M) list Node 두 개의 ..
https://leetcode.com/problems/valid-parentheses/ Valid Parentheses - LeetCode Can you solve this real interview question? Valid Parentheses - Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 1. Open brackets must be closed by the sam leetcode.com Time Complexity O(N), Space Complexity O(N) braket..
https://leetcode.com/problems/remove-nth-node-from-end-of-list/ Remove Nth Node From End of List - LeetCode Can you solve this real interview question? Remove Nth Node From End of List - Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: [https://assets.leetcode.com/uploads/2020/10/03/remove_ex1.jpg] leetcode.com /** * Definition for sin..