a companion discussion area for blog.codinghorror.com

Rubber Duck Problem Solving


#1

At Stack Exchange, we insist that people who ask questions put some effort into their question, and we're kind of jerks about it. That is, when you set out to ask a question, you should …


This is a companion discussion topic for the original blog entry at: http://www.codinghorror.com/blog/2012/03/rubber-duck-problem-solving.html

#2

While rubber ducking usually is a great idea, I recently had a pretty odd experience with the concept. The company in question was a really tiny one, with a high rotation of developers - at one time the flock of developers were reduced to just one waiting for more to be hired to replace the old worn-out programmers

Now, it was mandated from above that the development team must use scrum, since apparently that solved everything. Even though this scrum team only had one guy on it. The lone developer protested loudly saying, I can’t stand in front of the whiteboard talking to myself.

So they got him a rubber duck. A really big rubber duck. An actual rubber duck which was introduced to him by the manager saying
"Now you can hold your daily meetings, meet Dennis, your new scrum partner".

It didn’t really catch on…


#3

How very fitting then that I awarded specialty rubber ducks to the winners of my 2011 ServerFault Challenge. =)

In the process of asking a question on ServerFault or other online communities, I have often come upon the answer to my question. That’s a large part of the reason why I started blogging. As I would troubleshoot issues in the real world, I found that writing out my experience would cause me to see the issue in a simpler way and I’d almost always find the solution. By that point, I would have 90% of a blog post written anyway, so I might as well publish it to the benefit of others.

If my post or forum question didn’t net an answer, well, it usually refined my thought process and made it a valid contribution to the nets at large. Someone, somewhere will then have a much easier time answering it or perhaps learning from what troubleshooting steps I’ve already taken.


#4

The reason most of my questions are < 5 is because by the time I’ve typed out the question, I’ve found an answer.


#5

The only catch is that when you figure out the answer for your question while writing it, you throw the question away. So the community becomes bereft of your self-found answer which might be helpful to people who cannot come up with that obvious answer themselves.


#6

I can’t count the number of times I’ve answered questions or solved bug by trying to explain it to my wife, who is not an engineer.

Breaking your problem or question down so someone who has no or extremely limited domain knowledge works wonders. And you don’t look as crazy as you do talking to a duck.

The added bonus is that my wife now has a passing knowledge of all kinds of software-related topics. :slight_smile:


#7

For something more interactive, there is http://code-consultant.appspot.com which is an eliza-bot modified to sound more developer-focused.

It will also search stackoverflow for related questions in an attempt to be more helpful than the normal eliza bot.


#8

Interesting that at the end of the article you linked to your “Who’s Your Coding Buddy?” article from 2009; the last comment (by Jim Howard) on that post mentions something akin to the Rubber Duck principle.


#9

Reminds me of some sage advice I got… the first and most important step in problem solving is to understand the problem you are trying to solve. The rest just kind of slides into place more often than not.


#10

I’ve had many instances of this starting from a memorable ‘water cooler’ moment something like 30 years ago. I’ve thought about it a little bit and I put it down to something with left-brain/right-brain. The act of verbalising moves the problem from one to the other and puts the necessary different perspective on it.


#11

This seems to kind of mirror my own internal problem-solving technique. I too have only actually asked a couple of questions because almost every problem I’ve run into, I’ve solved myself well before I did enough research and searching to write a quality question that hasn’t already been asked a dozen times.

I might even say that Stack Overflow’s gotten big enough that it’s tough to participate - you almost have to get into kind of obscure stuff to have a question that’s meaningful and hasn’t already been asked and answered, and you usually have to be a pretty top-level programmer to answer the questions that do pop up quickly enough. Not that I’m really compaining - it’s more valuable as a well-indexed and searchable store of knowledge than as question-and-answer resource.


#12

We used to use this technique at my last job a lot. Only we called it the dumb rock routine. Usually we’d walk another developer through the problem we’re having and end up finding the answer ourselves half the time. In this case the other developer is the “dumb rock”. But we could have just as easily substituted a rubber duck.

Or… nowadays I tend to talk to myself a lot. That works too.


#13

Yeah, that’s happened to me before, although Do think that the fact that I’m actually typing the question into StackOverflow with the intent to actually ask the question, helps motivate me to go through that exercise.


#14

When I was still in high school, I found it really useful to tell my parents all about the problems that I was having coding, because I’d have to explain everything about what I’m doing to them and lay out what I actually want to do logically in my head.


#15

One of my old bosses used to do this to me. He would come into my office, get half way through his question, snap his fingers, turn on his heel and go back to his office. He did this a couple times in close succession, and came back to me and said, “You know. I should just get a rock. Before I come to you with a question, I should just ask the rock first.”

When I left that job, I got him a rock as a present.


#16

Does StackOverflow track the statistics of abandoned questions? I would love to see how many questions are abandoned after a valiant effort (e.g. >10 minutes before of writing, >100 words written). I’ve definitely had this happen to me.


#17

This is amusing, this has happened to me so many times.

Just a few hours ago, I was writing up an iOS programming question, and the exercise of polishing my query and clarifying what I wanted to do led me to the answer, without having to post anything.


#18

I worked one place where they had yellow plastic “men” which were put out when the floor had been mopped. We used to say to people - go ask the yellow man. I didn’t realise that technique had a proper name. (If it’s on wikipedia it must be proper, right?)


#19

It doesn’t always work, sometimes it just manages to waste a lot of time of everyone involved rather than the other way around. I had this very same problem with StackOverflow. I had a very complicated problem and yet the question could be stated in 2 sentences + an example method signature. As it turns out, what I wanted was not possible, but instead of getting that answer I -and of course the 3 or 4 people trying to help me- were dragged into discussing the very complicated part because of this rubber ducky philosophy.

Any interaction on SO is so painful for me these days that it has become an absolute last resort, which in turn means I spend as little time there as humanly possible which in turn means I stopped answering anybody else’s questions. Clearly, the site is doing fine and doesn’t need me in the slightest, but it cannot be denied that my own experience has shifted dramatically from “this is the greatest programmer forum ever!” to “don’t subject yourself to SO unless you have no other option.”


#20

Hhhh, So lovely article and i will try it my self to see if its true. I dont have a duck on my desk by i have monkey and will start working with it from now on.