궁금증 풀이 · 기술

오리 인형에게 코드를 설명하면 버그가 보이는 이유

고무 오리 디버깅

막힌 문제를 고무 오리 인형에게 한 줄씩 소리 내어 설명하다 보면 스스로 답을 찾는 경우가 많아요. 1999년 프로그래밍 책 《실용주의 프로그래머》에 실린 일화로 유명해졌어요. 남에게 설명하려면 대충 넘긴 부분을 하나하나 짚게 되기 때문이에요.

In English

Rubber duck debugging · Why explaining code to a toy duck reveals the bug

Explain a stuck problem line by line out loud to a rubber duck, and you'll often solve it yourself. It became famous through a story in the 1999 programming book The Pragmatic Programmer. Explaining forces you to look at the parts you glossed over.

이것도 궁금하지 않아요?