79347108

Date: 2025-01-10 21:51:32
Score: 1
Natty:
Report link

There’s nothing wrong to use mixins instead of decorators. Active Decorator does the same. But I’d not consider it a decorator pattern.

I don't need to work with decorated inherited class of model. I just provide decorator methods for the existing model class.

You just replace a class with a module, thus losing a possibility to inherit it (in a clear way at least).

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alexander Senko