MVC and Client-Server Details
dev.to·13w·
Discuss: DEV

MVC (Model–View–Controller) — detailed, plain English

What it is: MVC is a software design pattern that splits an application into three responsibilities to make code easier to understand, test, and maintain.

Parts & role

Model — holds the data and the business rules. Think: database records, validation logic, and how data is transformed. It’s the source of truth.

View — the user-facing presentation layer. HTML, mobile screens, or UI components that display Model data.

Controller — the mediator that receives user input (clicks, form submits), talks to the Model to read/update data, and picks which View to render.

Typical request flow (web example):

  1. User clicks a button in the View.
  2. Controller receives the request/route and validates in…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help