Slide 1

Slide 1 text

Do you like debugging?

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Do You Have A Rubber Duck? The Power of Rubber Duck Debugging

Slide 4

Slide 4 text

● A debugging technique in which you explain your code or problem to someone else or an inanimate object, like a rubber duck ● First introduced in the book ‘The Pragmatic Programmer’ by Andrew Hunt and David Thomas RUBBER DUCK DEBUGGING

Slide 5

Slide 5 text

How does it work?

Slide 6

Slide 6 text

Step 1: Be stuck on a bug

Slide 7

Slide 7 text

Step 2: Obtain a rubber duck

Slide 8

Slide 8 text

Step 3: Explain Your Problem or Code to the Duck

Slide 9

Slide 9 text

Step 4: Have a Eureka! moment

Slide 10

Slide 10 text

The Psychology Behind It ● Forces Articulation of the Problem ● Engages Multiple Cognitive Processes ● Breaks Down Complex Issues ● Eliminates Assumptions and Biases

Slide 11

Slide 11 text

● When to use? ● Choosing the right rubber duck ● Creating a distraction free environment ● Be patient and persistent Practical Tips

Slide 12

Slide 12 text

When to use?

Slide 13

Slide 13 text

● The danger of explaining without listening. ● When not to use Rubber Duck Debugging. ● Finding a balance with other debugging techniques. Pitfalls

Slide 14

Slide 14 text

Conclusion

Slide 15

Slide 15 text

So, do you have a rubber duck?