~/talk

Boring Object Orientation

Talkat PyColorado 2019 · 2019-09-07..09-08· [python, testing]
linkedin:moshezadka
slides:none on file

Argues that making classes boring improves robustness and testability by showing concrete patterns and tools rather than vague principles. Verifies interfaces with zoop.interface instead of duck typing, moves slow or fallible work out of __init__ into named constructors, uses utters with frozen=True for immutable data and evolve to produce modified copies, and replaces many methods with functools singledispatch functions to keep concerns separate and avoid brittle inheritance.

AI-written summary · about

  1. 0:00Start
  2. 0:44Boring object orientation
  3. 2:50Explicit interfaces in Python
  4. 6:19Simplify object initialization
  5. 11:38Automate object construction
  6. 13:25Prefer immutable objects
  7. 15:31Avoid private methods
  8. 17:55Single dispatch
  9. 20:00Avoid inheritance in Python
  10. 21:44Lessons from large systems
  11. 22:45Boring code for maintainability
  12. 23:08Q&A
~/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.