Clean Architecture: Why Is It Popular?

Jul 4, 2024

Clean Architecture: Why Is It Popular?

Introduction

  • Presenter: Derek Martin from codepinion.com
  • Discussion on why Clean Architecture is popular.
  • Addressing the problems Clean Architecture solves and some overlooked aspects.

What is Clean Architecture?

  • Main Idea: Dependencies point inward.
  • **Layers Description: **
    • Outer Layer: UI, Database, External Interfaces, Web
    • Inner Ring: Controllers, Use Cases
    • Core: Entities
  • **Example: Web Application: **
    • Top-level: Web Framework or HTTP API -> depends on Infrastructure
    • Infrastructure: Data access, External APIs -> depends on Application
    • Application: Invokes code, leverages Infrastructure -> depends on Domain
  • Key Point: Direction of dependencies moves inward and never outward.

Why is Clean Architecture Popular?

  • People are tired of