The Dependency Rule: Clean vs Onion Architecture

One arrow, two schools — and a one-command test that exposes the fakes.

One arrow, two schools

The real differences (subtler than the picture)

Clean
  • 4 rings
  • Entities may be anemic
  • Logic lives in Use Cases
Onion
  • 3 layers, domain centered
  • Domain = data + behavior
  • Domain services in-domain

Falsify it — the one-command test

What the picture hides

The takeaway: the dependency arrow is the actual content. The circle count is branding.
Image-backend outage note (2026-10-11): the primary image model (qwen/qwen-image-3, funded, no 402) garbled core teaching terms on both rolls — including the title word and both column headings — so no PNG was shipped per the quality gate. This is a text-only card carrying the full lesson; a PNG will be back when the backend renders clean again.