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 …
We have a great How to Ask page that explains all of this, which is linked generously throughout the network. (And on Stack Overflow, due to massive question volume, we actually force new users to click through that page before asking their first question. You can see this yourself by clicking on Ask Question in incognito or anonymous browser mode.)
What we're trying to prevent, most of all, is the unanswerable drive-by question. Those help nobody, and left unchecked they can ruin a Q&A site, turning it into a virtual ghost town. On Stack Exchange, questions that are so devoid of information and context that they can't reasonably be answered will be actively closed, and if they aren't improved, eventually deleted.
As I said, we're kinda jerks about this rule. But for good reason: we're not-so-subtly trying to help you help yourself, by teaching you Rubber Duck problem solving. And boy does it ever work. I've gotten tons of feedback over the years about how people, in the process of writing up their thorough, detailed question for Stack Overflow or another Stack Exchange site, figured out the answer to their own problem.
It's quite common. See for yourself:
How can I thank the community when I solve my own problems?
I've only posted one question so far, and almost posted another. In both cases, I answered my own questions at least partially while writing it out. I credit the community and the process itself for making me think about the answer. There's nothing explicit in what I'm writing that states quite obviously the answer I needed, but something about writing it down makes me think along extra lines of thought.
Why is it that properly formulating your question often yields you your answer?
I don't know how many times this has happened:
- I have a problem
- I decide to bring it to stack overflow
- I awkwardly write down my question
- I realize that the question doesn't make any sense
- I take 15 minutes to rethink how to ask my question
- I realize that I'm attacking the problem from a wrong direction entirely.
- I start from scratch and find my solution quickly.
Does this happen to you? Sometimes asking the right question seems like half the problem.
Beginning to ask a question actually helps me debug my problem myself
Beginning to ask a question actually helps me debug my problem myself, especially while trying to formulate a coherent and detailed enough question body in order to get decent answers. Has this happened to anybody else before?
It's not a new concept, and every community seems to figure it out on their own given enough time, but "Ask the Duck" is a very powerful problem solving technique.
Bob pointed into a corner of the office. "Over there," he said, "is a duck. I want you to ask that duck your question."
I looked at the duck. It was, in fact, stuffed, and very dead. Even if it had not been dead, it probably would not have been a good source of design information. I looked at Bob. Bob was dead serious. He was also my superior, and I wanted to keep my job.
I awkwardly went to stand next to the duck and bent my head, as if in prayer, to commune with this duck. "What," Bob demanded, "are you doing?"
"I'm asking my question of the duck," I said.
One of Bob's superintendants was in his office. He was grinning like a bastard around his toothpick. "Andy," he said, "I don't want you to pray to the duck. I want you to ask the duck your question."
I licked my lips. "Out loud?" I said.
"Out loud," Bob said firmly.
I cleared my throat. "Duck," I began.
"Its name is Bob Junior," Bob's superintendant supplied. I shot him a dirty look.
"Duck," I continued, "I want to know, when you use a clevis hanger, what keeps the sprinkler pipe from jumping out of the clevis when the head discharges, causing the pipe to..."
In the middle of asking the duck my question, the answer hit me. The clevis hanger is suspended from the structure above by a length of all-thread rod. If the pipe-fitter cuts the all-thread rod such that it butts up against the top of the pipe, it essentially will hold the pipe in the hanger and keep it from bucking.
I turned to look at Bob. Bob was nodding. "You know, don't you," he said.
"You run the all-thread rod to the top of the pipe," I said.
"That's right," said Bob. "Next time you have a question, I want you to come in here and ask the duck, not me. Ask it out loud. If you still don't know the answer, then you can ask me."
"Okay," I said, and got back to work.
I love this particular story because it makes it crystal clear how the critical part of rubber duck problem solving is to totally commit to asking a thorough, detailed question of this imaginary person or inanimate object. Yes, even if you end up throwing the question away because you eventually realize that you made some dumb mistake. The effort of walking an imaginary someone through your problem, step by step and in some detail, is what will often lead you to your answer. But if you aren't willing to put the effort into fully explaining the problem and how you've attacked it, you can't reap the benefits of thinking deeply about your own problem before you ask others to.
If you don't have a coding buddy (but you totally should), you can leverage the Rubber Duck problem solving technique to figure out problems all by yourself, or with the benefit of the greater Internet community. Even if you don't get the answer you wanted, forcing yourself to fully explain your problem – ideally in writing – will frequently lead to new insights and discoveries.
| [advertisement] What's your next career move? Stack Overflow Careers has the best job listings from great companies, whether you're looking for opportunities at a startup or Fortune 500. You can search our job listings or create a profile and let employers find you. |
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...
Perdervall on March 13, 2012 1:30 PMHow 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.
Nonapeptide on March 13, 2012 1:33 PMThe reason most of my questions are < 5 is because by the time I've typed out the question, I've found an answer.
Christopher Allen-Poole on March 13, 2012 1:33 PMThe 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.
Sedat Kapanoglu on March 13, 2012 1:43 PMI 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. :)
Alex Esplin on March 13, 2012 1:45 PMFor 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.
Nathan Voxland on March 13, 2012 1:58 PMInteresting 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.
Joe Taber on March 13, 2012 2:01 PMReminds 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.
Andand on March 13, 2012 2:19 PMI'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.
Martin Peacock on March 13, 2012 2:19 PMThis 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.
Mason Gup on March 13, 2012 2:22 PMWe 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.
Steve Wortham on March 13, 2012 2:22 PMYeah, 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.
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.
A Facebook User on March 13, 2012 3:41 PMOne 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.
Hayden Muhl on March 13, 2012 3:52 PMDoes 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.
Peter Walke on March 13, 2012 7:53 PMThis 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.
Leon Breedt on March 13, 2012 9:50 PMI 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?)
Paulmorriss on March 14, 2012 2:19 AMIt 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."
David Rutten on March 14, 2012 3:32 AMHhhh, 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.
Moutasema on March 14, 2012 4:48 AMI use a similar method to make sure I truly understand something. I create a 5 minute presentation on the subject intended for a public audience. If you can't explain it in 5 minutes you don't really understand it. Similar to the business concept elevator pitch https://en.wikipedia.org/wiki/Elevator_pitch
Rich Ryan on March 14, 2012 7:26 AMOne more technique: I never post a question until I've written the simplest possible program that demonstrates the problem. Most of the time, the act of doing this shows me the solution
If not, then at least I've provided the StackOverflow community with something concrete and simple that they can work from.
Plus it eliminates most of the "have you considered..." non-answers.
Ed Falk on March 14, 2012 10:52 AMA couple of places I worked we called it "A Second Set of Eyes." We hadn't made the leap to an inanimate object.
And, I'm another one who has started to type up a question or two, only to abandon it. Either by ruling out obvious refining questions, or by producing a simple example of the problem.
Drake Christensen on March 14, 2012 5:27 PMRegardless of how detailed is your internal representation/understanding of the problem it always makes sense to just verbalise it - my theory is that it just activates different neural passages in your brain which eventually helps in finding the solution.
Smartial_arts on March 14, 2012 7:43 PMWe always called this "talking to the bear", after a plush teddy bear that allegedly at one time. It became traditional, when asking a co-worker a question, to start with "would you mind being the bear for a minute?"
Peter Da Silva on March 15, 2012 6:56 AMI wish I'd thought of the funny nomenclature, but I didn't. I did however, express this thought back in 2004: http://www.mooreds.com/wordpress/archives/193
Dan Moore
Www on March 15, 2012 8:13 AM@Christopher Allen-Poole, if you've gone to the trouble of typing out the question, self-answering is encouraged on SO, so go ahead and give the community the benefit of your experience.
That exact thing happened to me a couple months ago: http://stackoverflow.com/q/8715738/99640
The question wound up so long and involved that it seemed a shame to throw it away, so I posted it and answered it myself.
Chuck Wilbur on March 15, 2012 1:53 PMI love your article, so please ask Bob the Duck out loud: "Why doesn't Stackoverflow have a cancel button on the Ask Question page?"
Jason Fritz on March 16, 2012 10:42 PMI have had a duck by my work computer for the past 7 years. It has been a great help in maintaining an old code base.
Marshall Gates on March 17, 2012 10:10 AMEven though it was more or less dismissed in the linked coding buddy article this is basically the entire crux of pair programming in Agile development.
And for some reason many developers swear blind that they must only work alone without interruption from anyone else.
Plus of course there is another major benefit from pair coding that few talk about. http://almaer.com/blog/pair-programming-productivity
Jodyfanning on March 18, 2012 12:49 PMWhen I was a lone "engineer", I once had an Exchange issue that I couldn't solve - partly because I didn't then know the answer and partly because I was too stretched for resources to devote the time needed to finding the answer.
Anyway, my employers agreed that in the short term they'd call a consultant in to help me fix the exchange issue and they'd hire me an assistant.
On the day the consultant turned up (he was one we'd used before and I knew quite well) I started explaining the problem to him, and yes, the sheer act of explaining the issue to someone who understood it and needed the technical details caused the probable fault and a solution to pop into my mind. The consultant started laughing when I told him this and claimed he could actually see the lightbulb start glowing over my head even before I told him this.
So it works with more than one person, and I guess with the rubber duck if you can bring yourself to explain the problem in proper detail to it.
The consultant was still useful; given how little time I had, he spent two days proving my latest theory and then implementing and testing my solution. It was still a two person job anyway and that's something that rubber duck problem solving doesn't help with.
RobertoMoir on March 20, 2012 4:07 AMIt should be *Teddy Bear* not Rubber Duck!
See the 1999 book _The Practice of Programming_
http://cm.bell-labs.com/cm/cs/tpop/debugging.html
Inanutshellus on March 20, 2012 1:05 PMOur questions are directed towards a picture of Arthur Fonzarelli on the wall.
The Fonz always knows the answers.
Liam Blizard on March 21, 2012 8:19 AMThe Fonz always knows the answers.
Montgomery888 on March 23, 2012 7:44 PMI answer questions on SO and I'm also a moderator at a Java forum website.
The overwhelming majority of people don't seem to understand how to ask a question properly on SO or in the forums. Every day there are people posting a single line "Why doesn't my program work?" followed by 1000 lines of code, people who post "I get an error!" without even bothering to write what the error message is, people who think that somehow someone else on the other side of the Internet can read their mind, people who don't even know themselves what the question is that they're asking, etc.
The rubber duck would certainly take care of many of those people. And if they ask "Bob", they should at least try standing in the shoes of "Bob" so they realize what they need to tell Bob for their question to be answerable.
Jesper De Jong on March 30, 2012 7:28 AMAlso, I meant to link to this great blog post which is yet another example of this realization:
http://remarkablepixels.com/blog/2011/1/5/the-best-question-is-the-one-never-asked.html
Jeff Atwood on April 9, 2012 5:17 PMSometimes I wonder if you even need to ask the duck the question. Often if I can't solve a problem I just move onto another task. When I come back to the original task a day or so later, the problem seems to be much easier to solve. (That obviously doesn't work if you have a deadline and can't just move on to another task.) Perhaps asking the duck is just taking your brain off the original problem and giving it something else to do for a while.
Chris Fox on April 13, 2012 7:35 AMSometimes when I have stared at code so long that I've memorized it, instead of a rubber duck, I imagine one of my most brilliant and demanding teachers, to whom I present the code as correct.
A Facebook User on April 18, 2012 9:38 PM
Sir, I've followed your suggestion, but then I have another question:
what about if I do not have a duck in my office ?
whom should I ask where I can find a duck to ask for ?
guzel paylasim olmus. tesekkur ederiz. http://havadurumu.cuknet.com
Facebook3 on June 21, 2012 8:21 PMHi Jeff: You are observing that "something about writing it down makes me think along extra lines of thought."
I would like to add another observation, mainly because the link is obvious, but (still) not well understood: the acceptance of logical rules of inference (modus ponens, say) is closely related to literacy. There's quite a body of research out there now showing that illiterate people are not willing, or unable to accept formal rules of inference, research which is adumbrated by the fact the the first formalization of logic, Aristoteles,' was more or less concomitant with the introduction of literacy to Greek society (Socrates, for example, was still illiterate, (although he knew how to use logic well)).
A principal researcher in this field is Philip Johnson-Laird of Princeton
http://psych.princeton.edu/psychology/research/johnson_laird/index.php
By the way, have a look at my blog:
http://morefreedomfries.blogspot.ch/2012/09/freedom-fries-introduction.html#more
Cheers...
The comments to this entry are closed.
|
|
Traffic Stats |