The How and Why of Object-oriented Programming in Python
summary
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
chapters (16)
- 0:00Introduction
- 0:22Speaker background
- 2:30Audience experience
- 3:11Course objectives
- 4:38Code walkthrough setup
- 14:10Switching to Jupyter
- 18:31Procedural electric car solution
- 32:33Procedural to OOP conversion
- 57:24Inheritance introduction
- 1:08:59Operator overloading
- 1:29:22Coffee break
- 1:30:04Addressing questions from the break
- 1:48:55OOP conversion exercise
- 2:09:50OOP design analysis
- 2:35:05Advantages and disadvantages of object-oriented programming
- 2:44:26Final exercise and closing
related talks
34mTeaching Object-Oriented Programming with Python
08mEnd of OOP with Python
46mOn Being Pythonic
03h 14mGetting started with Object-Oriented Programming through Signal...
01h 27mObjectionable Content
19mObjects and classes in Python (and JavaScript)
02h 14mHands-on Python for Programmers
01h 50mSpreadsheet-Driven Meta-Programming for Python
