What Is MVC? Simple Explanation

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 409

  • @grantwilliams9838
    @grantwilliams9838 5 лет назад +239

    Probably the best explanation I've seen yet regarding mvc. The diagram was excellent, the pseudo choose just topped it off. Well done again Brad.

    • @robot297
      @robot297 4 года назад +6

      The pseudo code was the cherry on top in my opinion! Thanks for the tutorial!

  • @SebLeCaribou
    @SebLeCaribou 4 года назад +4

    After five other videos, a read through the entire wikipedia page, and two other websites, you finally made me understand the concept. THANK YOU SO MUCH!

  • @12819421
    @12819421 4 года назад +6

    Precise, simple and gives the clear picture. Exactly what one want to know about MVC framework as a beginner, excellent job Brad, we owe you!
    Model - Organized data
    View - Interactive UI
    Control - Scalable processing logic connecting model and View

  • @MRABDULALI-123
    @MRABDULALI-123 2 года назад +1

    I LOVED THE WAY YOU SLOWLY TALK AND YOUR WAY OF EXPLANATION I HAVE NO COMMENTS FOR THAT LITERALLY

  • @arafatjamil1873
    @arafatjamil1873 Год назад +1

    I was watching another video, then I remembered about Traversy Media, hit the keyboard, made a search. Bam! Beautifully explained.

  • @mostafatourad8250
    @mostafatourad8250 7 лет назад +66

    we were waiting , every day I watch your channel so thanks for sharing knowledge

    • @TraversyMedia
      @TraversyMedia  7 лет назад +26

      Geez no pressure there...just kidding. Thanks for watching

    • @MrAhmedUA
      @MrAhmedUA 7 лет назад

      was the example based on php~laravel :D ?

  • @DEVC1-c1p
    @DEVC1-c1p 2 дня назад

    The diagram in itself makes this the best MVC video. Explains how I am actually supposed to use it in a project.

  • @petartodorov9202
    @petartodorov9202 5 лет назад +2

    I'm so happy when I google about web dev topics and see a Traversy Media video. Thank you for the clear and helpful teaching!

  • @unvrknow22
    @unvrknow22 6 лет назад

    This is the best channel on youtube for helping a beginner to learn how to code. Thank you so much for all of your videos.

  • @brighga33
    @brighga33 5 лет назад +3

    This is by far the best explained tutorial on MVC concept! Hats off to you, Mr. Traversy!

  • @denniskean183
    @denniskean183 7 лет назад +1

    The Best explanation so far without getting lost in a deep ocean. I recently purchased a few courses from Traversy Media and you are a master at clarity and staying simple. Many thanks for that. The question, "What is MVC?", popped in an interview spells doom for many. I always explained it in line with what you teach here, but interviewers have their own ideas of what it means and most of the time it is just their private beliefs. I dread that question. But I think I will refer them to this video and be done with it, next time. You are a hero, my friend!

  • @tobyn123
    @tobyn123 7 лет назад +1

    I just keep finding video after video after video of all the info I want, by you! Your channel is probably one of the best sources of information on the whole internet for anybody looking to get into development...

  • @rwingender
    @rwingender 4 года назад +4

    You are awesome! I've viewed a few similar videos on MVC, but yours is the best by far. It's not just the content that makes it the best; it's also just the tone of voice, the pacing, how you use the visuals and make it easy to follow where you are/what you're talking about visually. Really fantastic work!!

  • @Fawaz-vn5eg
    @Fawaz-vn5eg 7 лет назад +6

    Much awaited video. Thanks for sharing. The concept of MVC feels little bit confusing while i'am reading online articles, now i got it solved by this. Loving your style of teaching. Greetings from India😍✌

  • @seanm9306
    @seanm9306 3 года назад

    All the clarifications of what aspects vary depending on the framework really cleared things up for me. So many tutorials specify that certain aspects will or won't interact with one another in certain ways, but those differ from tutorial to tutorial. This really cleared that up.

  • @CentreMetre
    @CentreMetre 2 месяца назад

    Showing the controller view and model psuedocode all at once near the end really helped solidify how they interact, and thus what they do.

  • @hamzaomari7052
    @hamzaomari7052 2 года назад

    The best MVC explanation. I was searching for a good video to show it to my friend. And this is the best one. Especially that it has the algorithms explanation at the end. GOOD JOB!

  • @tilakmadichettitheappdeveloper
    @tilakmadichettitheappdeveloper 7 лет назад +474

    must be renamed to "The only Proper MVC Tut"

    • @nikolas__
      @nikolas__ 6 лет назад +38

      You're goddamn right! The 3 min "pseudocode" example he put was more clear than what other guys try to say in hours in other tutorials

    • @luqmansen
      @luqmansen 6 лет назад +11

      @@nikolas__ well, this is so true, the pseudocode totally make everything clear

    • @ArchitecTJ37
      @ArchitecTJ37 4 года назад +1

      That's why Traversy Media deserves > million of subs!

    • @-vis-2492
      @-vis-2492 3 года назад +1

      @@luqmansen I have been struggling with this for a while, the pseudo code is cristal clear omg

    • @ojussinghal2501
      @ojussinghal2501 3 года назад +3

      4 years later, this is still one of the cleanest intros to MVC design pattern.

  • @TheFlyingMonkey200
    @TheFlyingMonkey200 3 года назад +3

    This was awesome, I have never seen state management explained so nicely! I really liked the "languageless" code you had as an example towards the end. Excellent job!

  • @pasqualealfano6652
    @pasqualealfano6652 4 года назад

    One of the best, fastest and really to the point explanation to grasp the MVC concept, well done, man!

  • @vamshikrishna-pt6qx
    @vamshikrishna-pt6qx 7 лет назад +14

    This is the best MVC tutorial so far i have seen. Thanks for that. It would be good if you explain some important concepts like SQL injection, cross-site scripting (XSS), cross-site request forgery (CSRF) and cookie tampering implementation by considering some MVC framework.

  • @SIFWD1
    @SIFWD1 7 лет назад +5

    Dude this is easily the best explanation of MVC! You've got yourself another subscriber...... keep up the quality content

  • @paulhanrahan6728
    @paulhanrahan6728 5 лет назад +6

    Thanks for making newer concepts and technology accessible to a "legacy' programmer like myself.

    • @RealformStudioXR
      @RealformStudioXR 5 лет назад

      Paul Hanrahan are you a freelancer, right now? If so what do you advise to get more clients

    • @RealformStudioXR
      @RealformStudioXR 5 лет назад

      Regards

    • @paulhanrahan6728
      @paulhanrahan6728 5 лет назад

      @@RealformStudioXR Sorry for taking so long to get back to you. I am not a freelancer. I am developing an application I intend to market and sell on my own.

    • @RealformStudioXR
      @RealformStudioXR 5 лет назад

      @@paulhanrahan6728 thanks, how do you think will be the right model to sell, and there is something I always wonder, how do you assign a price to your software products

    • @AkshayKumar-fj9hd
      @AkshayKumar-fj9hd 5 лет назад

      Hi Paul, on what legacy technologies do you work? are you working as system programmer?

  • @reubenalfred4878
    @reubenalfred4878 3 года назад

    Good intro bro! short and sweet straight to the point and no noise video, if only all videos are like this!!
    Thanks so much man!!

  • @ankitaaarya
    @ankitaaarya 7 лет назад +2

    *Clicked on thumbnail, paused the video, now commenting : thank you so f-ing much!!! i was searching MVC all over the internet, thanks to you man, & god is listening to me.*

  • @ojussinghal2501
    @ojussinghal2501 3 года назад +1

    4 years later, this is still one of the cleanest intros to MVC design pattern.

  • @batuhanaktas1769
    @batuhanaktas1769 4 года назад

    After watching about 20 videos since yesterday, finally i understood with this video. Thank you for your clear explanation.

  • @HemaDarshiniSelvaraju
    @HemaDarshiniSelvaraju 5 лет назад

    I normally won't comment in most tech videos that I watch but I really liked the way u illustrate the code in one page which makes people to really understand the flow of the code for those who wants to see the clear picture of the dynamic flow in the codes. This is good idea and way to teach people. Sudo for u 👍😁😉🙏

  • @romanticscents
    @romanticscents 7 лет назад +3

    thank you for sharing. i had a job interview once and he asked me was i familiar with the term mvc. i wasn't sure because mvc bAck in the day for me stood for Microsoft visual composer when i learned visual basic studio. now i understand your example. thank

  • @bigbean3717
    @bigbean3717 3 года назад

    no words for how much brad is the man

  • @bernacaner544
    @bernacaner544 5 лет назад +9

    You are just amazing, have several of your Udemy classes. Absolutely perfect explanation every single time

    • @chvrleshd
      @chvrleshd 3 года назад

      He has Udemy courses? Please give me a link

  • @kwalombo_ta
    @kwalombo_ta 5 лет назад

    Ridiculously easy to understand. give this man some gold

  • @jimscott2958
    @jimscott2958 4 года назад +1

    I agree Grant : Probably the best explanation I've seen yet regarding mvc.

  • @Eamo-21
    @Eamo-21 6 лет назад +2

    Brad, you have a gift for explaining concepts. Thank you so much for putting out this great content.

  • @mattconrad
    @mattconrad 6 лет назад

    Thanks, Bossman. I've been trying to understand Laravel and MVC for a while and this is the best, most concise definition I could find!

  • @jsr7599
    @jsr7599 4 года назад

    you're a Great Man in modern programming (a catalyst). You basically program programmers. Thanks!

  • @simonnjugunamutua7923
    @simonnjugunamutua7923 2 года назад

    Best mvc explanation i have come across. Thank you

  • @quiller145
    @quiller145 4 года назад

    This is the best explanation I’ve seen on RUclips. You’ve just earned a sub

  • @GLoop無縫循環歌曲
    @GLoop無縫循環歌曲 5 лет назад

    You deserve the like. It's so helpful, that I'm a year one undergraduate student doing internship in company's website, which used CodeIgniter. I totally know how to modify the webpage now. Thank you.
    Greetings from Malaysia

  • @GooseGumlizzard
    @GooseGumlizzard 5 лет назад +1

    that pseudo code example really tied it together, great stuff!

    • @jame_sta
      @jame_sta 5 лет назад

      Agreed, very good example and video

  • @Martin-xx2kw
    @Martin-xx2kw 6 лет назад

    Great explanation Brad. I can't get an work done cuz I keep jumping to you next tutorials. You are the BEST!

  • @delisandor5337
    @delisandor5337 6 лет назад

    whatever I search regarding code... at least one traversy media video in the result list... at least with 1000 likes... and they are great.. congrats for the awesome youtube channel=)

  • @FloridaGulfCoastLife
    @FloridaGulfCoastLife 5 лет назад +2

    Thank you for the explanation. That pseudo code really made it easier.

  • @computeprashant
    @computeprashant 4 года назад

    The last part of explaination is something you can't get everywhere..Thank you for wonderful tutorial!!!

  • @ymohsin
    @ymohsin 4 года назад

    Thank you, this is GOLDEN! BEST tutorial on MVC for beginners so far! Amazingly informative diagram, great example code. KEEP POSTING MY FRIEND!

  • @lator1941
    @lator1941 2 года назад

    this was so clear. I'm new to back-end development and I got it so clearly. Thank you

  • @rafeemuhammad8828
    @rafeemuhammad8828 5 лет назад +1

    This is really perfect and proper tutorial for understanding MVC. Thanks a lot sir.....

  • @exikoz
    @exikoz 5 лет назад

    I don't know how to thank you Brad? you have helped me and other so much. As always quality content!

  • @whatwebs
    @whatwebs 4 года назад +1

    Excellent job. Loved the psuedo code to show the logic.

  • @michaelvolkmuth3538
    @michaelvolkmuth3538 6 лет назад

    This is also a good review for veterans that haven't messed with MVC in a while. Thanks!

  • @silence8806
    @silence8806 3 года назад

    Thank you so much for explaining MVC. This is foundational to my daily job and up to now, i did not understand it good enough.

  • @musandlala7991
    @musandlala7991 6 лет назад

    well explained and yes it should be renamed to "The only Proper mvc Tutorial".
    By far the most well thought out tutorial without being framework dependent.

  • @philipg.5316
    @philipg.5316 6 лет назад

    You always make quality tutorial videos with nice examples. Kudos to your great content!

  • @JasonTsimplis
    @JasonTsimplis 4 года назад +1

    Best explanation ! The code sample also really helped a lot, thank you for this great tutorial !

  • @mohamedasiqshajahan1200
    @mohamedasiqshajahan1200 5 лет назад

    Awesome Explanation. Even a child will get a clear understanding about what is MVC.

  • @sixeightsix19
    @sixeightsix19 3 года назад

    You did a phenomenal job. Thank you very much! It is definitely not an easy or intuitive concept for many learners.

  • @TheUnrestrainedTaco
    @TheUnrestrainedTaco 4 года назад +2

    Thank you so much for this, first time I truly felt like I understood the actual practical relationship between M V and C. Greatly appreciated, and great explanation!

  • @adrianramirez9729
    @adrianramirez9729 2 года назад

    The best explanation about MVC ! Thanks a lot

  • @miggu
    @miggu 6 лет назад

    concise, useful and not overcomplicated : excellent explanation. thank you

  • @circulardep
    @circulardep 6 лет назад

    This was helpful. I recently learnt in a lecture about MVC that in true MVC, the Controller doesn't actually interact with the View, it only interacts with the Model, and that many MVC frameworks don't follow the "true MVC way". Is that something worth considering? I guess that as long as this way is what we find in popular frameworks, let's just stick to that. This makes much more sense to me personally.

  • @karolf1690
    @karolf1690 5 лет назад +2

    Really good explanation, especially when it comes to this pseudo-code. Thanks

  • @markprodehl653
    @markprodehl653 4 года назад

    Great video explaining a concept that I have been struggling to wrap my head around for some time.

  • @itzyourbwoytchybooxuur6475
    @itzyourbwoytchybooxuur6475 3 года назад +1

    Superb explanation!
    Thanks a billion sir!

  • @crystalsky7615
    @crystalsky7615 7 лет назад +7

    please guys never dislike Brad's video.....
    Thanx once again Brad for sharing some useful concepts..

  • @graynoble4795
    @graynoble4795 5 лет назад

    Very nice! Started quickly, clear voice and very nice pseudo-code. Great job! (p.s. 74 people just CANT be taught)

  • @rohanshenoy8353
    @rohanshenoy8353 6 лет назад

    Real good explanation. Brad doing awesome job explaining.

  • @ab76254
    @ab76254 4 года назад

    Thanks man, that was really helpful, especially with the diagram and pseudocode to demonstrate the basic concept!

  • @fernandoarnaldovilanculo8286
    @fernandoarnaldovilanculo8286 Год назад

    Is impossible to dislike this tutorial.

  • @jojohehe3251
    @jojohehe3251 2 месяца назад

    This was excellent and the only improvement I would suggest is maybe adding some animation so that when you are describing the model you can show the viewer which particular part of the model you're talking about. Even so, it is pretty simple and I didn't have any trouble understanding it. It was also refreshing to hear someone say leave a like or a dislike. I don't think I've ever heard anyone on RUclips video say that before.

  • @zbera97
    @zbera97 6 лет назад

    You are the best. Thanks for your videos that demystify hard concepts.

  • @MohamedAhm3d
    @MohamedAhm3d Год назад

    This is awesome. The example really helped me understand. Thank you

  • @yongamer
    @yongamer 5 лет назад +1

    Model - Interaction with database (SELECT, INSERT, UPDATE, DELETE)
    View - Usually consist of HTML/CSS
    Controller - Processes requests (GET, POST, PUT, DELETE)

  • @khalidelgazzar
    @khalidelgazzar 2 года назад

    Great video. Short & to the point

  • @artaway6647
    @artaway6647 7 лет назад +1

    Awesome! I recently saw your channel and I love it :) keep up the good work, always supporting you here

  • @xinba6899
    @xinba6899 3 года назад

    Best explanation and easy to understand

  • @AbdullahChaudhryDXB
    @AbdullahChaudhryDXB 7 лет назад +2

    best explanation ever in history .. thanks sir

  • @keyildeverse1901
    @keyildeverse1901 6 лет назад

    bro , i like the way u speak so kindly

  • @jacktickoo
    @jacktickoo 4 года назад

    Did web app module that included 2 projects at university and the penny finally dropped watching this video. I wish I found this sooner!

  • @ezekielmolemo7238
    @ezekielmolemo7238 5 лет назад

    Best MVC tutorial ever.

  • @davidbohadana8274
    @davidbohadana8274 7 лет назад

    Very simple yet meaningful exmplanation

  • @gamesrullzro8356
    @gamesrullzro8356 5 лет назад +75

    Model -> Database
    View -> Front-end
    Controller -> Server

    • @celesterobinson6884
      @celesterobinson6884 5 лет назад +12

      Wait this is misleading. Based on this video, the Model is NOT the Database. It communicates with the database. 2:43

    • @gandhikaran24
      @gandhikaran24 5 лет назад

      Model is the query language that handles and manages data and not the database itself.

  • @frikkievandermerwe
    @frikkievandermerwe 6 лет назад

    Thank you so much for this awesome explanation. The Pseudo code part really helped me understand it...

  • @Mrwingssalsasalitas
    @Mrwingssalsasalitas 3 года назад

    Thanks for sharing. Very useful. Helped me understand better the Django framework

  • @shadyqaddoura3451
    @shadyqaddoura3451 5 лет назад +1

    Amazing very simple explanation for MVC, thank you

  • @SachinDevatarTechie
    @SachinDevatarTechie 5 лет назад

    Awesome Video, MVC architecture is a piece of cake now.

  • @Didi-bz6kt
    @Didi-bz6kt 4 года назад

    I wish this video would have been published earlier ! Great video thank you !

  • @playcorner2474
    @playcorner2474 5 лет назад

    Good explanation dude. Controller gets the data from model and pass it to view

  • @charlielin188
    @charlielin188 2 года назад

    This is so great, easy to understand

  • @istiyakahamedmilon6512
    @istiyakahamedmilon6512 6 лет назад

    Nice explanation and example of MVC. Again thanks a lot Brad

  • @lobsang8405
    @lobsang8405 4 года назад

    Thanks for a very simple and accurate explanation .

  • @marktwain3083
    @marktwain3083 7 лет назад

    I watch your videos even though I already understand in depth, what MVC is.

  • @klausdupont6335
    @klausdupont6335 6 лет назад

    The illustration is very clear and diagrams very helpful!

  • @jasonvictor1798
    @jasonvictor1798 4 года назад

    That's earned a bookmark!! Thank you for this.

  • @HassanInter
    @HassanInter 7 лет назад +98

    Model is where to save data
    View is displaying data
    Controller is where to message the data before you display

    • @manwithllama
      @manwithllama 6 лет назад +4

      Nice. Your thought makes MVC a lot easier to compartmentalize. Quick edit: I think you meant "massage" (knead, manipulate) instead of "message" (write a note).

    • @rahultech77
      @rahultech77 6 лет назад +43

      Model is fetching and processing the data
      View is displaying stuff to user
      Controller communicates between the model and view.

  • @taiwoadebisi9315
    @taiwoadebisi9315 6 лет назад +1

    Everytime I open a tutorial on anything web, I doze off because they can be boring. I mean really boring!
    Yours however, ITS AWESOME!
    THANKS

  • @itameio6161
    @itameio6161 3 года назад

    Thanks for this video and the example code. Very clear and understandable.

  • @zikoelitbook1422
    @zikoelitbook1422 2 года назад

    2022 and still useful 👌 thanks alot

  • @saimhassan
    @saimhassan 6 лет назад +25

    so MVC is basically a technique to organize data, functionality and GUI comps and keeping them away from each other yet in communication? if i'm not drunk?

    • @istandaloneroronoazoro5188
      @istandaloneroronoazoro5188 4 года назад

      I wish there were a simpler explanation for it. Because all those technical terms throw me off guard. Just so that I see my logic: "MVC is a pattern used in web or software development for organising the code content based on its purpose? For example, Model takes responsibility for all database related things; View is the Preview state for the user to see the final result on the browser; and Controller is what???" This is my current understanding of it :(

    • @saimhassan
      @saimhassan 4 года назад

      @@istandaloneroronoazoro5188 no problem, controller is just a Class that holds the methods which we write to fetch data from db and redirect users to appropriate view (gui)

    • @saimhassan
      @saimhassan 4 года назад

      @@istandaloneroronoazoro5188 i wish i could attach reference images to show u what exactly these things are. Let me know if u need help

    • @istandaloneroronoazoro5188
      @istandaloneroronoazoro5188 4 года назад

      @@saimhassan Thank you very much! Its just that I have an interview tomorrow for a Web Developer role and I use HTML, CSS, JavaScript and so on without MVC. It is quite complex for me! :(

  • @shihaosun6861
    @shihaosun6861 3 года назад

    Best MVC video!!! Thank you so much!!!

  • @mel_halzy
    @mel_halzy 3 года назад

    Phenomenal explanation. Thank you!