# Стиль коду

Згода щодо оформлення програмного коду всередині команди. Зазвичай перевірки на відповідність кода обговореному стилю віддають спеціальним інструментам Лінтерам (див ESLint), налаштовуючи в них правила яким повинен відповідати код перед заливкою в репозиторій.

Окрім стилю коду існують ще й філософії програмування конкретною мовою, про які необхідно знати і використовувати їх. Неправильно переносити концепції однієї мови в іншу.\
Наприклад, у Rails:\
\- Товсті моделі, тонкі контролери (Fat model, thin controller)\
\- Постфіксні умови: name = user.name if user.exists\
\- Перенесення логіки з View


---

# 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://interlink.gitbook.io/process/dev/development/engineering-practice/code-style.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.
