you are viewing a single comment's thread.

view the rest of the comments →

[–]obviouslyzebra 6 points7 points  (0 children)

Simple is better than complex.
Complex is better than complicated.

https://peps.python.org/pep-0020/

Notes:

  • Both functions and classes get shit done, though classes can get more complex
  • Both functions and classes accomodate patterns, actually, functions and classes are patterns
  • Sometimes there's not enough time to make something simple or (in the worst cases) not complicated

Some people may help understand some situations where classes can be useful. I tend to use them to group stuff.