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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
66
1
부
you.write(code) ;
전혀 사용되지 않는 함수 반환 값이 있는 경우
함수의 오류 코드를 무시하는 것은 도덕적으로 비난받아 마땅함을 우리 모두 알고 있으며, 그렇게 하
지 않을 것으로 필자는 믿어 의심치 않는다. 많은 함수가 특정 기능을 수행하고 반환 값을 돌려주도록
만들어진다. 이때 반환 값은 그 누군가에게 유용할 수도, 유용하지 않을 수도 있다. 그것은 오류 코드
가 아니며 단지 쓸모없는 값일 뿐이다. 하지만 만약 그 누구도 사용하지 않는다면, 왜 반환 값을 계산
하기 위한 추가적인 노력과 테스트를 해야 하는가?
‘디버그’ 코드가 괴사하는 경우
초기 구현이 완료되면 지원 코드의 대부분은 쓸모가 없어진다. 오히려 보기 흉한 임시 가설물로 인해
아름다운 구조는 알아볼 수 없게 된다. 다시는 사용되지 않을 진단용 로그나 진단용 변수 확인 및 테스
트 코드를 흔히 볼 수 있는데, 그들은 코드를 뒤죽박죽으로 만들고 수정을 더 어렵게 만든다.
4.3
어떻게 해야 하나
코드 괴사가 그렇게 중요한 문제일까? 죽은 코드는 불가피하다는 사실을 받아들이고, 프로젝
트가 작동하는 한 지나친 걱정은 하지 말자. 그렇다면 불필요한 코드는 어떤 대가를 치러야 할
까?
• 불필요한 코드 역시 다른 필요한 코드와 마찬가지로 유지 보수되어야 한다는 점은 명백하다. 여기에는 시
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