Тёмный

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

Professor Hank Stalica
Подписаться 17 тыс.
Просмотров 7 тыс.
50% 1

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
paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Dogecoin: DRK2HDp3ZkkbFpvGZnVgMVosnBhPv8r3uP

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@IleanaMarco
@IleanaMarco 2 месяца назад
Thank you. You made it very easy to understand. MVC questions are common in job interviews
@SpudgunMeUp
@SpudgunMeUp 2 года назад
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.
@ProfessorHankStalica
@ProfessorHankStalica 2 года назад
That's actually a great idea. I was thinking about doing a Python video on GUI stuff and that would be a great opportunity to give an improved example of MVC.
@eliassoprani3737
@eliassoprani3737 Год назад
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!
@ShivarajappaP-o2g
@ShivarajappaP-o2g Месяц назад
Thank you so much
@richardkroesen
@richardkroesen Год назад
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.
@ProfessorHankStalica
@ProfessorHankStalica Год назад
Glad it helped! And (shameless plug) all the code and slides I have are available to members and super thankers by request. (hey, I have to make beer money somehow)
@richardkroesen
@richardkroesen Год назад
@@ProfessorHankStalica Aha, no problem get it. If I wasn't a student I would probably support you XD. Good luck, keep up the great teaching! Sometimes these videos are more helpful than college classes haha
@whoshotdk
@whoshotdk Год назад
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.
@ouardito
@ouardito Год назад
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.
@ProfessorHankStalica
@ProfessorHankStalica Год назад
Fantastic! Glad that it was helpful to you in getting a better grasp of the basics. Speaking of QT, I never learned it! Methinks it's time for me to do some tutorials on it. Add that to the pile...
@ouardito
@ouardito Год назад
Great ! I will be waiting for this, however i don't see any yt channel that makes a full program using c++ and oop concepts and memory managemnet to make a gui based application and using mvc. I know c++ is not the best for gui, but at least it will get more attention as that what is taught in universities and given for courseworks. It can also provide more easy/friendly approach to c++ and understand most of its implementation and concepts for new c++ devs. Thanks again Prof !
@elaracuan
@elaracuan Год назад
Gracias por explicar profesor. Excelente tutorial.
@ProfessorHankStalica
@ProfessorHankStalica Год назад
De nada! Yo feliz tu gusta el video!
@bama2619
@bama2619 Год назад
Thank you. Preparing for the final exam. Need to know what is mvc.
@zdspider6778
@zdspider6778 4 месяца назад
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!
@yoavmor9002
@yoavmor9002 10 месяцев назад
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?
@ProfessorHankStalica
@ProfessorHankStalica 10 месяцев назад
Depends on how you want to do it. It could be as simple as giving the View a pointer to a Controller object or set up event listeners and use event objects like Java does, for instance.
Далее
C++ Tutorial: the factory design pattern
14:21
Просмотров 9 тыс.
ELA NÃO ESPERAVA POR ISSO 🥶 ATTITUDE #shorts
00:20
Premature Optimization
12:39
Просмотров 779 тыс.
What Is MVC? Simple Explanation
10:40
Просмотров 512 тыс.