49 points · by jaybol · 16y ago · 20 comments
In my experience the rubber duck works better because it doesn't try to talk back to you or interfere in any way.
How often have you grabbed a colleague for help, gotten half way through explaining the problem, then said "Oh, I'm an idiot, I see the problem, nevermind."
It also works for more abstract problems. If the rubber duck isn't your style, grab a notebook and a pencil then interview yourself on paper about whatever is giving you trouble. (life, career, relationship, motivation, inspiration, anything) I've had some great insights and ideas tumble out of this process – stuff I simply would not have thought of otherwise.
I know of a few places like THQ in Australia which promote this idea of rubber ducking.
Also paper and pencil works well for when your only option is to printf debug (embedded devices with no support).
I just hate those times when you've misunderstood the API and you expect certain functionality which isn't its actual defined functionality. You live, you learn.
I'll tell him he's my rubber duck.
NB: silently looking over the code is not the same. Something about having to explain it to a third party makes you question your assumptions in a way that is helpful.
That's far from a new idea; that misguided idea is how monstrosities like COBOL got inflicted on innocent programmers. Here's the problem: whatever you create, will not really be a natural language, it will just be another programming language. Yet for some reason everyone who has this idea thinks no one else ever thought of it. It's the computer science equivalent of perpetual motion physics cranks.
This is not what I was suggesting at all. I am thinking along the lines of Knuth's literate programming. What I'm proposing is a programming language combined with natural language, but instead of annotating a programming language with natural language annotations, I'm proposing doing it the other way around. There would still be two separate languages involved. You are talking about a single notation system with the qualities of both natural language and a programming language. Yes, that is a crank idea, which your mind seems to be stuck on.
They're quite effective actually :)