Bored Panda works better on our iPhone app
Continue in app Continue in browser

BoredPanda Add post form topAdd Post
Tooltip close

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

Programmer Explains Why They Keep Rubber Ducks By Their Computers
User submission
135
17.3K

Programmer Explains Why They Keep Rubber Ducks By Their Computers

ADVERTISEMENT

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!

RELATED:

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

    ADVERTISEMENT

    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

    ADVERTISEMENT

    17Kviews

    Share on Facebook
    Andželika

    Andželika

    Author, Community member

    Read more »

    This lazy panda forgot to write something about itself.

    Read less »
    Andželika

    Andželika

    Author, Community member

    This lazy panda forgot to write something about itself.

    What do you think ?
    Add photo comments
    POST
    Stille20
    Community Member
    6 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

    ...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
    6 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

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

    Hans
    Community Member
    6 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

    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
    6 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

    ...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
    6 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

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

    Hans
    Community Member
    6 years ago DotsCreated by potrace 1.15, written by Peter Selinger 2001-2017

    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
    Related on Bored Panda
    Related on Bored Panda
    Trending on Bored Panda
    Also on Bored Panda