Skip to Content
이펙티브 타입스크립트
book

이펙티브 타입스크립트

by Dan Vanderkam, Won Ho Jang
November 2021
Intermediate to advanced
364 pages
9h 52m
Korean
Insight
Content preview from 이펙티브 타입스크립트
TypeScript
195
아이템 36 해당 분야의 용어로 타입 이름 짓기
통해 복잡한 시스템을 정확히 모델링하고 타입스크립트가 오류나 코드상의 의
도치 않은 실수를 잡을 수 있게 합니다.
󻭣󻩌
··
코드의 구석 구석까지 타입 안전성을 얻기 위해 API 또는 데이터 형식에 대
한 타입 생성을 고려해야 합니다.
··
데이터에 드러나지 않는 예외적인 경우들이 문제가 될 수 있기 때문에 데이
터보다는 명세로부터 코드를 생성하는 것이 좋습니다.
󻨓󻱃󼘫 󼩃󺟈󽴔󻉓󻩋󻰧󽴔󻭸󻪃󺴫󽴔󼖏󻱔󽴔󻱃󺹓󽴔󻺢󺋿
컴퓨터 과학에서 어려운 일은 단 두 가지뿐이다. 캐시 무효화와 이름 짓기.
󼨓󽴔󼍋󼞋
지금까지 타입의 형태와 값의 집합에 대해 수없이 다루었지만, 타입의 이름을
짓는 것에 대해서는 거의 언급하지 않았습니다. 그러나 이름 짓기 역시 타입
설계에서 중요한 부분입니다. 엄선된 타입, 속성, 변수의 이름은 의도를 명확
히 하고 코드와 타입의 추상화 수준을 높여 줍니다. 잘못 선택한 타입 이름은
코드의 의도를 왜곡하고 잘못된 개념을 심어 주게 됩니다.
동물들의 데이터베이스를 구축한다고 가정해 보겠습니다. 이를 표현하기 위
한 인터페이스는 다음과 같습니다.
interface Animal {
name: string;
endangered: boolean;
habitat: string; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

러닝 타입스크립트

러닝 타입스크립트

조시 골드버그
고성능 파이썬(2판)

고성능 파이썬(2판)

오현석, 미샤 고렐릭, 이안 오스발트
타입스크립트 프로그래밍

타입스크립트 프로그래밍

Boris Czerny, U Jung Eun

Publisher Resources

ISBN: 9788966263134