|
|
|
|
|
by deterministic
1255 days ago
|
|
Yet another good example of why you should minimise 3rd party dependencies as much as possible if you want to minimise long term maintenance costs. If you can’t avoid some dependencies then put a firewall between your code and those dependencies. The firewall shields your code from changes to the dependencies. Basically: Your code -> Interface -> Adapter -> 3rd party dependency. So your code depends on the interface not the 3rd party code. And the adapter implements your interface by mapping it to the 3rd party dependency. |
|