๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is MVC (Model-View-Controller)?

An architectural pattern that separates an application into three components: data (Model), interface (View), and logic (Controller).

MVC promotes separation of concerns. The Model manages data and business logic. The View presents data to users. The Controller handles user input, updates the Model, and selects Views. This separation makes code more organized and testable.

MVC is used in many web frameworks: Laravel (PHP), Django (Python, uses MTV variant), Ruby on Rails, Spring MVC (Java), and ASP.NET MVC. Related patterns include MVVM and MVP.

Related Terms

Webhook
A mechanism where a server sends real-time HTTP POST notifications to a specified URL when specific events occur.
Idempotency
A property where performing an operation multiple times produces the same result as performing it once.
Cookie
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
WebAssembly (Wasm)
A binary instruction format that enables near-native performance execution of code in web browsers alongside JavaScript.
PHP
A widely-used server-side scripting language designed for web development that powers over 75% of websites including WordPress.
REST (Representational State Transfer)
An architectural style for designing networked applications using standard HTTP methods and stateless communication.
View All Web Development Terms โ†’