by Sharlin · 8y ago · 0 comments
Only if your language doesn't support adding methods to types after the fact, like C# extension methods, Rust traits, or Scala implicits.
And now that I typed it out, I see how it also doesn't really help. I see your point. I'm not sure what's worse, one giant class, or the handful of interfaces and abstractions just to make it work in multiple classes.