this post was submitted on 10 Aug 2023
186 points (98.4% liked)

Programmer Humor

32716 readers
278 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

A blue rubberduck with an Australian flag and the text Australia printed on it, positioned on a white cup

you are viewing a single comment's thread
view the rest of the comments
[–] lambda 10 points 1 year ago* (last edited 1 year ago) (2 children)

Okay, this is the second thing I've seen about rubber duck debugging. What does this mean? Am I a bad developer?

Edit: LFTL

[–] [email protected] 5 points 1 year ago (1 children)

When working on complex tasks, it's easy to get sucked into it and not see the wood for the trees. One of the best solutions is to talk it through with someone. Often, as you are explaining it, you will realise that it's not doing what you just said, but something different. You also sometimes realise that your solid logic is far less logical than it seemed, inside your own head.

Critically, none of these actually require the knowledge or interaction of the person you are talking to. Rather than explaining it to a colleague, and wasting their time, some people use an inanimate object. A rubber duck has become a common method. It's small, easy to source, and can sit on top of a monitor etc, with a face to talk too. Other personified toys also work just as well, as do pets, babies, or life partners etc.

Basically, it's a method of breaking a bad cycle, by getting out of your own head, and so realise where you keep f*****g up.

[–] [email protected] 1 points 1 year ago

@cynar

At home, I rely on Kizuna AI, who offers the added benefit of having the same confused expression on her face that I probably do, if I'm reduced to explaining a tech issue to her.

Helps me feel as if it's not just me...

Image flagged sensitive due to (inanimate) eye contact.

@lambda

[–] [email protected] 3 points 1 year ago

the fact is that most ducks prefer to take a mentoring role

🦆 🤣