![]() ![]() ![]() The Pragmatic Programmer: From Journeyman to Master. Eureka effect § The Aha! effect and scientific discovery.It referenced rubber ducking as a powerful method for solving problems. However, the duck merely produced a quack sound after apparently thinking and typing. The duck appeared at the bottom right corner of the browser viewport, and attempted to help visitors by listening to their problems and responding with solutions. On 1 April 2018, Stack Exchange introduced a rubber duck avatar on their websites as a new "feature" called Quack Overflow as an April Fools' Day joke. This approach has been taught in computer science and software engineering courses. By using an inanimate object, the programmer can try to accomplish this without having to interrupt anyone else, and with better results than have been observed from merely thinking aloud without an audience. More generally, teaching a subject forces its evaluation from different perspectives and can provide a deeper understanding. In describing what the code is supposed to do and observing what it actually does, any incongruity between these two becomes apparent. Many programmers have had the experience of explaining a 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. Many other terms exist for this technique, often involving different (usually) inanimate objects, or pets such as a dog or a cat. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line by line, to the duck. In software engineering, rubber duck debugging (or rubberducking) is a method of debugging code by articulating a problem in spoken or written natural language. A rubber duck in use by a developer to aid code review ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |