The question is primarily to those who have already participated in large projects. We often hear that unnecessary dependencies are bad. I would like to understand what hinders the extra dependencies in the project. I came up with only two reasons:
- Search for errors. When looking for a mistake, there is a certain number of options for the cause of its occurrence. Theoretically, with extra dependencies, this number increases.
- Testing. With unnecessary dependencies, it is sometimes impossible to apply modular mock testing. Although this is not always the case, but only in extreme cases, when, for example, the model depends on the UI.
What other reasons exist that I have not yet encountered? I would like exactly the reasons, but not “well, this is not a very good style,” etc.