Skip to main content
PreparationZone Logo
PrepZone

Clean Architecture Layers

Domain at the centre; frameworks at the edge.

Pass checkpoint below

Why this matters

  • Layers — detailed pointwise breakdown in the section below.
  • Dependency rule — detailed pointwise breakdown in the section below.
  • Use cases — detailed pointwise breakdown in the section below.
  • CampusOS module — detailed pointwise breakdown in the section below.
  • Games and architecture patterns signal staff+ depth.
Inward dependencies
Frameworks & driversDB, web, UI
Interface adapterscontrollers, gateways
Applicationuse cases
Domainentities, value objects
Source code dependencies only point inward.

Overview

Domain at the centre; frameworks at the edge. Study each section below in order — every list is interview-ready reference material.

Layers

Points to cover

  • Definition — what Layers means in one clear sentence
  • When to use — the force or smell that triggers this concept
  • CampusOS example — where this appears in parking, booking, or library modules
  • How to explain — pointwise bullets you can say aloud in an interview
  • Common mistake — what weak candidates do instead
  • Refactor move — one concrete change that improves the design

The rest of this guide is part of Pro

Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.

Still to come · 3 sections

  • Dependency rule
  • Use cases
  • CampusOS module

Test yourself

Answer these before moving on — recall is what makes it stick.