News for hackers. Stuff that matters.
Re:OO in Python is mostly pointless by tored on Thursday January 28, 2021 @07:30AM (#25941010)
Honest question, what do you expect OO to solve for you?

Things like

  - Maintainability
  - Extendibility
  - Testability
  - Reusability
etc

One problem with OO is that you can organize your code in many different OO styles and somewhat depending what you try to achieve you should pick a style matching that.

Personally I think your example is not separated enough,

  - Client configuration
  - Url construction
  - Reading data from API
  - Saving data
In the first example everything is mixed up in one class, it is like having a huge main function. I would probably have three different classes to solve that.

There are no comments on this comment yet.