MVC (Model-View-Controller) हे एक आर्किटेक्चरल पॅटर्न आहे जे अॅप्लिकेशनला तीन भागांमध्ये विभाजित करते — Model (डेटा/लॉजिक), View (UI/प्रेजेंटेशन), आणि Controller (इनपुट हँडल करते, समन्वय करते) — जे चिंतेचे पृथक्करण प्रोत्साहित करते. हे मूलभूत आहे, ज्यात अनेक प्रकार आहेत (MVP, MVVM).
तीन घटक
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)
