Strategy for reducing library dependencies
GrahamL last edited by
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 possible
Thanks for your time
How are these relationships becoming complex ?
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).