Saturday, October 16, 2010

The Rubber Duck Method

This might be of help while debugging a code or solving a problem. :)

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 you code is supposed to do, and then go into
   detail and explain things line by line
4) At some point you will tell the duck what you are doing next and then
   realise 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.

The perfect combination of humor and advice! 
 
Source: http://lists.ethernal.org/oldarchives/cantlug-0211/msg00174.html

No comments:

Real Time Analytics