Well said. Mixins are a sort of design pattern, and as with other design patterns should be used where the problem is a great fit. The logging example is potentially a poor use case in the real world, but we have at least one use case like the network protected view that is still serving us well. If, down the line, the requirements of that use case change we might notice some pains too. It's an evolving judgment call!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Well said. Mixins are a sort of design pattern, and as with other design patterns should be used where the problem is a great fit. The logging example is potentially a poor use case in the real world, but we have at least one use case like the network protected view that is still serving us well. If, down the line, the requirements of that use case change we might notice some pains too. It's an evolving judgment call!