Re:Inheritance Often Doesn't Make Sense
by mncharity on Sunday March 18, 2018 @01:05AM
(#16610523)
> but as models get more complex, it becomes harder to make them compatible
One thing that helps, is locally-scoped facades, like ruby's refinements.[1] You don't need complete model substitutability, only locally-sufficient substitutability.
One thing that helps, is locally-scoped facades, like ruby's refinements.[1] You don't need complete model substitutability, only locally-sufficient substitutability.
[1] https://ruby-doc.org/core-2.5.0/doc/syntax/refinements_rdoc....