Posts

Showing posts with the label Debugging

Rubber Duck Debugging

Image
Hari ini baca blog dari Larryullman  ada satu teknik debugging yang membuat saya merasa lucu ketika membacanya yaitu Rubber Duck Debugging. Pikir saya : "Orang ada-ada aja kalau buat nama, Bagaimana debugging pakai Rubber Duck?" Karena penasaran saya coba baca link referensi dar milis linux  dan dari wikipedia . Penjelasan dari situ adalah : Rubber Duck method of debugging : Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck (bathtub variety). Place rubber duck on desk and inform it you are just going to go over some code with it, if that's all right. Explain to the duck what you code is supposed to do, and then go into detail and explain things line by line. 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. Setelah saya membaca langkah-langkah rubber duck debuggin...