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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
68
1
부
you.write(code) ;
버전 관리 시스템에 체크인할 때, 죽은 코드를 제거하는 작업과 기능 추가 작업을 병행하지 말
라고 앞 장에서 언급했다. 항상 다른 개발 작업과 ‘대청소’ 기능을 분리하자. 이것은 버전 히스
토리를 깨끗하게 만들고, 제거된 코드가 되살아났는지 확인시켜준다.
TIP
코드 정리와 기능 변화는 별도의 커밋으로 이루어져야 한다.
4.6
마치며
가장 훌륭한 코드베이스에도 불필요한 코드는 만들어진다. 프로젝트가 클수록 더 많은 불필요
한 코드가 존재한다. 이것은 실패의 징조가 아니다. 죽은 코드를 발견했음에도 아무런 조치도
취하지 않는 것이야말로 실패의 징조이다. 사용되거나 실행되지 않는 불필요한 코드를 찾아냈
다면 즉시 제거해버리자.
코드의 새로운 부분을 작성할 때, 명세 부분은 옮기지 말자. 개인적으로 흥미롭더라도 요청되
지 않은 ‘작은’ 기능을 추가하지 말자. 필요한 경우 나중에 추가하면 된다. 비록 좋은 생각이라
해도 하지 말자.
질문
1
프로그램에서 작동하지 않는 ‘죽은 코드’를 어떻게 식별할 수 있는가?
2
현재 일시적으로 필요하지 않은(그러나 미래에는 필요할지도 모르는) 코드를 제거할 때, 소스 트리에 주석 처리
하여 눈에 띄게 남겨두는가? 아니면 완전히 삭제하는가(이때는 리비전 히스토리에 저장될 것이다)? 이유는
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