~/talk

PEP 8: How to Avoid Being a Python Hooligan

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [python, developer-experience]
links:none on file
slides:none on file

Compares a messy “hooligan” function with a clean one that both compute Euclidean distance (result 4.24) to show that naming, docstrings and unpacking make code readable; claims PEP 8 saves maintenance time and therefore money for stakeholders; recommends linters/formatters: Black and isort auto-refactor code, use flake8 (+plugins) for style, run mypy requires annotations and is slow to add, and run checks in pre-commit hooks or CI; shows bandit flags use of os.system.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Who is Python Hooligan
  3. 8:03PEP Conventions
  4. 13:22Programming Recommendations
  5. 16:40Tools
  6. 20:40Conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.