Learn how the Model View Controller (MVC) design pattern works using C++ and namespaces

preview_player
Показать описание
Model–view–controller is a software design pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements.

Here's a simple example and explanation of MVC using C++ and namespaces.

// Consider supporting this channel in multiple ways:
Super Thanks
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Dogecoin: DRK2HDp3ZkkbFpvGZnVgMVosnBhPv8r3uP
Рекомендации по теме
Комментарии
Автор

Thank you. You made it very easy to understand. MVC questions are common in job interviews

IleanaMarco
Автор

Thanks Prof. Hank, I found this very helpful. Hope you'll expand on MVC further in another video (if you ever get the time! 🙂) - Thanks again for helping us.

SpudgunMeUp
Автор

Thank you! You explained the MVC implementation in C++ and even the MVC model makes so much more sense now.

Maybe you could add a repo so it would help to have this great MVC example code.

richardkroesen
Автор

Massive thanks for the tutorial ! I am an undergrad student, and we are implementing MVC in a c++ project, your video explained it very well, now i will make everything with qt and also work with mqtt for server implementation. Stay safe.

ouardito
Автор

For me, the model IS the app - data storage is just one layer of the model. Therefore, my views listen to events from the model and do rendering stuff. The controllers have a reference to the model and allow the user to control it. I believe this is how the original implementation of MVC (in SmallTalk) did it. I could be wrong there, but I've been using this pattern for years and I find it so easy to maintain and extend.

whoshotdk
Автор

Very good video! I am working on a full stack project at my internship where they have the MVC architecture as structure for both the JavaScript and PHP code. I had no clue why this architecture was used before I watched this video. Thanks!

eliassoprani
Автор

Gracias por explicar profesor. Excelente tutorial.

elaracuan
Автор

Thank you. Preparing for the final exam. Need to know what is mvc.

bama
Автор

I just saw a different video saying that the user asks the "CONTROLLER" first (not the view).
And that the logic is contained in the "model" block.
Now you're saying the user aks the view, and the logic is stored in the controller.
I'm confused.
18:39 Ah, so it does indeed begin with the "Controller" then!

zdspider
Автор

How does the Controller respond to events from the View? Does the Controller have to pass the View a strategy object for every single event that could possibly happen?

yoavmor
visit shbcf.ru