Strona o debugowaniu gumową kaczką z instrukcją w czterech krokach

Metoda gumowej kaczuszki: tłumacz kod kaczce, nie koledze

r/
r/ProgrammerHumorz serwisu Reddit, wczoraj

Instrukcja debugowania z gumową kaczką: kup kaczkę, postaw na biurku, wyjaśnij jej kod linijka po linijce, aż sam zauważysz błąd. Uwaga na końcu: lepiej zwierzać się kaczce niż koledze z pracy.

Tekst z mema

Rubber Duck Debugging 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 realise that this 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.

Po polsku

Debugowanie gumową kaczką Metoda wygląda tak: 1. Wyżebraj, pożycz, ukradnij, kup lub zdobądź gumową kaczkę (kąpielową). 2. Postaw ją na biurku i poinformuj, że chcesz tylko przejrzeć z nią kod. 3. Wyjaśnij kaczce, co kod ma robić, a potem linijka po linijce. 4. W pewnym momencie powiesz kaczce, co robisz dalej, i zrozumiesz, że to nie jest to, co faktycznie robisz. Uwaga: w razie potrzeby kaczkę może zastąpić współpracownik, ale błędy lepiej powierzać kaczce.

Źródło

Autor: u/Aldrakev, serwis Reddit, opublikowano 4 lutego 2023.

Obrazek wyświetlamy prosto z serwisu Reddit (r/ProgrammerHumor), bez kopiowania.

Oryginał w serwisie Reddit

Jesteś autorem i chcesz, żeby to zniknęło? Zgłoś, usuniemy.

Dodano 17 listopada 2026, tematy: debugowanie, gumowa kaczka, programiści, kod, dział Technologia.

Podobne gnioty