Python Best Practices - A Guide for the Beginner Pythonista in the AI Era
When should I use decorators? Are type hints needed? Why care about PEP8? How can AI help? This session is for beginner Python enthusiasts who have mastered some of what this great language offers but still need pointers on how to use each tool.
Python has some really great traits, and contrary to the Zen of Python, there are usually many ways to get things done. In this session, we will discuss best practices that contribute to making code more readable and easier to maintain. You might already know how to use decorators, but when should you actually use them? Documentation is a good practice, but should you use docstrings, type hints, or one-liner comments? AI is great at proposing code, but what should you be paying attention to before implementing its suggestions? These are the types of questions we will explore together. I have been using Python for more than 6 years, and this talk is based on a workshop I have delivered to different teams in professional settings.