# ISP

&#x20;Много интерфейсов, специально предназначенных для клиентов, лучше, чем один интерфейс общего назначения.

Если в нашем классе C имеется зависимость от какой-то сущности *A*, часть функционала которой (*A\[unused]*) мы не используем, велика вероятность, что при изменениях в *A\[unused]*  придется внести изменения и в класс C, что нарушает ISP. Такое положение дел плохо тем, что накладывает дополнительные расходы на поддержку системы.

{% hint style="info" %}
Не создавайте зависимостей от того, что не используете.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://marchenko.gitbook.io/solid/isp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
