たれぱんのびぼーろく

わたしの備忘録、生物学とプログラミングが多いかも

Dual-Interface & Adapter (Dual-IA)

Dual-Interface & Adapter

良い分離面設計をするために、各coreがownershipもってinterfaceを定義する. interface間をadapterでつなぐ.

どう分割面を設計するか、の指針 (何に基づいて分割するか、は扱わない.)
domain - interface <= adapter => 外部API
と同じ感じで、coreを自分で定義したのちに必要なinterfaceを自分で定義.