MVC Java Tutorial

  Рет қаралды 587,458

Derek Banas

Derek Banas

Күн бұрын

Get the Code Here : goo.gl/deVk5
MY UDEMY COURSES ARE 87.5% OFF TIL July 16th ($9.99)
www.udemy.com/
➡️ Python Data Science Series for $9.99 : Highest Rated & Largest Python Udemy Course + 56 Hrs + 200 Videos + Data Science bit.ly/Master_...
➡️ New C++ Programming Bootcamp Series for $9.99 : Over 23 Hrs + 53 Videos + Quizzes + Graded Assignments + New Videos Every Month bit.ly/C_Cours...
Support me on Patreon : / derekbanas
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.

Пікірлер: 944
@derekbanas
@derekbanas 5 жыл бұрын
Learn in One Videos for Every Programming Language Subscribe to Bookmark them: bit.ly/2FWQZTx C++ : kzbin.info/www/bejne/iKbFXn2pn7Kbjbs Python : kzbin.info/www/bejne/hGXQdq18ec-kqqM Java : kzbin.info/www/bejne/pF7bcqSZd6iqqZY PHP : kzbin.info/www/bejne/bYWpYWOef65qbrs MySQL : kzbin.info/www/bejne/r4HYZ6SMasesq5Y JavaScript : kzbin.info/www/bejne/nJvYapyfbb6mfdU C# : kzbin.info/www/bejne/oprWmqqLj6-Lp7M HTML5 : kzbin.info/www/bejne/oXXce4FtprZ4iqM CSS3 : kzbin.info/www/bejne/eYbbeZKojLh8Z80 JQuery : kzbin.info/www/bejne/eIi7mJp4YrlkoLM TypeScript : kzbin.info/www/bejne/Y4G1kIunjJ59gLc ECMAScript : kzbin.info/www/bejne/gJLOoJxmfJ2feMk Swift : kzbin.info/www/bejne/mnzEoJ2Fj5KUsJo R : kzbin.info/www/bejne/qWSpoK2Mm8lqp5Y Haskell : kzbin.info/www/bejne/ZmPCeWaCn9aAqJo Handlebars : kzbin.info/www/bejne/annYcqGDa8dlmpo Bootstrap : kzbin.info/www/bejne/naKydqKLh5qFfsk Rust : kzbin.info/www/bejne/i2Kod5p5g7F3eJo Matlab : kzbin.info/www/bejne/hIS2hZ6hgLeUmKs Arduino : kzbin.info/www/bejne/h4DCe5-wZtajetk Crystal : kzbin.info/www/bejne/eqmpgWCNn9anqcU Emacs : kzbin.info/www/bejne/f5LKk6lvbJl6orM Clojure : kzbin.info/www/bejne/mZqqqnuhedqDd6c Shell : kzbin.info/www/bejne/nqjVn6CHqtKnhtk Perl : kzbin.info/www/bejne/jXbKmXyOqJ15bMU Perl6 : kzbin.info/www/bejne/omHdgaqenLyHna8 Elixir : kzbin.info/www/bejne/pnOxgJSsh9SBgpI D : kzbin.info/www/bejne/qKi9d4ekm56Verc Fortran : kzbin.info/www/bejne/lZCVhpp8g76anJo LaTeX : kzbin.info/www/bejne/jJnQnH-ohM9_qdk F# : kzbin.info/www/bejne/mWjIf3eAg5xobrc Kotlin : kzbin.info/www/bejne/fpDSeJxuqtp3pqM Erlang : kzbin.info/www/bejne/f3bLqJZoppatfZY Groovy : kzbin.info/www/bejne/eGqbm5Zuncmob8k Scala : kzbin.info/www/bejne/equppWOPoL-ibq8 Lua : kzbin.info/www/bejne/n37ElKuQhrKDjtU Ruby : kzbin.info/www/bejne/epvManSCeMyZpq8 Go : kzbin.info/www/bejne/eXechGeHj9qJaZI Objective C : kzbin.info/www/bejne/a5bWgqSQfq9rack Prolog : kzbin.info/www/bejne/iarOqYqme9yAfdU LISP : kzbin.info/www/bejne/r562ometfdekr7c Express : kzbin.info/www/bejne/rnWmfJaEd6umq6s Jade : kzbin.info/www/bejne/omakiZaOdrVnqJo Sass : kzbin.info/www/bejne/rauWnHiigcd4fqc
@learnbytesting3355
@learnbytesting3355 9 жыл бұрын
Derek, you have the most clear voice and intelligent way of providing a tutorial, keep on doing what you do.
@derekbanas
@derekbanas 9 жыл бұрын
Hipolito Nunez Thank you for the nice compliment :)
@mikeseitz1381
@mikeseitz1381 8 жыл бұрын
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.
@derekbanas
@derekbanas 8 жыл бұрын
I'll do anything if I get enough requests. You guys determine everything I do.
@marekgrencstein7215
@marekgrencstein7215 8 жыл бұрын
I agree with Eric. I've searched entire weekend for a MVC tutorial and your tutorial is the only one that isn't web-centric. So, it's the first tutorial that actually covers MVC in generic software. I would love to see how you do a larger scale software on a MVC architecture. I must add, that overall, I got what I needed from this software. It was what I was looking for. Thank you.
@cosythe1st
@cosythe1st 8 жыл бұрын
great vid. I was having a hard time with how to actually manually write a MVC program in java. I was used to everything being auto generated in swift/android and did not actually know what was happening
@vincentengel588
@vincentengel588 8 жыл бұрын
I'm interested in a larger scaled MVC tutorial. What about multiple Views? Maybe show it a bit in conjunction with JavaFx... Thank you very much
@dcngn_
@dcngn_ 8 жыл бұрын
Vincent Engel fPt?
@derekbanas
@derekbanas 11 жыл бұрын
Feel free to ask me any questions you have. I don't have another MVC tutorial
@derekbanas
@derekbanas 11 жыл бұрын
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 :)
@IStMl
@IStMl Жыл бұрын
shes wrong
@brucepc
@brucepc 8 жыл бұрын
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.
@coolvideos6970
@coolvideos6970 6 жыл бұрын
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.
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy it helped :) I plan on making more algorithm tutorials
@derekbanas
@derekbanas 11 жыл бұрын
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
@ratelslangen
@ratelslangen 8 жыл бұрын
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.
@derekbanas
@derekbanas 8 жыл бұрын
Thank you :) I can't believe you watch this at 2x !!!
@Clockradio92
@Clockradio92 7 жыл бұрын
Thanks of the tip! Never thought about increasing the speed...
@derekbanas
@derekbanas 11 жыл бұрын
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 :)
@santoshgurung7153
@santoshgurung7153 3 жыл бұрын
Now you got over 1 million subscribers !!!
@IStMl
@IStMl Жыл бұрын
well about that
@andrewgarfield5512
@andrewgarfield5512 9 жыл бұрын
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.
@noell1280
@noell1280 9 жыл бұрын
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!
@derekbanas
@derekbanas 9 жыл бұрын
Austin F You're very welcome :) I'm very happy that I could clear up MVC for you.
@Klivdx
@Klivdx 9 жыл бұрын
I really couldn't understand MVC in any video but yours. Thanks a lot !
@derekbanas
@derekbanas 9 жыл бұрын
AmineDx Great I'm glad I could clear it up :)
@ultralooter
@ultralooter 8 жыл бұрын
+Derek Banas Yes only those who really understand it well could expalin it that simple =)
@derekbanas
@derekbanas 11 жыл бұрын
I'm glad you liked that. I made this tutorial based on your request. I hope it helped
@eagl3007
@eagl3007 10 жыл бұрын
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.
@derekbanas
@derekbanas 10 жыл бұрын
Eagl3 Thank you :) I'm very happy I could help
@feo130
@feo130 7 жыл бұрын
Because school sucks and is a money grab. Bless these KZbinrs for putting out amazing content for free.
@sicariushahni5366
@sicariushahni5366 5 жыл бұрын
@@feo130 exactly
@derekbanas
@derekbanas 11 жыл бұрын
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
@ChiragRajputS
@ChiragRajputS 5 жыл бұрын
0:30 You have selected Derek Banas as the computer's default voice
@DonteatpieRotmgScam
@DonteatpieRotmgScam 3 жыл бұрын
hahaahahaaaaa
@derekbanas
@derekbanas 11 жыл бұрын
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
@levkolomazov6554
@levkolomazov6554 8 жыл бұрын
Hey Controller, you handle this. Cause I don't do anything like that.
@ErnieBraganza
@ErnieBraganza 11 жыл бұрын
I was always a bit confused by MVC, but you did an excellent job making the design clear and easy to apply. I love your design patterns tutorials.
@ytSpoiler
@ytSpoiler 10 жыл бұрын
Yours tutorials are best on world :) Thank you Derek :)
@derekbanas
@derekbanas 10 жыл бұрын
Thank you for the nice compliment :)
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) It always makes me happy when I'm able to help people understand topics that confused me when I first came in contact with them.
@B0bi_007
@B0bi_007 8 жыл бұрын
You sound like Andy Bernard from The Office. p.s. great tuto :D
@derekbanas
@derekbanas 8 жыл бұрын
Thank you :) I hear that all of the time.
@yashkaliapiano
@yashkaliapiano 5 жыл бұрын
He actually sounds like Tom Hanks in Forrest Gump. :=)
@Billy-wo3qo
@Billy-wo3qo 5 жыл бұрын
Or Joe Swanson from Family Guy.
@derekbanas
@derekbanas 11 жыл бұрын
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
@radlabman9031
@radlabman9031 8 жыл бұрын
Thank you. Perhaps a tutorial on Spring the mother of all Java framework?
@derekbanas
@derekbanas 8 жыл бұрын
You're welcome :) I hope to cover Spring soon
@egirmgr8332
@egirmgr8332 8 жыл бұрын
Hurray!
@arthurmee
@arthurmee 11 жыл бұрын
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.
@dharmeshbasapati
@dharmeshbasapati 8 жыл бұрын
Its So Impressive.....Thank You So Much Derek!!!! GOD BLESS YOU!!!
@derekbanas
@derekbanas 8 жыл бұрын
+DHARMESH KUMAR Thank you :) May God bless you as well.
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) No you don't need a different class for every button. You want to structure your code so that it is more understandable. You have to weigh the benefits of adding flexibility versus writing understandable code. I always pick understandable code. I cover how to break down code into classes in my Object Oriented Design tutorials. Part 1 and 2 will probably be enough to see how I do it
@ahadrahman2916
@ahadrahman2916 4 жыл бұрын
Hey there, love this video. But the link in the description for your code doesn't work anymore. Would be much appreciated if you can fix the link
@derekbanas
@derekbanas 11 жыл бұрын
Sorry if you don't like the videos. My community has pretty much forced me to make fast tutorials. I'm the guy that makes fast tutorials on KZbin. Pretty much everyone else makes unedited slow videos
@RudineBijlsma
@RudineBijlsma 9 жыл бұрын
Hey Derek, thank you for this video (in fact all your videos are indeed awesome). I have one question though; is there any chance that this video might get updated with JavaFX code?
@anis.lounis
@anis.lounis 9 жыл бұрын
Rudine Bijlsma I came here for that purpose too ^^
@iamdutchmartin
@iamdutchmartin 6 жыл бұрын
Probably not, but lookup the tutorial for javafx from thenewboston, then you can easely rewrite it yourself
@derekbanas
@derekbanas 11 жыл бұрын
This is the basic setup: JSP View, Model is a basic java class, Servlet controller I'll get to Spring as soon as possible. Sorry it is taking so long
@mohammadomer147
@mohammadomer147 10 жыл бұрын
I am gonna say it again u are awesome thank u again u always useful ur channel made me not to search for anything i've got everything here ^_^
@derekbanas
@derekbanas 10 жыл бұрын
mohammad omer Thank you for the wonderful compliment :) Many more videos are coming
@mohammadomer147
@mohammadomer147 10 жыл бұрын
you are welcome my great teacher
@derekbanas
@derekbanas 11 жыл бұрын
ฉันได้หลายร้อย tutorials Java มา ฉันจะให้ทำให้พวกเขาจนกว่าทุกอย่างจะถูกปกคลุม อวยพรคุณและครอบครัวของคุณ
@stathamstone3174
@stathamstone3174 8 жыл бұрын
You hava a really special voice : )
@guilherme19196
@guilherme19196 8 жыл бұрын
he uses audio filters and some other tech to transform his voice
@derekbanas
@derekbanas 11 жыл бұрын
I'm not done with MVC and yes their are many ways to implement it. I'll use it in many different forms in upcoming tutorials. I just wanted to create a simple form first
@ChristianKrause89
@ChristianKrause89 10 жыл бұрын
int i = -1; while(i < 0) { System.out.println("Like"); i - - ; }
@derekbanas
@derekbanas 10 жыл бұрын
Christian Krause Thank you :)
@ChristianKrause89
@ChristianKrause89 10 жыл бұрын
Derek Banas Thank you. This little video actually saved my life. Have a project due next week and have been having trouble implementing MVC (which she grades harsh for). Seeing this simple little 13 minute video helped me organize MY program. Granted it's a lot bigger but the basic flow and seeing you do it helped me tremendously so again, thank YOU.
@derekbanas
@derekbanas 11 жыл бұрын
Thank you very much :) I have hundreds of Java tutorials planned. I'll keep making them until I cover everything. I'll be using MVC a great deal in my next tutorial series, so you'll get very use to it. The hardest part is understanding how the ActionListener in the interface routes through the controller and to the model. If you get that then you understand MVC
@pedromourz
@pedromourz Жыл бұрын
I cannot believe this is 10 years old and it solved my life now, thank you!
@djpunisha29
@djpunisha29 10 жыл бұрын
hey Derek, you are the man, you are making my studies at my Uni much easier, we have subjects like Java1, Java2, Software Design(Patterns), Software Quality(Re-factoring, Testing) ... and my source of studies are your tuts, you could easily teach all this stuff at a University ;) cheers from Austria
@spooky_zen
@spooky_zen 4 жыл бұрын
I appreciate how straight to the point you are, I think alot nerds like to make things sound complicated
@derekbanas
@derekbanas 4 жыл бұрын
You are so right about that. It used to drive me insane when people used jargon during lectures and I go out of my way to make everything very understandable. I'm happy I was able to clear up MVC :)
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) Yes it can be a little overwhelming some time, but if we can understand things like MVC, OOP and OOD it gets pretty easy after that
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) Yes I'll cover Spring soon. I'll be doing a lot with mvc in upcoming videos
@derekbanas
@derekbanas 11 жыл бұрын
I'm very happy to have been able to help :)
@derekbanas
@derekbanas 11 жыл бұрын
Hi Eduardo, you don't have to call setVisible from main. You can call it anywhere that has an instance of the JFrame
@kamranbigdely
@kamranbigdely 2 жыл бұрын
The good thing about this tutorial is that it explains the MCV from scratch with minimum code and does not depends on libraries or framework.
@derekbanas
@derekbanas 2 жыл бұрын
Thank you :) I'm happy I could help
@TheLINGS24
@TheLINGS24 11 жыл бұрын
I have recently started watching your tutorials and I have already become a huge fan of yours. Things are so neatly presented with a lot of quality and code. I am this person who had no idea about what MVC is and now I know its basics clearly. You are doing a tremendous job. Please keep posting tutorials.
@elbonkadillo
@elbonkadillo 6 жыл бұрын
This would be a perfect example to add the Application Controller Pattern. You could simply add four more Buttons and a Hashmap inside the Controller, that executes different proccedures, in this case an add class, a subtract class, a multiply class and a divide class.
@jung_sascha
@jung_sascha 6 жыл бұрын
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!
@derekbanas
@derekbanas 6 жыл бұрын
I'm very happy that I could help :)
@fredericlegastelois247
@fredericlegastelois247 8 жыл бұрын
THANK YOU SO MUCH ! I was Looking for a simple tutorial like that on web but everything written is just impossible to understand, thanks to you now I FINALLY understand how controllers work . THANK YOU SO MUCH !
@derekbanas
@derekbanas 8 жыл бұрын
You're very welcome :)
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) Yes everything in Android and iOS is based on MVC. I have an Android tutorial. You'll quickly see how it is implemented if you watch that tutorial
@derekbanas
@derekbanas 11 жыл бұрын
Yes it does lean that way since I have the view catching the actions and then passing them to the controller. In trying to keep everything simplified I didn't make a pure view. Good catch :)
@dustinwilson2311
@dustinwilson2311 5 жыл бұрын
Thank you so much! I haven't seen any other videos that implement MVC like this, and you explained everything clearly. I had a hard time understanding the actual implementation of MVC until now, but it's actually quite easy. Most videos just go over the fundamentals or particular frameworks. I wanted to see something implemented from scratch, and you delivered!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for the nice compliment :)
@derekbanas
@derekbanas 11 жыл бұрын
That is very nice to hear :) I wish I would have made complete tutorials from the beginning. I still have hundreds more in the works.
@derekbanas
@derekbanas 11 жыл бұрын
Sorry it took so long. I had to spend a few days adding more security to my site after the hacker attack :( Videos will come out on a regular basis now
@notthesame4935
@notthesame4935 6 жыл бұрын
Hands down, the best MVC example I've ever seen.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@derekbanas
@derekbanas 11 жыл бұрын
Thank you very much :) As you may be aware every tutorial guy dreams of making a perfect math tutorial that makes math easy for everyone to understand. I get asked to make one every day, but I don't want to do it unless I think I can improve on what has been done. I won't copy the Khan style. I go out of my way to avoid copying anyone. I'll keep dreaming about that perfect Math Tutorial Video
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) I will definitely cover web services. Sorry it is taking so long, but I'm doing my best to cover all the requests I've been getting
@shaffatshahriar8804
@shaffatshahriar8804 10 жыл бұрын
the best mvc tutorial i found on the internet... keep up the good work derek
@derekbanas
@derekbanas 10 жыл бұрын
Thank you very much :)
@mahmoodabuyahya9283
@mahmoodabuyahya9283 6 жыл бұрын
Excellent video, it explains MVC in a very straight forward way. Thanks
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@irianthul
@irianthul 11 жыл бұрын
Wow. For the past week I've been trying to understand it, with other students, books, the internet... And then my roommate directed me to you. I never knew it could be so simple. Thanks so much for existing and putting this out here for everyone to see!
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) I'm very happy that I could clear up MVC for you and your friend. Thanks for taking the time to tell me.
@derekbanas
@derekbanas 11 жыл бұрын
Thank you very much for the kind message :) The pleasure is all mine. I only do this because you guys have been very nice to me. I have no interest in money and I'll never sell anything.
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) I'd just go through the same process I described in the OOD tutorial. Then you'd have an object that represents your view or views. Make a bunch of models just like before. Then stick a controller object between the views and models. Give it a go. I'm not sure how to explain it other then to model them as real world objects. I hope that helped in some way.
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) I'm glad you liked it
@arthurmee
@arthurmee 11 жыл бұрын
Your tutorial library is becoming an invaluable resource.
@derekbanas
@derekbanas 11 жыл бұрын
I'm not a big believer in that there is a perfect book for everyone. C++ Primer Plus is considered to be the best as far as I know. If a book isn't working for you I'd move on to another one. It isn't easy to move from procedural to OOP programming. I made my Object Oriented Design tutorial to try and make the process easier. I don't know if you saw it or not. The first 2 videos may help you better understand OOP.
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) I'm happy you enjoyed it
@derekbanas
@derekbanas 11 жыл бұрын
Ich habe Deutsch zu sprechen, aber ich habe viele Worte vergessen. Ich kann mich noch stolpern meinen Weg durch Lektüre, aber ich benutze Übersetzungs-Tools für den größten Teil.
@derekbanas
@derekbanas 11 жыл бұрын
That is the highest praise I can receive :) Thank you I'm very happy to have helped
@evgeniykravchuck1228
@evgeniykravchuck1228 10 жыл бұрын
You have clear pronunciation. I think it will attract foreign audience. Very nice and easy to understand. Thank you!
@derekbanas
@derekbanas 10 жыл бұрын
Thank you :) Yes I'm very popular with people from other countries which I think is very cool.
@derekbanas
@derekbanas 11 жыл бұрын
Thank you very much for the compliment, but I can promise you I am no Einstein :) I do all the videos live and talk while I'm typing. Very little is pre-scripted. I normally work from a sequence diagram I draw in pencil. I prefer to write the code out of my head. That is done about 80% of the time
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) I don't have any problem with doing that.
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) I'm glad you found it useful
@jeffwei
@jeffwei 11 жыл бұрын
Thank you! This is exactly what I was looking for, all the other explanations (online and in my textbook) couldn't quite explain to me the exact function of the controller.
@KTYewTube
@KTYewTube 11 жыл бұрын
thanks for the tutorial. It helped me to understand the way MVC works. I liked how at the beginning you summarized the concept in general.
@derekbanas
@derekbanas 11 жыл бұрын
I'll incorporate MVC into the algorithm tutorial. I'll see what I can do on the web front. You're very welcome :)
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) I'm back on track now. My site was attacked constantly over the past few weeks and I added a ton of security. For some reason some people must not like my site
@derekbanas
@derekbanas 11 жыл бұрын
In part 21 I show how to use keylisteners
@derekbanas
@derekbanas 11 жыл бұрын
I'm very happy to be able to help :)
@derekbanas
@derekbanas 11 жыл бұрын
I always break down everything with sequence diagrams. I could never write most anything complex without them
@derekbanas
@derekbanas 11 жыл бұрын
Hi Eduardo, if I'm understanding what you're trying to do, I'd put the refresh method in the controller
@CEntuSify
@CEntuSify 9 жыл бұрын
This is probably the best Tutorial i´ve seen... yet.
@derekbanas
@derekbanas 9 жыл бұрын
***** Thank you :) I did my best
@derekbanas
@derekbanas 11 жыл бұрын
The main thing that hangs people up is the concept of action listeners normally. I have a bunch of swing tutorials in my Java video tutorial. Experiment with adding different components and how to catch events. If there is anything specific you are having trouble with ask. Normally most programming problems spring from the fact that people can't wrap their head around solving a problem on paper. My OOD tutorial will show you how to solve that
@Sinceridade
@Sinceridade 9 жыл бұрын
As a teacher, I should say: you were very didactic. Thank you and congratulations for the video quality.
@derekbanas
@derekbanas 9 жыл бұрын
Marcelo França I definitely don't try to teach in a patronizing way. Sorry about that.
@Sinceridade
@Sinceridade 9 жыл бұрын
Derek Banas And I didn't mean that.
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) I'll be using it in most of the upcoming videos now
@derekbanas
@derekbanas 11 жыл бұрын
I learned everything from books. I was learning about programming before the internet. I would make math / physics tutorials, but I want to know from you guys how I could improve on what the Khan Academy has done? I plan on making Android apps to go along with those types of tutorials. They'll be free. For games all you need is basic Newtonian physics, geometry, trig and algebra. If I was trying to learn something I'd just buy the highest rated book on the topic
@derekbanas
@derekbanas 11 жыл бұрын
The controller is going to perform a lot of event handling which it will then pass to the model. The controller can be looked at as an interpreter that helps 2 people communicate even though they speak a different language
@derekbanas
@derekbanas 11 жыл бұрын
I'll see how I can fit that into the upcoming tutorials. Thanks for the request
@derekbanas
@derekbanas 11 жыл бұрын
Thank you for taking the time to write such a nice message :) you're very welcome
@winwithapoorva
@winwithapoorva 11 жыл бұрын
Derek I simply love the tutorials you create! Your voice is very clear, video quality is outstanding and obviously the tutorial and Java stuff is cool!!!
@williamchisholm2032
@williamchisholm2032 4 жыл бұрын
Taught me what my teacher has been trying to teach for the past 3 classes in 13 minutes. Thank you lol
@derekbanas
@derekbanas 4 жыл бұрын
I'm very happy that I could help :)
@derekbanas
@derekbanas 11 жыл бұрын
There are many design patterns that are specific to web based java solutions. They will require an entire tutorial to explain. Look up something like the Spring Web MVC framework for the answer to your question to a certain extent
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) ill be covering MVC from many angles
@alekseikhokhrin5925
@alekseikhokhrin5925 8 жыл бұрын
Unfortunately, this is not MVC, but MVP, because Model interacts with View through Controller, and not directly
@derekbanas
@derekbanas 11 жыл бұрын
I set this example up so that the view doesn't know about the model. I heavily comment the code I link to on my site. Have you seen that?
@stepanlotv5699
@stepanlotv5699 7 жыл бұрын
Derek, can you please make more videos on Java Spring? Your tutorials are the best on KZbin. You talk at right speed, you clearly think about tutorial content in advance. You are a native speaker (I probably should have skipped the last one... ). Please explain what is DI/IoC/Dao and stuff like that.
@stepanlotv5699
@stepanlotv5699 7 жыл бұрын
Couple of comments about this tutorial. (1) You speak faster in other tutorials and that faster pace is (imho) better. (2) CLI interface would be more concise, but would explain MVC just as well.
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) I will cover C very soon for games. C++ will follow soon after. I did an Obj C tutorial a while back, but I was forced to take part of it down because I made a game to close to Doodle Jump. I get to it after I cover Android
@cortland8753
@cortland8753 5 жыл бұрын
Would love to see more MVC tutorials. I know this is sort of an old video but this is extremely comprehensive and I like your teaching style. Perhaps an updated MVC tutorial? One that expands from this one and is a bit more complex?
@derekbanas
@derekbanas 5 жыл бұрын
I'll see what I can do. Thank you :)
@AP-eh6gr
@AP-eh6gr 8 жыл бұрын
the most impressive part was that your view was made without the drag and drop that IDEs provide to simplify things a ton.... _/\_
@derekbanas
@derekbanas 11 жыл бұрын
You're very welcome :) Thank you for trying my videos.
@derekbanas
@derekbanas 11 жыл бұрын
Thank you :) I have a link to the code in the description for this video
Eclipse Shortcut Keys
17:15
Derek Banas
Рет қаралды 106 М.
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 63 МЛН
Фейковый воришка 😂
00:51
КАРЕНА МАКАРЕНА
Рет қаралды 7 МЛН
Which Software Architecture Should You Use: MVC, MVP, or MVVM?
24:27
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 807 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН
10 Design Patterns Explained in 10 Minutes
11:04
Fireship
Рет қаралды 2,3 МЛН
iPhone 16 Pro Max vs Samsung S24 Ultra Camera Battle!
16:44
Mrwhosetheboss
Рет қаралды 2,3 МЛН
Learn Dependency Injection and Write Better Code
21:52
Amigoscode
Рет қаралды 172 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 434 М.
Everything You NEED to Know About Client Architecture Patterns
5:51
What Is MVC? Simple Explanation
10:40
Traversy Media
Рет қаралды 514 М.
Java generics ❓
22:04
Bro Code
Рет қаралды 108 М.