クリーンアーキテクチャ、こうしたら現実的かも

Takashi Iwamoto
Sep 3, 2018 · 3 min read

クリーンアーキテクチャ、現実のWebアプリにそのまま適用するのは無理じゃないですか? コントローラの扱いが微妙で、クラスが多すぎな気がします。

現実的な解をぼくなりに考えたところ、上図の構成になりました。原典との違いは3点です。

  • コントローラをいちばん外に移動した
  • インタラクタの入力/出力ポートをなくした
  • プレゼンタもなくした

これが正しいというつもりはなく、疑問点などフィードバックをいただけたらありがたいです。

以下、原典との違いとその意図です。

コントローラをいちばん外に移動した

Keep the story going. Sign up for an extra free read.

Already have an account? Sign in

Takashi Iwamoto

Written by

An web developer at VELTRA corporation, a member of JAPAN MENSA

VELTRA Engineering

Posts from the VELTRA Engineering team. www.veltra.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade