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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
54
1
부
you.write(code) ;
}
고의는 아니겠지만, 약간의 유지 보수를 거친 수많은 코드가 결국 저런 엉망진창의 구조가 된
다.
TIP
중복을 발견하면 제거하라.
필자는 최근 두 개의 메인 처리 루프로 구성된 장치 드라이버를 디버깅하고 있었다. 검사 결과,
이들 루프는 처리되는 자료형의 차이를 제외하고는 거의 비슷했다. 각 루프는
300
줄이 넘었기
에 그 같은 사실을 바로 알아챌 수 없었다! 서로 너무 엉켜 있다 보니 이해하기 힘들었고, 각 루
프마다 서로 다른 버그 수정본이 존재했다. 결과적으로 그 코드는 유별났고 예측 불가능했다.
두 개의 루프를 하나의 버전으로 통합하는 작은 노력이 문제를 반으로 줄여주었다. 그러고 나
서야 버그를 찾아 고치는 데 집중할 수 있었다.
3.4
죽은 코드
5
유지 보수를 거치지 않은 코드는 서서히 부식하고 심지어 죽을 수도 있다. 죽은 코드란 실행되거
나 호출되지 않는 생명력 없는 코드를 말한다. 생명을 불어넣어주지 않으면 코드는 사라져버린
다.
다음 두 가지 예제는 빠르게 대충 훑어보면 지나칠 수 있는 죽은 코드를 포함한다.
if
(
size
= =
0
)
{
//
스무
줄의
헛소리
for
(
int n
=
0
;
n
<
size
;
+ +
n
)
{
//
이
코드는
절대
실행되지
않음
}
//
또
다른
스무
줄의
헛소리
}
5
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