generated at
2/18/2025, 12:52:12 PM
The Clean Architecture
書籍
『Clean Architecture』
22章の中で例示される
Layered Architecture
『Clean Architecture』
の中で解説されるエッセンスを詰め込んだArchitectureといえる
やたら独り歩きしているアーキテクチャの図
この通りに実装するのが正解だと思われすぎている
The Clean Architectureの誤解
に注意
Layers
Enterprise Business Rules
Application Business Rules
Interface Adapters
Frameworks & Drivers
参考
『Clean Architecture』
23章
クリーンアーキテクチャ(The Clean Architecture翻訳) | blog.tai2.net
クリーンアーキテクチャ完全に理解した
>
#WIP
frameworkに依存しない
テストしやすい
ビジネスルールは、UIやDBなどの外部の要素なしにテストできる
UIは独立している
UIの変更は、ビジネスルールに影響しない
DBは独立している
入れ替えられる
外部機能は独立している
ビジネスルールは外側のことを知らない
VIPER
CAをiOSに適用したアーキテクチャ?
https://speakerdeck.com/hirothings/viper-architecture
inversify/InversifyJS: A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
DI
する
ヘキサゴナルアーキテクチャ
の
外側の具体的な実装がCA
内側の具体的な実装が
オニオンアーキテクチャ
https://gist.github.com/mpppk/609d592f25cab9312654b39f1b357c60