[89a] Debugging in Python (Juan Luis Cano Rodríguez)

Описание к видео [89a] Debugging in Python (Juan Luis Cano Rodríguez)

Join our Meetup group for more events!
https://www.meetup.com/data-umbrella

[89a] Debugging in Python (Juan Luis Cano Rodríguez)
Video 1/3:    • [89a] Debugging in Python (Juan Luis ...  

[89b] Debugging in Python: in Jupyter Notebook (Juan Luis Cano Rodríguez)
Video 2/3:    • [89b] Debugging in Python: in Jupyter...  

[89c] Debugging in Python: in Visual Studio Code (VSC) (Juan Luis Cano Rodríguez)
Video 3/3:    • [89c] Debugging in Python: in Visual ...  

Resources
- Event info: https://github.com/data-umbrella/even...
- Repo: https://github.com/astrojuanlu/worksh...
- Slides: https://github.com/astrojuanlu/worksh...
- structlog: https://www.structlog.org/en/stable/
- rich: https://rich.readthedocs.io/en/stable...
- Brandon presentation: https://rhodesmill.org/brandon/slides...
- Example of Kedro issue: https://github.com/kedro-org/kedro/is...
- Joel Grus talk: I don't like notebooks    • I don't like notebooks.- Joel Grus (A...  
- Video on Unit Tests:    • [36] Intro to Unit Testing and Contin...  

About the Event
Your code gives an error. Or worse: it doesn't give an error, but doesn't do what you want. Welcome to the hard part of programming! What to do now?

In this talk we will talk about debugging, which includes a broad set of techniques to identify the root causes of undesired behavior in programs and eventually fix them. We will start with a theoretical introduction of the different types of debugging, we will describe a couple of techniques that you can use, and we will apply them in practice, both in Jupyter Notebook (using its new interactive debugger) and in VSCode.

Timestamps
00:00 Intro to Data Umbrella
02:59 Speaker Introduction
04:22 Talk begins + outline
09:56 Sources of bugs
13:17 Types of debugging - tracing v. interactive
16:20 Interactive debugging
19:17 Interactive debugging - VSCode example
19:38 Debugging is problem-solving
21:13 Technique 1 - Divide and Conquer
23:13 Technique 2 - Hypothesis Testing
25:43 Technique 3 - Reduction
27:47 Technique 4 - Reading Carefully
29:31 Traceback example + exercise
31:40 Think of your future self
32:49 Five (5) debug code tips
36:02 Q&A - Structlog library
37:11 Q&A - What is Rich formatting?
38:15 Q&A - Larger screenshot review (ImportError, VSCode/JupyterLab debug interface)
41:02 Q&A - Stack Overflow management tips
44:04 Q&A - Template for bug reporting
45:54 Reviewing debug tips and tricks
47:17 Q&A + inspiration for debugging
49:14 Comments - get familiar with common tracebacks / errors seen to produce correct syntax
51:38 Q&A - How does unit testing factor into debugging?

About the Speaker
Juan Luis (he/him/él) works as Developer Advocate at QuantumBlack, AI by McKinsey, with a focus on Kedro, an open source data science framework. He has a decade of experience as developer advocate, software engineer, and Python trainer in several industries. PSF Fellow since 2017, he has made significant contributions to the PyData stack, published several open-source packages, and organized the first seven PyCons in Spain. Currently he is the lead organizer of the PyData Madrid monthly meetups.
- LinkedIn:   / juanluiscanor  
- GitHub: https://github.com/astrojuanlu/

#python #codereview

Комментарии

Информация по комментариям в разработке