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

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

by 최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
May 2016
Beginner to intermediate
438 pages
8h 46m
Korean
Hanbit Media, Inc.
Content preview from 훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
110
1
부
you.write(code) ;
하는 정확함이란 리소스 누수가 없고 프로그램이 부적절한 상태가 되지 않도록 하는 것이다.
• 함수가 실패의 징후인 반환 코드나 예외 등을 돌려주지 않은 채, 기대되던 기능을 수행하지 않을 수도 있다. 함
수에게 어떤 메시지를 출력하도록 요청했다고 하자. 항상 함수는 메시지를 출력하는가? 아니면 때때로 기능 수
행에 실패한 채 매개 변수로서 전달한 메시지를 먹어버리는가?
항상 오류를 고려한 코드를 작성하여 그로부터 복구할 수 있도록 하라. 복구하지 못할 오류 역시
고려하라. 오류 상황에서도 최선을 다하도록 코드를 작성하라. 오류를 무시하지 말라.
오류 처리가 언어의 문법에 적합하고 적절한 언어 메커니즘을 사용하도록 하라. 예를 들면, 얼
랭에는 ‘실패하도록 두라’는 철학이 있다. 방어적인 코딩을 하는 대신 오류로 인해 시끄럽고 눈
에 잘 띄는 실패 상황이 발생하도록 그대로 놔둠으로써, 프로세스 수준에서 오류가 처리되도록
하는 것을 권장한다.
9.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