MVC Java Tutorial

preview_player
Показать описание

MY UDEMY COURSES ARE 87.5% OFF TIL July 16th ($9.99)

Welcome to my MVC Java Tutorial. I have been asked for this tutorial many times in the last few weeks.

To understand the Model View Controller you just need to know that it separates the Calculations and Data from the interface. The Model is the class that contains the data and the methods needed to use the data. The View is the interface. The Controller coordinates interactions between the Model and View.

The video and code will make it very easy to understand.
Рекомендации по теме
Комментарии
Автор

Learn in One Videos for Every Programming Language

derekbanas
Автор

Derek, you have the most clear voice and intelligent way of providing a tutorial, keep on doing what you do.

learnbytesting
Автор

Would you be interested in doing more videos on MVC? I think it's an important software architectural pattern that many people (including myself) still have trouble with.

mikeseitz
Автор

I had to scrub back to catch a few details that went by too fast, but overall, this is one of the best MVC explanations I've run across. Nicely done!

One subtle point you bring up is that we are often tempted to create the actionListeners with the view, because that's where the buttons are, and making the listeners at the same time as the buttons feels natural. However, the actionListeners really get made in the controller and then passed through to the view because the controller is what decides what happens when the view buttons are pressed. This means that you need to have a view method that simply pipes the controller's actionListener it on through to the button. I think that's where I was getting hung up in the past about how to keep the view and the model separate.

Also, I've often wondered where all the initialization happens. Whether the controller initializes the model and view or whether the model is initialized before getting passed to the controller and then the controller is told to start. I guess it can work either way, but I like this way because it feels cleaner and helps separate functionality better.

brucepc
Автор

It took my former teacher two years to explain what you did in 13 minutes and it still got me confused..thanks for this great explanation. You are great!

jung_sascha
Автор

That is fabulous!!! You have no idea how happy it makes me that people are actually learning from my videos. My wife jokes with me that people watch my videos to cure their insomnia :)

derekbanas
Автор

ฉันได้หลายร้อย tutorials Java มา อวยพรคุณและครอบครัวของคุณ

derekbanas
Автор

Thanks lad, I love the fact that you don't beat around the bush.

I also love that your manner of speaking allows me to watch this on 2x speed if I desire to.

ratelslangen
Автор

All of the logic goes in the model. Any changes to the interface goes in the view and the controller connects the 2. I'm not sure what your trying to do, but that is the same setup for everything. I cover how I solve problems in the Object Oriented Design tutorial series

derekbanas
Автор

Just WOW... Thank you so much for this. Just like the fella below I couldn't understand jack squat of MVC, but you repeated so many times: "The view doesn't know the model exists and vice versa". It all made sense after that. Again, thank you so much and I just subscribed to your channel.

andrewgarfield
Автор

I just wanted to say thank you SO much for creating this video. I'm currently struggling in an advanced Java class right now. I had a hard time understanding an MVC application we have to make so I searched for tutorials, and I'm extremely glad I came across yours. Thank you SO much again, I appreciate your effort to make this video!

noell
Автор

This kind of tutorial on raw MCV Pattern is really rare on the internet. I could only find tutorials about MVC with other technologies wich didn't healp me learn MVC properly.
Please consider making new tutorials like that one.

قر
Автор

I came back to this tutorial today Derek as I'm writing a small desktop application using MVC. I just want to mention just how helpful the tutorial was and to thank you for capturing the essence of the MVC architecture in so simple and clear a way. Thank you once again.

arthurmee
Автор

I really couldn't understand MVC in any video but yours. Thanks a lot !

Klivdx
Автор

Thank you :) I constantly try to improve. I just updated my mic. I record everything in 1080 p even though it takes about 3 hours to render. My computer is really pretty slow

derekbanas
Автор

Thank you very much :) I made an asteroids game at the end of my Java tutorial that covers a ton of the math you need. I also plan on making Android games as soon as I finish with Android basic app stuff. Once I start making games I will probably continue to do so for 5 or 6 months. I promise to cover everything

derekbanas
Автор

Why were you able to explain in one less than 15 min. video what my university prof. could not achieve in 2 class periods? Nice video.

eagl
Автор

Sorry about not going into more detail. I plan on covering MVC with many real word examples. Yes I'm not very popular. I'm glad you found me :)

derekbanas
Автор

0:30
You have selected Derek Banas as the computer's default voice

ChiragRajputS
Автор

The model is meant to perform the calculations and control the data in coordination with other classes other then the Controller and View. Then the Controller coordinates communication between the View. There are examples of MVCs in which the Model communicates directly with the Controller, but I prefer to avoid that

derekbanas