请输入您要查询的俚语:

 

俚语 rubber duck debugging
释义

rubber duck debugging

This is when a programmer debugs his/her code by reading it out loud to an acutal rubber duck sitting on the desk.

First you need to obtain a rubber duck (bathtub variety)

Secondly you should place the rubber duck on the desk and inform it you are just going to go over some code with it, if that's all right.

Then you explain to the duck what your code is supposed to do, and then go into detail and explain your code line by line

Lastly 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.
Adam: Hey Joe, could you help me with the debugging of this code, I have no idea what's wrong.
Joe: Here, take this rubber duck, and try some rubber duck debugging.
Adam: Holy shit, that actually worked, thanks.
随便看

 

英语俚语辞典收录了3210630条英语俚语在线翻译词条,基本涵盖了全部常用英语俚语的翻译及用法,是英语学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2024/12/23 9:59:39