No video

What is programming MVC? [Detailed Explanation]

  Рет қаралды 415,186

DevMarketer

DevMarketer

Күн бұрын

Have you ever wondered what MVC means in programming or how it really works? MVC stands for Model, View, Controller, and it is an architectural paradigm used by many web frameworks such as Ruby on Rails, Laravel, CakePHP, Django and more. It is a way of thinking organizationally when coding.
In MVC everything has its own place so you can catch up on projects easier and find snippets of code when debugging or emproving a page. It also makes the application efficient and secure since only certain elements can do certain things. For example, only Models talk to the database, and only Views contain HTML markup and so forth.
This tutorial will finally make it all make sense. I explain it slowly and methodically so you can finally understand it. When you are done, be sure to subscribe for more amazing videos related to programming and also marketing your programming creations once they are complete!
Check out my website with even more detailed tutorials: jacurtis.com
Follow me on Twitter: / _jacurtis
If you found this video helpful and it finally made sense of MVC for you, then please leave a like on the video so that it can show up for more people that are looking for the same thing.
-------
MVC Tutorial Ruby Python and Django. Works with Ruby on Rails or Laravel and other frameworks. This is an awesome tut or tutorial for anyone learning to programming or write code

Пікірлер: 581
@Pendragon2879
@Pendragon2879 2 жыл бұрын
Came here for 100Devs and this is a solid explanation! Thank you for this!
@NathanBudd
@NathanBudd 6 жыл бұрын
I've watched a lot of videos and tutorials, and read a lot of resources online. This is the best explanation of MVC that I've come across. *subscribed*
@rickyanthony3900
@rickyanthony3900 3 жыл бұрын
I guess Im randomly asking but does someone know of a tool to get back into an Instagram account..? I was dumb forgot my login password. I would love any assistance you can offer me
@helloimsick5587
@helloimsick5587 6 жыл бұрын
5:00 starts explaining web (recommended for beginners) 15:50 starts explaing mvc (here it begin) 19:00 quick recap i would still recommend beginning at 0:00 for the sake of great effort what is here made . Thanks you very much for the explaination devMarketer!
@CodeguruX
@CodeguruX 2 жыл бұрын
Yeah, it's a bit confusing when the recap adds route processing and has the view interacting with the user before the controller actually receives the dynamically processed view response. Kinda like saying it goes to all the trouble of finding the correct controller to just toss it out of the equation after the view is hit with a request. It's a stupidly simple concept though, so it doesn't really matter. The only thing to remember seems to be User->Controller->Model->Controller->View->Controller->User. Basic "pipeline" or "black box" architecture that allows things to interact in a way that gives you less and less job security the better it's implemented. But luckily you're always working to impress the next guy that pays you more money to do a thing and gaining practical knowledge along the way to make sure there's an ample supply of those.
@tauqeer1036
@tauqeer1036 2 жыл бұрын
Coming from #100Devs. This was a fab intro for someone who just heard of MVC.
@JD-hq1kn
@JD-hq1kn Жыл бұрын
I'm sure you're building awesome apps by now. I'm currently on the MVC class.
@ralphalmonte7042
@ralphalmonte7042 3 ай бұрын
niceeeeee
@guilhermelaviola8079
@guilhermelaviola8079 4 жыл бұрын
That's one of the best Web Development classes I ever watched! It made me understand how MVC works in less than 20 minutes! Awesome! Thank you @jacurtis !
@arechigaartstudio
@arechigaartstudio 3 ай бұрын
Your teaching really helped me understand quickly what MVC means in programming. Thank you for sharing your knowledge with all of us!
@ajassharafudeen
@ajassharafudeen Ай бұрын
This video is part of 100devs course and I understood every bit of information explained in this video. Thank you very much.
@mostafaomar5441
@mostafaomar5441 4 жыл бұрын
Note for others on what he said at 16:30. I was really confused by this as I found in some other explanations that the model can communicate with the view directly. MVC can be implemented in many ways. One of them is where the model communicates with the view directly. Is it the neatest way? I don't know. So, don't get confused when you find different explanations for the MVC. For example, some will call it a design pattern, others will call it an architectural style. It all depends on the context you're using it.
@theHelenZhang
@theHelenZhang Жыл бұрын
This was so helpful! When I say I am new to client-server and MVC architecture, I mean it. This video broadly touches on how the model, controller, and view work with each other. It doesn't go too indepth with the specific programming and details of them, which makes this concept easier to understand. This video for sure helped me understand how MVC architecture works with the client-server-database flow. You explained easily, and I had no trouble understanding it. Thank you!!
@Grenbestyie
@Grenbestyie 5 жыл бұрын
Your video said the model never talks to the view and the view never talks to the model. That does not fit the standard MVC UML diagram logic. It is more akin to the 3-tier architecture. I think the view does talk to the model when instructed to do so by the controller. [Happy to be corrected in my thought, as I am still learning]
@zhrxxo6610
@zhrxxo6610 4 жыл бұрын
genuine question tho, why would the view talk to the model directly, if anything it needs to go thru the controller in terms of networking isnt it - ?
@chintanraval2928
@chintanraval2928 7 жыл бұрын
Jacurtis(C) you are the controller who have all variables to explain and enhancing the viewer(V) with best data information (M). Thanks alot for the tutorial.
@ayoubakennaf6388
@ayoubakennaf6388 5 жыл бұрын
This is awesome , I'm a data scientist engineering student and i'm developing a web application and this video helped me , I now have an idea about the MVC and i'm willing to go deep , anyway i would love to thank you for your efforts, you're doing a great job , keep up.
@gregb2225
@gregb2225 7 жыл бұрын
By far the best MVC tutorial I've ever seen. No longer confused!
@thadeuszl5518
@thadeuszl5518 7 жыл бұрын
Is it possible that you described a MVP? What would you say is the difference between MVC or MVP?
@jorgeherrera1074
@jorgeherrera1074 7 жыл бұрын
I think so, right? Not sure this is a MVC... wouldn't a view AND the controller talk with the Model?
@OctaBech
@OctaBech 7 жыл бұрын
Yes it's definitely not the MVC pattern described in my uni text books. The Controller isn't supposed to be an Adapter for communication from Model to View, but only (for user input) from View to Model. Oh well, as long as one uses the pattern to solve a problem and not just to use a pattern for the sake of using patterns, it should be fine.
@richmetellus5585
@richmetellus5585 6 жыл бұрын
Yes he is explaining the MVP pattern design. This stack overflow link explain the difference stackoverflow.com/questions/2056/what-are-mvp-and-mvc-and-what-is-the-difference
@calvin_1983
@calvin_1983 6 жыл бұрын
The MVP in 1992 was Michael Jordan.
@fakewalka
@fakewalka 6 жыл бұрын
hitman98761 you just made my day :D
@jays
@jays 7 ай бұрын
7 years later, still a great resource. Thank you!
@I_Am_McZee
@I_Am_McZee 4 ай бұрын
Very clear and very helpful. Very solid explanation!!!
@ignacio560
@ignacio560 5 жыл бұрын
Excellent video. I'm sorry for all the hateful comments, clearly people have misled expectations on educational content. This was awesome, very clear. Thanks
@mdneyamatullah8449
@mdneyamatullah8449 6 жыл бұрын
Best MVC tutorial I have ever seen before !!!! Thanks Jacurtis.
@shanemccurdy
@shanemccurdy 7 жыл бұрын
FINALLY! Someone walked us through MVC thoughtfully. This should be the first video that comes up when you search for MVC on KZfaq! It makes sense now, thank you!
@amarenigatu7464
@amarenigatu7464 7 жыл бұрын
Finally i got what the hell it is ...MVC!!! Really you make it easy and very clear. Thanks a lot!!! keep going
@57Sauce
@57Sauce 2 ай бұрын
Here from 100Devs. Great video, thank you!
@jacquelineyoung6908
@jacquelineyoung6908 7 жыл бұрын
This was an excellent way to explain the MVC structure.....I have more clarity....thanks
@blackmediapodcast
@blackmediapodcast 7 жыл бұрын
Very clear and concise. I love learning about the principal and/or concepts before focusing on the "how" - Great! explanation.
@muhammadk5935
@muhammadk5935 7 жыл бұрын
very useful, finally understand mvc. i read about it before and it was useless. very clear, descriptive easy to understand.
@sandeepvk
@sandeepvk 8 жыл бұрын
thanks Jacurtis, very well put together video. I now understand MVC now
@CourageousCreatives
@CourageousCreatives 3 жыл бұрын
Our Coding Bootcamp gave a link for this explanation of MVC before we have a unit on it. Great run-down!
@HEROHODA5000
@HEROHODA5000 7 жыл бұрын
This without a doubt The Best Explanation of MVC I've ever seen, Thanks very much.
@vidaltrejo5493
@vidaltrejo5493 2 жыл бұрын
Best explanation i found on youtube
@colonelvector
@colonelvector 6 жыл бұрын
Thank you for this, this is the only video I've seen which properly explains MVC
@aisdhgaoi3qea
@aisdhgaoi3qea 7 жыл бұрын
Thank you for explaining this so well mate. Just to clarify - you were saying "lolcats", right?
@majia
@majia 7 жыл бұрын
oh my gosh, i finally understand MVC @__@ thank you
@1rui18
@1rui18 7 жыл бұрын
tu tambem és.....
@carlareis9220
@carlareis9220 2 жыл бұрын
Awesome explanation! Thank you!!!
@GavinAyling
@GavinAyling 7 жыл бұрын
This video was recommended by my university lecturer! Good work DevMarketer.
@arpitagrawal8530
@arpitagrawal8530 Жыл бұрын
An example of genuine teaching
@krillenummer1
@krillenummer1 6 жыл бұрын
You are my savior! Great and clear information that gave me that ahaaa-experience that filled in all the missing gaps i had to understand MVC! Keep up the great work and will be watching your other videos as well!
@isaacopoku-asare5362
@isaacopoku-asare5362 7 жыл бұрын
Woooow. that was so simple. MVC seemed confusing until after your video. Thanks Jacurtis
@supersu6138
@supersu6138 4 жыл бұрын
The best explanation of mvc
@vendrim1962
@vendrim1962 4 жыл бұрын
This is great information. Seriously This will save you massive amounts of tutorial time.
@xeroks646
@xeroks646 6 жыл бұрын
I rarely like or comment on a youtube video but this video is an exception. I watched over more than tens of MVC videos and I never understand them but after I watched this I really understand WHAT THE HELL IS MVC lol. Really thanks man I appreciate your simple explanation. Now I can do my own framework in peace :)
@nazrul-geeti
@nazrul-geeti 6 жыл бұрын
Perhaps the best explanation of MVC with great examples which help visualize/understand/encourage to explore & learn!! Great voice too by the way!! Keep them coming!
@jenso413
@jenso413 2 жыл бұрын
I think it's great that you also explained how a website works, it's integral to understanding MVC!
@aiden7274
@aiden7274 7 жыл бұрын
Best explanation of the MVC structure, love the presentation!
@haroonirfan6783
@haroonirfan6783 8 жыл бұрын
Fantastic Information Guy.... Love it :)
@iamthe1234567890
@iamthe1234567890 6 жыл бұрын
thanks dude. this is much more helpful than stackoverflow answer.. will check out your laravel tutorials later as i want to learn it
@MarcMcRae
@MarcMcRae 4 жыл бұрын
IMHO the under-pinning (additional) info can't hurt to show architecture/components etc. Nice video!
@saptarshideysikder755
@saptarshideysikder755 7 жыл бұрын
Thanks for the video..Really understood the MVC. Was having difficulty understanding before watching the video.
@haalamn877
@haalamn877 2 жыл бұрын
Finally understood MVC, thanks dude a sub is what u deserve
@SfCfA2R4L0E0T
@SfCfA2R4L0E0T 7 жыл бұрын
This is not MVC. it's kind of close to MVP, but not completely. actually what you've described would negate the whole purpose of MVC, MVP, MVVM etc. What in the heart of any of those architecture is separating the Model from the View. the Model is a GIVEN(!) and so is the View, what separates them can be a Controller, a Presenter or just a ViewModel, but none of them know nothing about the View, or else our View will never be reusable because it still has a 1:1:1 relation with the Controller and the Model. With MVC the Controller just updates the Model with the user's request (i.e. the operation the user wish to do on the data, such as 'give me a list', 'save this item' etc.) and then leave it for a View to query the Model and be able present the same data in many different ways, regardless the controller that updated the model.
@erickmclark
@erickmclark 6 жыл бұрын
Wow!!! I thought I would never get this concept. Thank you a lot!! So easy to understand!
@toastedbagel2100
@toastedbagel2100 6 жыл бұрын
Thank you so much for these, I really enjoy your way of visually showing what's happening in your videos.
@yoerivanwassenhove673
@yoerivanwassenhove673 7 жыл бұрын
Thank you for your thorough explanation.
@mandy2533
@mandy2533 7 жыл бұрын
This should have been required to watch the first day of my internship :(
@zhrxxo6610
@zhrxxo6610 4 жыл бұрын
GOSH IK THIS WAS 3 YEARS AGO BUT IT WAS SO RELATABLE, dude just give us one vid which is not beginners friendly at all T.T
@fibo12358
@fibo12358 7 жыл бұрын
enough information, but done quickly. need to learn the mechanics of it now - i presume you have a vid for that? so yeah, great flow and explanations, thank you!
@hehythrjkljwqoi
@hehythrjkljwqoi 8 жыл бұрын
Amazing, now it makes sense, I will remember this thing throughout my life! Thank you.
@VijayKumar-ec2sj
@VijayKumar-ec2sj 5 жыл бұрын
This is more explanatory thanks!!!!
@canmetan670
@canmetan670 7 жыл бұрын
Skip to 5:30 for the tutorial........ yikes.
6 жыл бұрын
I'm 13 minutes in, and he still haven't really started yet... He's just talking about web servers and databases and programming languages. Nothing yet that helps me understand MVC at all.
@stermister123
@stermister123 6 жыл бұрын
pro tip: speed at x1.25 or x1.5
@desirocker9099
@desirocker9099 5 жыл бұрын
a saviour
@kurchak
@kurchak 5 жыл бұрын
Thank you! What a waste of fucking time.
@alx_z1
@alx_z1 5 жыл бұрын
true hero!
@atsamali6830
@atsamali6830 4 жыл бұрын
Outstanding Explanation Sir.
@NethiestChannel
@NethiestChannel 7 жыл бұрын
Technically, the view t alks to controller via interface. Directly or indirectly.
@Raptor-jv7fi
@Raptor-jv7fi 6 жыл бұрын
Hats off to you man! Finally I understand how mvc works...
@naveenbhandari6095
@naveenbhandari6095 7 жыл бұрын
Finally. Understood. Thanks man.!!
@chuksogor4267
@chuksogor4267 7 жыл бұрын
Thank you so much, finally understand MVC patterns
@BlakeEdwards333
@BlakeEdwards333 6 жыл бұрын
the flow was very helpful. Thanks!
@ramyar6785
@ramyar6785 6 жыл бұрын
one of the best best tutorial to learn MVC
@faithshiroo7264
@faithshiroo7264 7 жыл бұрын
i used to mix my codes for php,am happy to find out a way out ,thanks for you video.
@NikhilTarte
@NikhilTarte 6 жыл бұрын
@DevMakerter, One Question, if Suppose I don't have a Database to deal with in my project, so What Will be MVC, or this architecture is going to Matter? If my project is having Complex algorithm to deal with the database, processing input data and then save. Is that Algo Model or Controller?
@eljoenaimuninga2779
@eljoenaimuninga2779 7 жыл бұрын
Very detailed Thank You very much!!! It really helped me.
@oldyoutubevideos1262
@oldyoutubevideos1262 7 жыл бұрын
Um, no mention of ASP.NET? :| I didn't even hear about cake php until now
@blueshanks1
@blueshanks1 5 жыл бұрын
he mentioned it at about 10:28
@acidFreak420
@acidFreak420 7 жыл бұрын
best explanation of mvc.
@bhuvanmishrasos
@bhuvanmishrasos 7 жыл бұрын
Awesome Video! Thank you so much! Finally quite understood MVC! Thank you so so much! Subscribed! :)
@Xen_Prime
@Xen_Prime 5 жыл бұрын
You are dealy good at teaching! Very nice.
@tombarasa5473
@tombarasa5473 8 жыл бұрын
Thanks Jacurtis. Video was great in explaining all about MVC and now I real understand it. Had gone to Treehouse.com and Lynda.com but did not understand it at all. Will Keep watching all videos on Laravel.
@erjonhazizaj1707
@erjonhazizaj1707 8 жыл бұрын
yours tutorials are amaizing, i love them, i am following you in every laravel tutorial
@JacurtisTutorials
@JacurtisTutorials 8 жыл бұрын
Sweet! I am so glad. I love making the vidoes.
@RandomAlexus
@RandomAlexus 5 жыл бұрын
yeah this is a great description of MVC
@apitmar
@apitmar 7 жыл бұрын
Very clear explanation! Thanks.
@biljanaskrbo7005
@biljanaskrbo7005 7 жыл бұрын
BEST explanation EVER!
@Cris-oe7rl
@Cris-oe7rl 7 жыл бұрын
Very good explanation. Thank you!
@dependent-wafer-177
@dependent-wafer-177 8 жыл бұрын
5min in and I already started getting it. Awesome explanation.
@lovedennes2409
@lovedennes2409 7 жыл бұрын
GlennBen dax cf j u yucjjcjx?cjcjcj cc j4
@bensmith807
@bensmith807 6 жыл бұрын
This is by far the most helpful explanation!!
@mohammadanas3047
@mohammadanas3047 3 жыл бұрын
This was my first dig at MVC and the video made it so simple to understand!
@mujeexminiminer7653
@mujeexminiminer7653 5 жыл бұрын
This was very helpful! Thanks for all your hard-work.
@Sim1305
@Sim1305 7 жыл бұрын
nicely presented. one question, can we say route processor is a navigation controller which find and delegate the work to required controller?
@mikejakusz1493
@mikejakusz1493 Жыл бұрын
Amazing explanation, thank you for your clear answer! This video is very well structured video!
@DraxTheDestroyer
@DraxTheDestroyer Жыл бұрын
100Devs brought me here, thanks for the lesson!
@CHARISHMABOLLINENI
@CHARISHMABOLLINENI 4 ай бұрын
Excellent explanation👏
@KishorTiwari
@KishorTiwari 7 жыл бұрын
You're amazing. Thanks a lot. I understand each and every slide very well. Will watch all other videos you've uploaded.
@creidieki
@creidieki 6 жыл бұрын
You say the View never talks to the Controller, but I thought the View was the part that the user was typing into and clicking things on. When the user clicks a UI button, isn’t that button part of the View? If not, what is it a part of?
@ourcore
@ourcore 8 жыл бұрын
Thanks! That diagram definitely helped clear up the concept
@eliteny0
@eliteny0 3 жыл бұрын
Thanks for the explanation, it's very useful!
@makgatoselaelo
@makgatoselaelo 4 жыл бұрын
I Finally understand a simple pattern called MVC that I used on daily basis as a user to send requests to the web browser and not knowing what was happening in the background. I never questioned myself how the processing was occurring. MVC implements OO concept called Encapsulation. Yes South Africa
@kossyoto1
@kossyoto1 6 жыл бұрын
Thanks very much! Not it is a lot more clear to me what's going on with this MVC mystery. Thanks for clarifying!
@parthsharma4041
@parthsharma4041 6 жыл бұрын
2 mins in and its already so awesome lol, thanks for this well done
@mehdihachim3148
@mehdihachim3148 6 жыл бұрын
thanks jacurtis you are a good expliner my friend :)
@mohammadghonchesefidi9238
@mohammadghonchesefidi9238 6 жыл бұрын
Good job. I was learning Django and I had problem understanding the concepts. Thanks a lot.
@thomaswahahauw560
@thomaswahahauw560 6 жыл бұрын
Nice and clean explanation!!!!
@yichengliu
@yichengliu 7 жыл бұрын
Very clear, thank you so much (from Taiwan)
@miguelpunzal3028
@miguelpunzal3028 6 жыл бұрын
The best 25 minutes of my life.
@Georgii1212
@Georgii1212 4 жыл бұрын
Can you please explain in which layer are the business logic and business objects?..in Model? or in Controller?
@bambambam1234ful
@bambambam1234ful 7 жыл бұрын
Wow. Great tutorial on MVC. Definitely worth a sub. Keep em coming!
@manluke91
@manluke91 7 жыл бұрын
Thank you so much. Really good teacher. Got a sub outta this one mate
@sudharshantr8757
@sudharshantr8757 2 жыл бұрын
How is MVC different from 3-tier architecture: client layer - business logic layer - database layer ?
@jnfrle
@jnfrle 5 жыл бұрын
Thanks! I'm using Spring MVC and this gave me the background I wanted, including the history in the beginning.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 8 МЛН
Which Software Architecture Should You Use: MVC, MVP, or MVVM?
24:27
What Is MVC? Simple Explanation
10:40
Traversy Media
Рет қаралды 513 М.
Backend web development - a complete overview
12:58
SuperSimpleDev
Рет қаралды 1,7 МЛН
What Is A RESTful API? Explanation of REST & HTTP
18:38
Traversy Media
Рет қаралды 1,4 МЛН
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
ThePrimeTime
Рет қаралды 111 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 614 М.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 8 МЛН