---
title: "Lyunho Kim (@lyunhokim) | Hashnode"
description: "backend developer. Read the latest articles by Lyunho Kim on Hashnode."
url: "https://hashnode.com/@lyunhokim"
---

@lyunhokim

# Lyunho Kim

@lyunhokim · South Korea · Joined July 2021

backend developer

### [Effective Typescript#7 코드를 작성하고 실행하기](https://blog.lyunho.kim/effective-typescript7?utm_source=hashnode&utm_medium=feed)

아이템53. 타입스크립트 기능보다는 ECMAScript 기능을 사용하기 enum 사용을 최소화 하기 문자열 enum과 숫자형 enum이 다르게 동작합니다. 접근 방식의 차이, JS로 변환되었을 때의 차이가 있습니다. // .ts enum Flavor { VANILLA = "vanilla", CHOCOLATE = "chocolate", STRAWBERRY = "strawberry", } Flavor.VANILLA; // 접근 가능...

4 min read · [blog.lyunho.kim](https://blog.lyunho.kim/effective-typescript7?utm_source=hashnode&utm_medium=feed)

[Sep 25, 2022](https://hashnode.com/posts/effective-typescript7/633050b1a50ebf1cd1491327)

### [API Response 포맷에 관한 고찰](https://blog.lyunho.kim/api-response?utm_source=hashnode&utm_medium=feed)

개요 필자는 모바일 클라이언트를 위한 HTTP API를 개발하는 업무를 하고 있습니다. 종종 클라이언트 개발자들과 Request / Response에 대한 열띤(?) 토론을 진행하게 되는데요. 특히나 Response에 관해서는 끝이 없는 것 같습니다. 검색도 해보고 다른 개발자분들께 물어보아도 정답은 없는 것 같네요. 그래서인지 끝 없는 논쟁이 있나봅니다. 토론에서 더 큰 목소리를 내려면 레퍼런스가 필요하겠죠. 꼭 그런 이유 뿐만 아니라, 다른...

3 min read · [blog.lyunho.kim](https://blog.lyunho.kim/api-response?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/api-response/632810447ae3b59ef0067d33) [Sep 19, 2022](https://hashnode.com/posts/api-response/632810447ae3b59ef0067d33)

### [Nestjs#4 MIddlewares](https://blog.lyunho.kim/nestjs4-middlewares?utm_source=hashnode&utm_medium=feed)

Nestjs 공식문서를 번역한 내용입니다. 일부 오역, 의미 전달이 모호한 부분이 있을 수 있습니다. 미들웨어는 라우트 핸들러 전에 호출되는 함수입니다. 미들웨어 함수는 request, response 객체에 접근할 수 있고, 전체 애플리케이션의 request-response 사이클에 내에 있는 next() 미들웨어 함수를 가지고 있습니다. next 미들웨어 함수는 공적으로 next라는 변수의 이름으로 표현 됩니다. Nest 미들웨어는 기...

4 min read · [blog.lyunho.kim](https://blog.lyunho.kim/nestjs4-middlewares?utm_source=hashnode&utm_medium=feed)

[Sep 2, 2022](https://hashnode.com/posts/nestjs4-middlewares/6311b09675af73ad1f066f20)

### [Effective Typescript#4 타입 설계](https://blog.lyunho.kim/effective-typescript4?utm_source=hashnode&utm_medium=feed)

아이템28. 유효한 상태만 표현하는 타입을 지향하기 아래의 예시는 웹 애플리케이션의 전체 상태에 대한 타입 설계 입니다. 웹 페이지의 상태가 될 수 있는 값들을 정확하게 파악하고 모호함(예시: A상태이자 B상태인)이 없도록 명확하게 구분했습니다. interface RequestPending { state: 'pending'; } interface RequestError { state: 'error'; error: strin...

5 min read · [blog.lyunho.kim](https://blog.lyunho.kim/effective-typescript4?utm_source=hashnode&utm_medium=feed)

[Sep 2, 2022](https://hashnode.com/posts/effective-typescript4/6311636f56df9e8e5025e048)

### [Nestjs#2 Providers](https://blog.lyunho.kim/nestjs2-providers?utm_source=hashnode&utm_medium=feed)

Nestjs 공식문서를 번역한 내용입니다. 일부 오역, 의미 전달이 모호한 부분이 있을 수 있습니다. Provider는 Nest의 근본 개념입니다. 많은 Nest 클래스들이 Provider로 취급됩니다. -- services, repositores, factories, helpers. 프로바이더의 메인 아이디어는 그것이 의존성 주입(Dependency Inject)이 될 수 있다는 것입니다. 이 말은 각 객체들이 서로 다양한 관계들을 맺을 수...

2 min read · [blog.lyunho.kim](https://blog.lyunho.kim/nestjs2-providers?utm_source=hashnode&utm_medium=feed)

[Aug 19, 2022](https://hashnode.com/posts/nestjs2-providers/62ff4dad67b2030c206c111d)
