MVC (Model-View-Controller) ist ein Architekturmuster, das eine Anwendung in drei Teile unterteilt — Model (Daten/Logik), View (UI/Präsentation) und Controller (verarbeitet Eingaben, koordiniert) — und fördert die Separation of Concerns. Es ist grundlegend, mit vielen Varianten (MVP, MVVM).
Die drei Komponenten
MODEL → data and business LOGIC (the core: data, rules, state) — independent of the UI
VIEW → the UI/PRESENTATION (displays data to the user) — what the user sees
CONTROLLER → handles user INPUT, coordinates between Model and View (processes requests,
updates the model, selects the view)
→ SEPARATION: data/logic (Model) ≠ presentation (View) ≠ input handling (Controller)
