Dependencies Make Reuse Difficult

28 April 2022 by Phillip Johnston • Last updated 20 October 2022Dependencies make reusing code difficult. In order to use the code in a new context, all dependencies must be satisfied. This can be difficult to accomplish, because often those dependencies will have dependencies of their own. What appeared to be the case of “simple reuse” suddenly requires porting a large number of modules to a new system. You can reduce this problem by decoupling a module from its dependencies, such as through the use of an abstract interface or other indirection mechanism. Another problem related to this one is …

To access this content, you must purchase a Membership - check out the different options here. If you're a member, log in.