Skip to Content
훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
book

훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
55
3
장
코드 적게 쓰기
void loop
(
char
*
str
)
{
size
_
t length
=
strlen
(
str
);
if
(
length
= =
0
)
return
;
for
(
size
_
t n
=
0
;
n
<
length
;
n
+ + )
{
if
(
str
[
n
]
= =
'\
0
')
{
//
이
코드는
절대
실행되지
않음
}
}
if
(
length
)
return
;
//
이것
역시
실행되지
않음
}
그 외에도 죽은 코드를 포함했을 때 나타나는 징후들은 다음과 같다.
•한 번도 호출되지 않는 함수
•선언되었지만 할당되지는 않은 변수
•내부 메서드에 전달되었지만 사용되지는 않은 매개 변수
•전혀 사용되지 않는 열거형, 구조체, 클래스, 인터페이스
3.5
주석
안타깝게도 이 세상은 끔찍한 주석
comments
으로 점철되어 있다. 그중 몇몇은 편집기에서 고쳐지
지 않고는 다음으로 넘어갈 수조차 없다. 많은 회사의 부패한 코딩 표준, 그리고 수백만에 달하
는 정신 나간 주석은 그다지 도움이 되지 않는다.
좋은 코드는 작동법을 설명하는 대량의 주석을 필요로 하지 않는다. 변수, 함수, 클래스 이름의
적절한 선택과 올바른 구조는 코드를 더 명확하게 만든다. 주석에서 모든 정보를 복사해 표현
하는 것이야말로 불필요한 중복이다. 그리고 다른 중복의 경우와 마찬가지로 위험한 행동이다.
하나의
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

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

정원천, 보리스 숄, 트렌트 스완슨, 피터 야우쇼베츠

Publisher Resources

ISBN: 9788968482304