Python for Humans - Designing Python Code Like a User Interface
summary
Seven concrete design moves appear with before-and-after code: using top-level structure as layout so files scan top-down with a bottom entry point, naming treated like labels with type hints and defaults, spacing and grouping for visual hierarchy, and progressive disclosure via functions, classes, or decorators (example: a timing decorator extracting logging). Demos use a local Tiny Paws example and recommend formatters and checkers like black ruff Pylance, advocating picking one or two and keeping them in CI.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 2:59Code as user interface
- 4:23Code structure patterns
- 7:12Clear naming conventions
- 9:39Visual hierarchy
- 11:49Progressive disclosure with decorators
- 14:39Functions like forms
- 18:07Familiar directory structures
- 20:58Formatters and linters
- 22:23Clean code today
- 23:46Q&A
related talks
24mPython for Humans, Designing Python Code Like a User Interface
02h 17mIntro to Python for Brand New Programmers
23mReadability Counts
23mWriting quality code
43mIdiomatic Python: Tools and Tips
25mPEP 8: How to Avoid Being a Python Hooligan
01h 26mPackage Your Python Code as a CLI
33mElegant Solutions For Everyday Python Problems
