본문 바로가기

분류 전체보기110

[NestJS] custom-decorators 😀 custom-decortators ES2016 데코레이터는 함수를 반환하고 대상, 이름 속성 설명자를 인수로 사용할 수 있는 표현식 입니다. @ 장식자 앞에 문자를 붙이고 장식하려는 항목의 맨 위에 배치하여 적용합니다. 데코레이터는 클래스, 메서드 또는 속성에 대해 정의할 수 있습니다. NodeJS Express 기능과 같은 기능을하는 NestJS의 데코레이터 @Reuqest, @Req() / req @Response(), @Res() / res @Next() / next @Sessio() / req.session @Param(param?: string) / req.params, req.params[param] @Body(param?: string) / req.body, req.body[param] .. 2023. 9. 9.
[NestJS] Interceptors Spring AOP AOP Aspect Oriented 핵심 로직과 부가 기능을 분리하여 애플리케이션 전체에 걸쳐 사용되는 부가 기능을 모듈화하여 재사용할 수 있도록 지원하는 것 (관점 지향 프로그래밍) Around -> Before -> After -> After Returing -> After Throwing 1. 선언적 트랜잭션 관리 https://docs.spring.io/spring-framework/reference/data-access/transaction/declarative.html Declarative Transaction Management :: Spring Framework The Spring Framework’s declarative transaction management is .. 2023. 9. 9.
[WebRTC] Guide * 맨 하단 샘플코드있음. https://webrtc.org/ WebRTC An open framework for the web that enables Real-Time Communications (RTC) capabilities in the browser. webrtc.org 😀 WebRTC - 실시간 통신 기능의 애플리케이션 기능 - 동영상, 음악, 데이터 앱 간 전송 가능 - 음성/영상 솔루션 구축 - 모든 브라우저에서 JS API 제공 - Android, ios 라이브러리 제공 - 오픈소스 😀 WebRTC API 1. 미디어 캡처 기기 동영상 카메라, 마이크, 화면 캡처 기기 포함된다. 카메라, 마이크 경우 navigator.mediaDevices.getUserMedia() 를 사용하여 Media.. 2023. 9. 9.
[Algorithm] QuickSort 😁 QuickSort 분할정복 알고리즘 - 문제를 작은 2개의 문제로 분리하고 각각을 해결한 다음, 결과를 모아서 원래의 문제를 해결하는 전략 - 불안정 정렬에 속하며, 비교 정렬에도 속한다. 오늘도 그림만보고 JS로 구현하기 시작. 자세한 내용은 아래 링크 참고. 😁 QuickSort 오름차순 const arr = [5, 3, 8, 4, 9, 1, 6, 2, 7]; //오름차순 function ascendingSort(arr) { let len = arr.length; console.log(arr); let pivot = arr[Math.floor(len / 2)]; console.log(pivot); if(len 2023. 9. 9.