2 ms·
> 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 d
by mncharity 9y ago
> 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.
[1] https://ruby-doc.org/core-2.5.0/doc/syntax/refinements_rdoc.html https://ruby-doc.org/core-2.5.0/doc/syntax/refinements_rdoc....