From the course: Software Architecture: Patterns for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Differences between MVC, MVP, and MVVM
From the course: Software Architecture: Patterns for Developers
Differences between MVC, MVP, and MVVM
- [Instructor] After having learnt about MVC, MVP and MVVM, it can quickly become difficult to distinguish between them, even more so, because MVP has two flavors and because patterns in software architecture always leave room for nuance, interpretation, and style differences. So this is definitely only my take on it and others may have different opinions. We can distill some differences, not so because we can be purest and to tell others what the real pattern should look like, but so we can know what the intention and end goal is when we choose a pattern. A first difference is how the user interacts with the application. Are the users commands called by the view like in MVP and MVVM or by a controller like with MVC? Another point where these patterns differ is whether or not there is code in the UI, often in a code behind file. In MVP, the view needs to be aware of the presenter so that it can pass on commands and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.