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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
151
12
장
복잡도 다루기
12.2
케이스 스터디 : 블럽 복잡도 줄이기
최근 필자는 소프트웨어 복잡도를 낮추는 즐거운 경험을 했다. 실제로는 하나 혹은 동일한 클
래스로 보일 만큼 밀접하게 연관된 두 개의 큰 객체에 관한 것이었다.
객체 중 하나를 쪼개 떼어내는 과정에서, 사용되지 않는 ’도우미(
helper
)’ 메서드가 많이 포함
되어 있음을 깨달았다. 가차없이 이들을 삭제했는데, 마치 헬륨 풍선에서 공기를 빼는 것처럼
즐거운 경험이었다. 작업하면서 정말 헬륨 가스를 들이마신 양 흥분된 고음으로 말하기 시작했
다. 이는 결국 코드가 더 간결해지는 과정이었다.
그런 다음 객체의 나머지 부분을 살펴보니, 다수의 메서드가 파트너 객체에게 단순히 전달하는
역할만 하고 있음을 알아냈다. 그래서 해당 메서드들을 제거하고 대신 모든 호출 코드에서 다
른 객체를 사용하도록 했다. 그 결과 단 두 개의 메서드만 남게 되었다. 그 중 하나는 다른 객체
에 속해야 하는 것이었고, 다른 하나는 단순한 비멤버
non
-
member
함수여야 했다.
그 결과 다음과 같이 더욱 간결한 클래스가 설계되었다. 당신도 이에 동의하리라 믿는다. 물론
그 다음 단계는 남아 있는 다른 블럽을 분해하는 것이었는데, 이는 별개의 이야기다(게다가 별
재미도 없다).
훌륭한 프로그래머 5교 수정.indd 151 ...
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