arundelo comments on Bargaining and Auctions - Less Wrong

29 Post author: Yvain 15 July 2012 05:01PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (70)

You are viewing a single comment's thread. Show more comments above.

Comment author: TheOtherDave 17 July 2012 04:47:27PM 4 points [-]

When I started my current job, I developed the ritual of writing email to the developer whenever I had a question about how code worked. Often, the developer no longer worked for the company, which didn't matter, since I never sent the email anyway.

What I found was that I would write emails like "So.. I notice X, and Y, and Z. Which seems like they contradict each other. Of course, it's possible that A is also true, which would explain it, but if A were true I'd expect to see B. Which..." (research) "I do indeed see. So, um, never mind." and delete the email.

Eventually I figured out how to have that conversation entirely inside my head, but it took quite a while.

Comment author: arundelo 17 July 2012 07:56:57PM 2 points [-]

This is called rubber ducking.

Comment author: TheOtherDave 17 July 2012 08:51:57PM 2 points [-]

I'd never heard that expression, though I was familiar with the technique (with a teddy bear, though, not a duck). That said, I wasn't actually programming at the time, just trying to understand what the code did.

Comment author: arundelo 17 July 2012 09:47:29PM 4 points [-]

I think I've seen it explained with a rubber duck more often, but I learned it first with a teddy bear too, probably on page 123 of Kernighan & Pike's "wiener dog book":

Another effective technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed "Never mind, I see what's wrong. Sorry to bother you." This works remarkably well; you can even use non-programmers as listeners. One university computer center kept a teddy bear near the help desk. Students with mysterious bugs were required to explain them to the bear before they could speak to a human counselor.

Comment author: TheOtherDave 17 July 2012 10:41:49PM 1 point [-]

Yes! That's exactly the anecdote wherein I first learned it.