Pydon'ts - Write elegant Python code v4

PyCon Portugal 2022


I was scheduled to present at around 2pm but had a family emergency and couldn't make it to the conference. I recorded my talk after the conference and shared it online.

Description

In this talk, I show what idiomatic Python code looks like and illustrate how the subjective notion of “beautiful”, or “elegant” code, can make your code objectively better, regardless of your Python skill level. We do that by visiting several vanilla Python features that people sometimes forget to learn, as they rush to import all the shiny modules and frameworks they really want to use. In order to achieve this, we go through the learning journey of a hypothetical Pythonista, taking a function written by them and refactoring it incrementally through the use of Pythonic idioms and patterns. The whole talk will build around a weekly series of articles I have been publishing, where I explore all the vanilla Python features that make Python one of the most interesting programming languages to learn.

Watch the recording