Answer the question
In order to leave comments, you need to log in
Materials on MVC and MVVM?
Hey!
And I have a rough idea about MVC and MVVM, but I want to read something so detailed and detailed, with examples, such a good introduction to these patterns. Any advice?
PS: I searched for Habr, but I did not find the relevant topics, although I thought that they would be. Or did I search badly?
Answer the question
In order to leave comments, you need to log in
en.wikipedia.org/wiki/Model-View-Controller#.D0.A1.D1.81.D1.8B.D0.BB.D0.BA.D0.B8
en.wikipedia.org/wiki/MVVM#.D0 .A1.D1.81.D1.8B.D0.BB.D0.BA.D0.B8
In general, these are very simple patterns, but they have one drawback - popularity. It is because of him that there are a lot of implementations of these patterns, and everyone speaks and tells in his own way, so you can get confused, especially at the beginning.
Firstly, you are unlikely to understand what MVC is without writing something using it, or at least digging into the code written by someone.
Secondly, with MVC as with OOP - the benefits of using this pattern can only be seen on a medium or large project. That is, if you, for example, are writing a blog web application or a desktop application with a single form with 3 buttons, and try to use MVC and OOP (and you are a beginner developer), you will have questions, why is this even necessary? Can't it be done in a simpler way?
But if you are involved in the development of a large project that the development team is doing, new requirements are constantly appearing, then without a strict and logical architecture, the project quickly turns into noodles, in which any change causes the appearance of several new bugs.
Then it becomes clear why (were) needed namespaces, encapsulation, separation of control / data storage / data processing / data display logic, why Javascript should be in separate files, why they came up with DI / MVC / ORM / DSL / Object factory /Observer pattern and other popular abbreviations.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question