Wednesday, 8 October 2014

Rubber duck debugging

Rubber duck debuggingrubber ducking,[1] and the rubber duckie test[2] are informal terms used in software engineering to refer to a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around arubber duck and debug his code by forcing himself to explain it, line-by-line, to the duck.[3] The practice is also known as "teddy bear debugging" for similar reasons, most notably an anecdote in The Practice of Programming.[4]
Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process of explaining the problem. In describing what the code is supposed to do and observing what it actually does, any incongruity between these two becomes apparent.[5]By using an inanimate object, such as a rubber duck, the programmer can try to accomplish this without having to involve another person.

No comments:

Post a Comment

Wildern Pupils if you log onto your school email account you can leave a comment via that ID.