~/talk

Python for Humans, Designing Python Code Like a User Interface

Talkat PyCon UK 2025 · on Sunday, 2025-09-21· at 11:30· Main stage· [python, developer-experience]
links:none on file
slides:none on file

Argues that treating Python like a UI makes code easier to scan and maintain by applying concrete practices: place docstring imports enums functions main in predictable order so readers scan bottom-up, prefer verbose names with type hints and defaults, use decorators to hide timing or logging (progressive disclosure), and refactor add-on conditionals into clearer interfaces. Recommends tooling for consistency and discovery — black ruff Pylance — and cites unit tests and familiar project layouts (FastAPI-style examples) as the ways teams reduce cognitive load and regressions.

AI-written summary · about

  1. 0:00Python for humans intro
  2. 1:11Why Python code hard to read
  3. 3:20Code like a user interface
  4. 4:24UI-inspired Python design
  5. 5:05Code structure patterns
  6. 8:15Naming for clarity
  7. 11:04Visual hierarchy in code
  8. 13:10Decorators for disclosure
  9. 16:23Intuitive Python functions
  10. 20:52Organizing code structures
  11. 23:18Standardizing Python tools
  12. 23:53Conclusion and key takeaways
~/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.