

#062 - The Art of Debugging (and Design Patterns)
Mar 10, 2022
Thomas Gaigher, the creator of pypyr, dives deep into the world of debugging and design patterns. He shares captivating insights on visualization techniques and effective strategies for enhancing the debugging process. The conversation covers the importance of clean code and discusses the unique challenges of the singleton design pattern in Python. Gaigher also emphasizes preventative measures, like adversarial testing, to catch potential issues early. By examining flawed designs, he showcases how design patterns can lead to more robust code.
AI Snips
Chapters
Books
Transcript
Episode notes
Avoid Over-Reliance on Debuggers
- Don't rely solely on a debugger to understand your code's behavior.
- Instead, invest in logging and instrumenting your code for effective tracking and tracing.
Debugging Layers in Code
- Thomas spent time debugging the test code, not the functional code itself.
- This layered debugging can make estimating work more difficult than expected.
Write Down Debugging Notes
- Write things down as notes for future reference, even if not public content.
- This practice saves time and confusion when revisiting code or setups later.