Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
maxkrivachev-web authored Mar 6, 2026
commit f393fbd63ff021687b0ed3a74292b34a7e613689
55 changes: 2 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# README.md — вставки с диаграммами Mermaid
# python-patterns

> Ниже показаны **три блока**, которые нужно вставить в `README.md` перед таблицей каждого раздела.
> Каждый блок отделён от окружающего текста пустой строкой (требование GitHub Markdown renderer).
A collection of design patterns and idioms in Python.

---

## 🔵 Вставка 1 — перед таблицей **Creational Patterns**

Место: сразу после строки `## Creational Patterns` и перед строкой `| Pattern | Description |`

```markdown
## Creational Patterns

> Patterns that deal with **object creation** — abstracting and controlling how instances are made.
Expand All @@ -25,23 +17,6 @@ graph LR

FactoryMethod -->|subclass decides| ConcreteProduct
Pool -->|reuses| PooledInstance
```

| Pattern | Description |
```

---

## 🟢 Вставка 2 — перед таблицей **Structural Patterns**

Место: сразу после строки `## Structural Patterns` и перед строкой `| Pattern | Description |`

```markdown
## Structural Patterns

> Patterns that define **how classes and objects are composed** to form larger, flexible structures.

```mermaid
graph TD
Client --> Facade
Facade --> SubsystemA
Expand All @@ -57,23 +32,6 @@ graph TD
Component --> Composite
Composite --> Leaf1
Composite --> Leaf2
```

| Pattern | Description |
```

---

## 🟠 Вставка 3 — перед таблицей **Behavioral Patterns**

Место: сразу после строки `## Behavioral Patterns` и перед строкой `| Pattern | Description |`

```markdown
## Behavioral Patterns

> Patterns concerned with **communication and responsibility** between objects.

```mermaid
graph LR
Sender -->|sends event| Observer1
Sender -->|sends event| Observer2
Expand All @@ -87,12 +45,3 @@ graph LR

Originator -->|saves state to| Memento
Caretaker -->|holds| Memento
```

| Pattern | Description |
```

---

> **Примечание для ревьюеров:** диаграммы намеренно упрощены — цель показать *ключевое взаимодействие* каждой группы, а не полную UML-схему каждого паттерна. Детали реализации — в `.py`-файлах.

Loading