Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Clean Architecture Outline

Clean Architecture Outline

USAMI Kosuke

August 29, 2017
Tweet

More Decks by USAMI Kosuke

Other Decks in Programming

Transcript

  1. Clean Architecture • ݩهࣄ : The Clean Architecture | 8th

    Light • ΞϓϦέʔγϣϯͷઃܭύλʔϯͷͻͱͭ • ϞόΠϧΞϓϦ։ൃք۾Ͱ࠷ۙԿ౓͔࿩͕ڍ͕ͬͨ
  2. ൺ΂ͨ݁Ռ • MV◦ ύλʔϯͰ͸ Model ૚͸ਂ۷Γ͞Ε͍ͯͳ͔ͬͨ • View ͱ Model

    ͱͷ෼཭ʹॏ఺͕͋ͬͨ • M ͱ V ͷͭͳ͗ํʹ஫໨͍ͯͨ͠ʢMVC / MVP / MVVMʣ • Model ૚ͷதͰ΋ɺಉ༷ͷ෼཭͕Ͱ͖Δ • ϏδωεϩδοΫͱ DB ͱͷ෼཭
  3. Clean Architecture ࠾༻࣌ͷཹҙࣄ߲ • Business Rules ૚ʹϩδοΫΛूத͢Δ • Controllers /

    Presenters / Gateways ͸ബ͘͢Δ • UI / DB / ... ͸ݸʑͷ໾ׂʹಛԽ͢Δ
  4. ิ଍ : Controllers / Presenters • Clean Architecture ͷ࿩ͱҰॹʹޠΒΕΔ͜ͱ͕ଟ͍ •

    ͔͠͠ɺΞʔΩςΫνϟઃܭͷ࿩ͱ͸෼͚ͯཧղͨ͠ํ͕ྑ͍ • ΋ͪΖΜɺ༗ӹͳઃܭύλʔϯͰ͸͋Δ • MVC / MVP / MVVM ͷΑ͏ʹ M ͱ V ΛͲ͏ͭͳ͙͔ͷ࿩