Розділ 39. Visitor: Подвійна диспетчеризація та операції над закритими класами

https://leanpub.com/architecture-foundation

Проблема: Коли вісь змін проходить не там

https://leanpub.com/architecture-foundation

Рішення: Вивертаємо вовка навиворіт

https://leanpub.com/architecture-foundation

Технічний глухий кут: Чому наївний підхід не працює

https://leanpub.com/architecture-foundation

Подвійна диспетчеризація (Double Dispatch)

https://leanpub.com/architecture-foundation

Visitor у Python, PHP, JavaScript/TypeScript та Kotlin

https://leanpub.com/architecture-foundation

Python: Duck Typing (качина типізація) та варіанти реалізації

https://leanpub.com/architecture-foundation

PHP: ручна диспетчеризація та match

https://leanpub.com/architecture-foundation

JavaScript та TypeScript: Об’єкти-мапи та Union Types

https://leanpub.com/architecture-foundation

Kotlin: sealed-класи та exhaustive when

https://leanpub.com/architecture-foundation

Тонкощі та Trade-offs: Чому я кажу «уникайте»

https://leanpub.com/architecture-foundation

1. Грубе порушення принципів ООП та Information Expert

https://leanpub.com/architecture-foundation

2. Помилка прогнозування осі змін — «шлях у пекло»

https://leanpub.com/architecture-foundation

3. Нечитабельність та «поріг входження»

https://leanpub.com/architecture-foundation

Альтернативи — завжди розглядайте їх першими

https://leanpub.com/architecture-foundation

Місток у майбутнє: Фінал марафону патернів

https://leanpub.com/architecture-foundation

🔑 Висновки розділу

https://leanpub.com/architecture-foundation