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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
67
4
장
코드 줄여 개선하기
4.4
죽은 코드 탐색
어떻게 죽은 코드를 찾아낼 수 있을까?
가장 좋은 방법은 코드베이스에서 작업할 때 주의를 기울이는 것이다. 자신의 행동에 대해 책
임을 지고, 작업 후에는 확실하게 정리하자. 정기적인 코드 리뷰는 죽은 코드를 찾는 데 도움이
된다.
사용하지 않는 코드를 뿌리뽑는 데 관심이 있다면, 문제 지점을 정확히 알려줄 다양한 종류의
개발 도구들이 있다. 정적 타입 언어에서 사용하는 특정
IDE
의 경우, 사용하지 않는 코드를 자
동으로 강조할 수 있다. 공용
API
의 경우 대부분의
IDE
는 함수의 호출 여부를 보여주는 ‘참조
찾기’ 기능이 있다.
사용되지 않는 기능을 구별하기 위해, 제품을 계측하여 사용자들이 실제로 어떤 것을 사용하는
지에 대한 지표를 수집할 수 있다. 불필요한 코드를 판별할 뿐만 아니라 모든 종류의 사업적 의
사 결정을 내리는 데에도 유용하다.
4.5
외과적 적출
죽은 코드를 제거하는 일은 해롭지 않다. 잘라내라. 그냥 버리라는 것이 아니다. 이전 기능이
다시 필요할 때는 버전 관리 시스템을 통해 손쉽게 가져올 수 있다.
TIP
미래에 필요할지도 모르는 기능이라도 코드를 제거하는 것이 안전하다. 버전 관리 시스템에서 되돌릴 수
있다.
이처럼 간단하면서도 진실한 견해에도 반론은 존재한다. 예를 들어 신입사
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