# Integration Operation Segregation Principle

* Functions shall either only contain logic or they shall only call other functions.
  * "Logic" is the part of code which creates the actual software behavior. It's the transformations, control structures, and I/O- or API-calls provided by third parties.
  * "other functions" are functions of the same codebase which are under your control and not deemed to be internal frameworks (which would move them into the realm of logic).

<https://ralfwestphal.substack.com/p/integration-operation-segregation>


---

# 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://hanfak.gitbook.io/workspace/general-paradigms/architecture/integration-operation-segregation-principle.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.
