상세 컨텐츠

본문 제목

The Zen of programming의 일부 소개

by techbard 2007. 10. 14. 09:18

본문

반응형

'프로그래밍의 도'가 출간된지(1986) 2년 후에 또 '프로그래밍의 선'이 출간된 것 같다.
 그 책의 일부 귀절을 원문 그대로 옮기고 번역해 본다.

사용자 삽입 이미지


Thus spake the master: "Any program, no matter how small, contains bugs."
The novice did not believe the master's words: "What if the program were so small
 that it performed a single function?" he asked.

"Such a program would have no meaning." said the master, "but if such a one existed,
 the operating system would fail eventually, producing a bug."
But the novice was not satisfied. "What if the operating system did not fail?" he asked.

"There is no operating system that does not fail," said the master, "but if such a one existed,
 the hardware would fail eventually, producing a bug."
The novice still not satisfied. "What if the hardware did not fail?" he asked.

The master gave a great sigh. "There is no hardware that does not fail," he said,
"but if such a one existed, the user would want the program to do something different,
 and this too is a bug."
A program without bugs would be an absurdity, a nonesuch. If there was a program without
any bugs then the world would cease to exist.

============================================================

마스터가 말씀하셨다. "어떤 프로그램도, 아무리 작은 것이라도 버그는 존재하기 마련이다."
수련생이 마스터의 말씀을 믿지 못하여 말했다. "그러면 프로그램의 크기가 대단히 작아서
단 하나의 기능만 수행하면 어찌됩니까?"

"그런 프로그램은 의미가 없다." 마스터가 말씀하셨다. "하지만 만일 존재한다면, 운영체제 시스템이
결국엔 문제를 일으켜, 버그가 만들어 질 것이다."
하지만 수련생은 (그 대답에) 만족하지 않았다. "운영체제 시스템이 문제가 없으면 어찌됩니까?"

"문제가 없는 운영체제 시스템은 없다." 마스터가 말씀하셨다. "하지만 만일 존재한다면 하드웨어가
결국엔 문제를 일으켜, 버그가 만들어 질 것이다."
수련생은 여전히 (그 대답에) 만족하지 않았다. "그러면 하드웨어에 문제가 없으면 어찌됩니까?"

마스터는 긴 한숨을 쉬며 말씀하셨다. "문제가 없는 하드웨어는 없다."
"하지만 만일 존재한다면 유저가 프로그램이 조금 더 다른 방식으로 동작하기를 원할 것이고,
이것 역시 버그가 된다."
버그가 없는 프로그램은 불합리하며, 이상에 가깝다. 만일 프로그램에 어떤 버그도 없다면 이 세상은
존재하지 않을 것이다. ^^

반응형

관련글 더보기

댓글 영역