Skip to main content

Rethinking Objects

  • Great talk
  • History of OOP
  • How best to combine with fp when writing python
  • Start with functions and introduce objects when the code tells you to, but not always
  • @frozen decorator
  • Protocols (traits) over ABCs
  • Prefer immutable data structures over objects
  • Prefer functions over methods
  • But mix when helpful

Original video by PyCon US: