L
L
Limbo2015-01-11 02:17:24
JavaScript
Limbo, 2015-01-11 02:17:24

MVC vs MVVM what is the future for?

In your opinion, what are the most popular MVC and MVVM design patterns at the moment, and what is the future for?
What examples can you give on MVVM? I only know Silverlight

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-01-11
Protko @Fesor

The future belongs to those who can at least read Wikipedia.
For the record, neither MVVM nor MVC are design patterns. This is a scheme for using multiple design patterns. The main idea of ​​these is the division of logic into layers. MVC declares the division into presentation logic, business logic and controllers that connect it all. In MVVM, the main idea is to more conveniently manage the view of the model. Especially in the case when the model can change from the presentation layer (from UI tobish, databindings and all that).
ps In addition to MVC and MVVM, there are many other similar schemes, such as MVP, HMVC, PAC ...

X
xmoonlight, 2015-01-11
@xmoonlight

MVC vs MVVM
and what is the future?
so I say: Why?!))
You need to do it not according to PR-"technologies", but according to the structural connections of objects during their interaction in one case or another. And they are different.

V
vasIvas, 2015-01-11
@vasIvas

Before you get an answer, you need to understand
that all people have different mvc, or rather, different implementation.
I will take for example the logic of 90% , including Sergey Protko .
Next we go to Model-View-Controller and read -
Here, in clear language, it is said that the model sends events, and the view catches them and changes. One would assume that the controller is an "observer", but no. The controller is a separate data structure, which
in most cases contains some kind of control logic, which
kills the idea of ​​​​the "observer" controller, since one object cannot do more than one duty.
Of course, you can stretch these words to any implementation, but in order to fully understand, you need to open the GoF book in which it is written -
You can interpret this in different ways, but then there is a picture and a cast-iron-concrete point -
Well, as well as a picture from the wiki -
I will once again listen to other views, but only with references to authoritative sources, and not articles of mortals, and even more so incorrect implementations of framworks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question