본문 바로가기

분류 전체보기

(14)
리팩토링 기법 - 함수 추출하기 해당 글은 마틴 파울러의 리팩토링 2판 6.1 함수 추출하기의 리뷰 포스팅입니다. function printOwing(invoice) { let outstanding = calcuateOutstanding(); // 세부사항 출력 console.log(`고객명: ${invoice.customer}`); console.log(`채무액: ${outstanding}`); } function printOwing(invoice) { let outstanding = calcuateOutstanding(); // 세부사항 출력 printDetails(outstanding); function printDetails(outstanding) { console.log(`고객명: ${invoice.c..
API Gateway를 사용하여 API 구축하기 (1) 기본 개념 ** 해당 글은 API Gateway 사용의 가장 주된 목적인 Lambda를 사용하여 예제를 들고 있지만, Lambda를 설명하는 글은 아니므로, 그에 대한 설명은 미흡할 수 있습니다. 00. 준비사항 API Gateway의 주된 사용 목적은 Lambda일 것이라 생각한다. 또한 API Gateway를 잘 이해하기 위해서도 Lambda 예제가 좋을 것이라 믿는다. 그렇기 때문에 간단한 Lambda함수를 생성하자. 해당 글은 Lambda의 기초를 설명하는 글이 아니므로 Lambda 함수의 생성방법을 모른다면 다른 글을 참고하길 바란다. 예제 코드 'use strict'; console.log('Loading hello world function'); exports.handler = async (event)..
New year's resolution 2021 Succee with difficulty, Don't be impatient about the results. Be more diligent Keep these in mind this year, follow the rules well.
도커 SEARCH CLI 명령어 정리 Search CLI COMMAND 상위 명령어 하위 명령어 옵션 추가 옵션 기능 예시 search docker hub에 올라와 있는 이미지를 검색한다. docker search [이미지 명] search --filter stars search시에 최소 별점갯수를 필터링하여 검색 할 수 있다 ( 다른 필터와 중복해서 사용 가능 ) docker search --filter stars=[스타 수] [이미지 명] search --filter is-automated 이미지 업데이트시 자동으로 새로운 빌드를 업데이트 하는 이미지를 필터링하여 검색한다. ( AUTOMATED) docker search --filter is-automated=true [이미지 명] search --filter is-official 도커..