Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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....



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: