Bored Panda works better on our iPhone app
Continue in app Continue in browser
BoredPanda Add Post

The Bored Panda iOS app is live! Fight boredom with iPhones and iPads here.

Programmer Explains Why They Keep Rubber Ducks By Their Computers
148points
User submission
135
16.9K
Funny3 years ago

Programmer Explains Why They Keep Rubber Ducks By Their Computers

There’s no doubt that programming is hard. You often get stuck for hours or even days trying to track down bugs in your code. Luckily, programmers are usually very good at solving problems, so it’s not a surprise that they ‘hacked’ debugging and found a better way to approach it.

While it may seem strange, programmers use rubber ducks to make their work a little bit easier. Even though the ducks don’t really do anything on their own, it turns out just explaining the code to them can help a programmer find the problem. The trick is very simple, once you try to explain the problem to someone (or something) else you understand it better and it’s easier to find a fix. Don’t believe us? Scroll below to see what programmers have to say about it!

Debugging can be overwhelming, but programmers have a secret weapon to help them find bugs

As it turns out it’s quite a common thing to do, so next time you’ll see a programmer with a rubber duck don’t get surprised

Image credits: Odkq

17Kviews

Share on Facebook
Popular on Bored Panda
Leave a comment
Stille20
Community Member
3 years ago

...I think I need a duck. I often figure this stuff out in the shower... but you can only take so many showers in a day.

Kimberly
Community Member
3 years ago

Just laughing at "so that's the function of a rubber duck" Mr. Weasley would be very excited about this article!

Hans
Community Member
3 years ago

In fact, this practice is employed as an addition to testing. It is called a code review. Sounds ineffective but can fine the most serious, hard to detect defects in code.

Load More Comments
Stille20
Community Member
3 years ago

...I think I need a duck. I often figure this stuff out in the shower... but you can only take so many showers in a day.

Kimberly
Community Member
3 years ago

Just laughing at "so that's the function of a rubber duck" Mr. Weasley would be very excited about this article!

Hans
Community Member
3 years ago

In fact, this practice is employed as an addition to testing. It is called a code review. Sounds ineffective but can fine the most serious, hard to detect defects in code.

Load More Comments
Popular on Bored Panda
Popular on Bored Panda
User Submissions
Also on Bored Panda
Also on Bored Panda