~/talk

The How and Why of Object-oriented Programming in Python

Talkat PyCon US 2023 · 2023-04-19..04-27· [python, developer-experience]
links:none on file
slides:none on file

Starts from a working procedural script that reads CSVs and produces the same travel‑time chart, then refactors that code into classes and small, testable pieces; uses Jupyter notebooks and matplotlib-style plotting, moves charging logic into a new battery class, demonstrates operator overloading and classmethod factory patterns, and shows inheritance to add connect/disconnect overhead. The examples reproduce identical numeric results, the plots render, and small exercises (height/person objects) let the code be rebuilt and verified.

AI-written summary · about

  1. 0:00Introduction
  2. 0:22Speaker background
  3. 2:30Audience experience
  4. 3:11Course objectives
  5. 4:38Code walkthrough setup
  6. 14:10Switching to Jupyter
  7. 18:31Procedural electric car solution
  8. 32:33Procedural to OOP conversion
  9. 57:24Inheritance introduction
  10. 1:08:59Operator overloading
  11. 1:29:22Coffee break
  12. 1:30:04Addressing questions from the break
  13. 1:48:55OOP conversion exercise
  14. 2:09:50OOP design analysis
  15. 2:35:05Advantages and disadvantages of object-oriented programming
  16. 2:44:26Final exercise and closing
~/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.