Isn't MVC anti OOP?
Posted
by
m3th0dman
on Programmers
See other posts from Programmers
or by m3th0dman
Published on 2012-10-10T14:36:03Z
Indexed on
2012/10/10
15:54 UTC
Read the original article
Hit count: 308
The main idea behind OOP is to unify data and behavior in a single entity - the object. In procedural programming there is data and separately algorithms modifying the data.
In the Model-View-Controller pattern the data and the logic/algorithms are placed in distinct entities, the model and the controller respectively. In an equivalent OOP approach shouldn't the model and the controller be placed in the same logical entity?
© Programmers or respective owner