|
|
|
|
|
by mbrock
3775 days ago
|
|
There's an important kind of compromise that isn't discussed as often: using an external library but behind an interface of your own design, an "anti corruption layer". If the external dependency is limited to one small bridge in your application, then it's so much easier to see what parts of the dependency you actually depend on, to upgrade the dependency when its API inevitably changes, to replace it entirely if it becomes a burden. |
|
https://en.wikipedia.org/wiki/Facade_pattern