Happy National Rubber Ducky Day!


Happy National Rubber Ducky Day!

While most of think of Rubber Duckies as bath toys, did you know that Computer Programmers use them to help solve problems in their code?

It's called, "Rubber Duck Debugging" and if you look on the desk of most programmers, they'll have a cute little rubber ducky sitting on their desk.

If you're not familiar with the method, here's the following steps provided by rubberduckdebugging.com:

The rubber duck debugging method is as follows:

  1. Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck (bathtub variety).
  2. Place rubber duck on desk and inform it you are just going to go over some code with it, if that’s all right.
  3. Explain to the duck what your code is supposed to do, and then go into detail and explain your code line by line.
  4. At some point you will tell the duck what you are doing next and then realize that that is not in fact what you are actually doing. The duck will sit there serenely, happy in the knowledge that it has helped you on your way.

Note: In a pinch a coworker might be able to substitute for the duck, however, it is often preferred to confide mistakes to the duck instead of your coworker.

Original Credit: ~Andy from lists.ethernal.org

This is the duck I gave my brother to help with his coding probs. He claims he and his team use it all the time.

You can get this rubber ducky and other themed ones at Duck City.