Strategy for reducing library dependencies
-
Hi
I am working on a project that consists of multiple libraries
The relationships between the libraries are becoming more and more complex and I am after some ideas and hints on how to reduce the dependencies between them.
We already implement the piml pattern where possibleThanks for your time
-
Hi,
How are these relationships becoming complex ?
-
Hi,
@GrahamL said:
I am after some ideas and hints on how to reduce the dependencies between them.
First, draw a class diagram to show the relationships between all your classes. Arrange your diagram so that the classes in the same library are all close together.
Then, look through your diagram to find relationships that should not exist. For example, try to eliminate all circular dependencies between libraries. (A circular dependency is where ClassA depends on ClassB, but ClassB also depends on ClassA).