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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
221
19
장
코드 재사용 사례
19.2
재사용 사례
2
: 재사용을 위한 설계
당신은 다양한 프로젝트에 포괄적으로 사용할 라이브러리를 처음부터 설계할 수 있다. 역겨운
복사하기-붙여넣기 프로그래밍보다는 분명 더 나을 수 있다. 그런데 미안하게도 이것은 코드
‘재사용’이 아니다. 코드 ‘사용’이다. 라이브러리가 그냥 처음부터 그렇게 설계된 것뿐이다!
1
이런 접근 방식 또한 불필요하고 너무 큰 일탈일 수 있다. 코드가 하나의 프로젝트가 아닌 더
많은 용도로 사용될 것인지 의심스러운 상황에서, 처음부터 다양하게 사용될 수 있도록 처리하
는 것은 가치 없는 일이다. 모든 일반적인 경우를 포함하려 하다 보니, 겉치레가 너무 많은
API
를 가지는 복잡하고 거대한 소프트웨어가 된다.
YAGNI
원리를 적용하라. (아직) 필요하지 않
으면 (아직) 작성하지 말라.
당장의 요구사항을 모두 만족시킬 수 있는 가장 간단한 코드를 만드는 데에만 집중하라. 필요
한 것만 작성하고 가장 작고 가장 적절한
API
를 만들어라. 그리고 나서 다른 프로그램이 이 컴
포넌트와 결합하려고 하면, 작업 중인 현재 코드에 더하거나 확장하면 된다. 가능한 가장 적은
양의 소프트웨어를 만듦으로써, 버그를 양산하거나 향후 수년간 지원해야 하는 불필요한
API
를 만들 위험을 줄일 수 있다.
종종 다음에
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