SEARCH

How-To Geek

GEEK TRIVIA

Explaining Your Code To An Inanimate Object Is A Programming Trick Known As What?
Coderphrenia
Rubber Duck Debugging
Oral Examination
Talkthrough Testing


Answer: Rubber Duck Debugging

Rubber Duck Debugging is an informal method of debugging code that programmers have long relied on as a simple and cost effective way to catch code errors. The programmer, once he or she has finished coding, takes a moment to explain the code, line by line, to the rubber duck on their desk (or whatever other inanimate object, figurine, or toy they have handy).

By poring over their own code and explaining it out loud to the inanimate object, the programmer will often times catch errors in the code as the mismatch between what the programmer is explaining the program to do and what the code on the screen actually does is made more apparent–the programmer’s version of a student reading their term paper out loud to check for errors.

Other terms for Rubber Duck Debugging include Confessional Debugging and Cardboard Programmer.

Enter Your Email Here to Get Access for Free:

Go check your email!