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)
