Interface Segregation Principle - Multiple Client Apps

17 Views Asked by At

I’m developing a shared library and using Interface Segregation.

There will be multiple client apps using this library and I was wondering about how to name each interface.

Some apps will share interfaces and some will use their own. If App 1 uses Interface1, we could call Interface1 “IApp1” but if App2 also uses Interface1, it could become confusing.

If we then created a separate interface for App2, it would be descriptive, but then we’re duplicating code.

Then we will have App3 which uses a different set of methods, would we create “IApp3”? Are there any best practices for this?

Thanks

I have named them with temporary names for testing

0

There are 0 best solutions below