I would argue that MVVM is important throughout the lifecyle of app development irrespective of size or complexity. All the frameworks we have today are designed to produce interested groups of people within a domain such as data modelling, frontend programmers etc. Software tools have been designed to serve these groups further seperating the disconnect between the data model and use cases. I am working on a new shift in this thinking with the development of the Paintology app which makes use of the model that I am talkng about. The technology is based on Java/Kotlin, Firebase and cloud functions.
@headoverbars8750
3 жыл бұрын
Holy cow man!! super easy, now I get it Thanks for this!!!
@0ttt3R
4 жыл бұрын
If you're looking for a good intro to MVVM with C# then this video really misses the mark!
@Bensmithgardening
2 жыл бұрын
Yeah explains nothing... then just ends
@ignaciohernandezcorrea5385
3 жыл бұрын
lovely explanation, thanks
@heraldo623
4 жыл бұрын
Regarding the tests, I think you do end-to-end or integration tests and discards unit tests. One drawback is that you may write a lot of code before be able to test anything, in case of end-to-end testing you must develop the whole thing! With that you are not able to catch errors earlier, so you may spend time developing a broken software. Another drawback is that it will be hard to spot the broken code in case of bugs, with unit tests you can spot easily which object of the system is broken and do it early in development.
@techdan7098
4 жыл бұрын
Great introduction to the MVVM concept with the benefit of going more in-depth for a small fee. I heard some controversial statements start at about 2:15 but besides that it's still a great introduction. People on here complaining about it being a preview to a paid course should try making some videos themselves. Love the fact that there was some code shown here.
@shaihulud4515
4 жыл бұрын
Mosh, wouldl you say, the use of MVVM (use it when you want unit testing) also applies for desktop applications with wpf? I currently try to wrap my head around this, and I am kinda frustrated. Coding is a well loved hobby of mine, but wpf gives me the creeps, when it comes to MVVM. I own some of your courses over at Udemy. I would LOVE to see a indepth course about wpf, MVVM and a database application (SQLite would be perfect, because most hobby coders don't need or use client based databases).
@chitol1
2 ай бұрын
This is the best comment/assessment on NVVM
@stevengao8345
5 жыл бұрын
thanks for this tutorial, isn't when you use mvvm you can apply different view to same model, like within a table view some row may display different stuff from another ? kinda new to MVVM, or maybe MVC can do the same thing. thanks
@MissionFailed2
Жыл бұрын
"What is MVVM"? "Well, you got Code-behind, Xamarin, and POCOs!" "Thanks!"
@MohitRajput-nd3rr
2 жыл бұрын
Lovely explanation ,thnx
@ConquerJS
6 жыл бұрын
Can I ask what software you use to make those simple animated diagrams with elements that fade in and out?
@coeurderockeur871
3 жыл бұрын
PowerPoint
@mr.es1857
6 жыл бұрын
well i know that this question would out of context but... i´m having problems when i try too shutdown my app im using the property of ShutdownMode in the App.xaml. Putting it's value to "OnLastWindowClose" and it does't work. When i close the app and look for it in my computers task manager i can see that the app is running in second plane. other question is : How can i work with the events of controls like a button or something like that ?? i know how to usea aa "command" to treat the simple click event but in mvvm how do we treat the other events ???
@mosth8ed
5 жыл бұрын
I am new to using MVVM, but even I know there are more and better reasons to use MVVM than simply "if you want to write tests". Then for this to simply be an ad for a paid course, that definitely does not give me confidence that the course would be worth my time, especially a paid course, when there are plenty of great free ones out there which (based purely on your ad here) are probably a more complete and well rounded and open minded explanation of all the reasons and ways you might want to use MVVM. That is just what I gathered from this ad though. Mind you, I was also forced to watch an ad... in order to watch this ad...
@mosth8ed
5 жыл бұрын
@@programmingwithmosh Certainly. While I may be new to MVVM in general, I always research everything heavily before I jump into it. I have been programming in various languages for many different tasks, primarily scripting for system and infrastructure related things but most recently the last 2 years or so using Unity for game development. What I have learned from reading various forums, writeups, and from friends who are more familiar with it is that it is especially useful to adopt this pattern for code reusability, overall maintainability, more flexibility in terms of how things can work due to the implementation of proper bindings, as well as making things more friendly in the event your application is ever worked on collaboratively, such as if you open source your application, or bring on a team member, etc. These are, of course, in addition to making it easier to implement testing of your code. So to me, you saying "only use MVVM if you are going to want to test your code" simply seems like incomplete/bad advice.
@mosth8ed
5 жыл бұрын
@@programmingwithmosh I can't personally speak to all of these, but I can say when it comes to maintainability, collaboration and flexibility (and partially your reply to code reusability) that having the abstraction without the code-behind certainly makes things a lot less troublesome for a developer as well as a UI/UX designer. It seems like you are just completely dismissing just how much of a difference it can make saving time and frustration when you spend a bit more time abstracting these. If you are just a developer and not great at the design aspect of things, it is much easier and a lot less likely something is going to require the developer to fix things on their end if they hand over the view parts of the application to someone to make it look good for them, say if you have your application and you hire a freelancer from Fiverr or similar site to spruce it up for you and make it nice. It doesn't necessarily have to be a replacement of the entire UI framework, but there are more options even if it appears that those are the only ones. A few I can think of at the current moment would be avaloniaui.net/ (Windows, Mac, Linux, iOS, and Android) and "QML.Net". While you may not have ever intended for any of these things to change if your application becomes much more popular than you anticipated it might require some or all of these things to occur. I have not had much experience with it yet, but I have been looking over caliburnmicro.com/ and was in process of looking over some videos about it, it certainly seems like it certainly would cut down on a lot of the extra physical code and time needed to implement this kind of pattern. Just because these things have not been useful to you personally doesn't mean the reasons do not exist and I find it hard to believe that the MV* patterns have been growing in popularity simply due to testing.
@prakashshukla8595
4 жыл бұрын
my mvvm simple notes app github.com/prakashshuklahub/Simple-Notes-Kotlin-App
@jayocaine2946
Жыл бұрын
@@mosth8ed MVVM in unity? Lmao. That is a hoot and a hollar
@mosth8ed
Жыл бұрын
@@jayocaine2946 It was definitely less about the MVVM aspect, and more about the waste of time video.
@heraldo623
4 жыл бұрын
MVVM decouples the display from the displayed data, so you can have several displays (even throught different UI libraries) that shows the same data (ViewModel). Tests are not optional, they are a must for professionals. Only an amateur lets the software break on production. I would not buy a course just to see a "Hello World" of MVVM.
@zerosandones7547
2 жыл бұрын
is "structural" and "architectural" pattern used interchangeably?
@benjamingarrard9821
3 жыл бұрын
I have to disagree with the concept here that a ViewModel is only good for unit tests. It is more for separation of concerns and scalability. This video nails it kzitem.info/news/bejne/ratomqCQrIejmJw and this video kzitem.info/news/bejne/q4CKl6yvpJhil6Q is in the ballpark but is more related to Entities and Data Transfer Objects, which IMO, takes the View out of the equation and is just between two models, one that is exposed to the database and one that is exposed to the user. Long story short, both videos show that there are more practical use cases than just unit testing.
@Kirtle
2 жыл бұрын
Thank you! The first link helped me a ton
@r1pfake521
6 жыл бұрын
I just wasted 10 minutes to watch this video, only to find out that it is just a "preview" of a paid course.
@MrMartinZockt
6 жыл бұрын
Thank you. You saved me 10 Minutes. 😀👍
@PRIMALmarauder
6 жыл бұрын
R1PFake saved me 7.5 minutes since I watched a bit first.
@TinNovaDesign
6 жыл бұрын
Thanks for the warning!
@davidkhokhar8604
6 жыл бұрын
Well it was 10 minutes well spent for me. There is enough detail and content to give me an insight into his teaching style and the course is $19. There are many dedicated individuals the provide programming information for free and it is a testament to them. However it does not make pay-for-content any less useful for me. In fact I am more than happy to financial reward someone who provides good content, especially when it only costs me the equivalent of 4 coffee's
@ibrahimnada4702
5 жыл бұрын
Hes Explained The Concept of MVVM (why,when) to use it.
@hansregli8678
Жыл бұрын
The reason for needing a ViewModel is missing another point: If you have a VM you can save the state of your app easily if the app is quit and reload it. I never coded any app without a VM just for this reason. The Testing ability is another quality, but 90% of the testing is done with the Model, not the ViewModel.
@mahdimdh4459
3 жыл бұрын
really good video why a lot of dislikes?
@kitsurubami
4 жыл бұрын
up until 4:24 is valuable complete information. i upvote this video for that. if you watch until 10 after ignoring how he tells you that every part after 4:24 is a preview of paid content, that's your own fault.
@m3xpl4y
3 жыл бұрын
@Programming with Mosh Thank you
@blackasthesky
3 жыл бұрын
I feel like this video's title does not match the content.
@lordkrythic6246
4 жыл бұрын
In case anyone wants to cut out all the unnecessary bullshit. MVVM is just hooking classes or lists up to the UI, so when you update the class or list, it updates the UI, or when you edit the UI it updates the class or list. Don't know why people can't just say that, but it's probably because no one actually knows what they're talking about.
@warrior100girl
3 жыл бұрын
Thank you for clarification. This video was too confusing.
@lordkrythic6246
3 жыл бұрын
@@warrior100girl No problem. Happy coding!
@elandaloussiishrak9262
5 жыл бұрын
Ok for unit testing problems but I dont think that MVVM is useful just for unit testing
@eugenea8264
2 жыл бұрын
Users are not the ones you are writing your code for. It is other programmes and yourself in the future, when you would need to do an extra feature and you would need to read and understand your old code before making the changes. Some people thing that they are writing code for computers, some other thing that they write their code for users... NO and NO.
@wildone2163
5 жыл бұрын
finally somebody clearly said this - mvvm is a waste of time if you don't want to use unit testing.
@charliezz10
6 жыл бұрын
Really good and really helpful would of preferred if you left the fody thing till the end like u said u where going to i understand u don't want the video to be to long but would of been nice to seen it without the helper. Really helped me understand MVVM though thanks !
@thistruckthor5212
6 жыл бұрын
Mosh is angular version 5 MVVM? MVW?
@timhogston2717
3 жыл бұрын
This is good, I would like to see more videos on this.
@hopefree260
5 жыл бұрын
اقا کارت خیلی درسته .داداش تو که از خودمونی به زبان فارسیم بزار تا از جزییاتش بیشتر اگاه شیم
@somayehsheikhi7839
4 жыл бұрын
@@programmingwithmosh لهجه ی شما خوشبختانه کاملا قابل فهم است و کلی هم کلمه ی جدید هم زبان برنامه نویسی میشه یاد گرفت. مرسی
@MrFixBroken
5 жыл бұрын
Would have liked to see your refactoring. Didn't realize this was a money making operation.
@ianpaul0520
4 жыл бұрын
This does not make sense to me..
@anchalchaudhary949
6 жыл бұрын
I can't see any zip file
@ianschoenrock2285
6 жыл бұрын
This is more or less a sample video from his course. If you buy his course then the zip files will be provided.
@FuzzyDPozzy
3 жыл бұрын
i disagree, if you learn wrong from the start you will always go wrong. thats why you start with mvvm and learn it properly so in the end of the line you will learn and unit testing and everything. A new knowledge is never a bad thing
@PAXvideo
2 жыл бұрын
I disagree. As a self taught programmer you can definately learn wrong and then learn correct. Learning from mistakes is what makes us...us.
@olmanmora21
6 жыл бұрын
Who would write a non-unit-testable real application nowadays? It's like shoot in your own food, unit test is not expensive if you compare it with a useless endless-patches app. If you are writing a prototype o very small app, fine, but a middle-big app think again.
@heraldo623
4 жыл бұрын
I think he does only end-to-end or integration tests. The downside is that you must write much code before be able to test anything, in case of end-to-end test you must develop the whole thing! With that you are not able to catch errors early, so you may spend time developing a broken software.
@nimamiryeganeh2676
5 жыл бұрын
kheili bahali baradar, vaghean karet doroste !
@oulaalshiekh3474
5 жыл бұрын
Why paid courses ? :((((( i used to learn with you ,but now disappointed only ,one free good vedio
@grcvgcvcbh6999
6 жыл бұрын
What is better for working in big company c# or php
@grcvgcvcbh6999
6 жыл бұрын
Programming with Mosh I ask u .. for ur answer
@grcvgcvcbh6999
6 жыл бұрын
Programming with Mosh So job market says php leads to bad and unstabile job compared to c#
@grcvgcvcbh6999
6 жыл бұрын
AND c# is more in demand and pays more LOL
@IlemonaJamesAtuluku
6 жыл бұрын
Grcvgc Vcbh both is good but C# is definitely better. It all depends on the company practice
@Akshaykumar-zf5ht
4 жыл бұрын
Upload xamarin forms tutorial
@alexwenger9655
2 жыл бұрын
Damn I wish I knew if people liked this video or not. Sure would be helpful to know the like to dislike ratio...
@krunalpanchal6137
3 жыл бұрын
laughed so hard he sai user needs application that work hahaha
@josediogo1015
3 жыл бұрын
isnt this the guy that stole alvin and the other chipmunks?
@Funkfreed
3 жыл бұрын
Wasted my time, everybody can say that MVVM are model, view and viewmodel in 1 minute. Such a shame we didn't get to see what exactly MVVM looks like in a project structure.
@petergartner1322
2 жыл бұрын
Understand nothing and I am senior developer
@aeronraymanriza8208
5 жыл бұрын
What a scam.
@MrPhrenzy
3 жыл бұрын
Waist of ti
@chrisp7783
4 жыл бұрын
To all those who complain about having to pay money to train. I would need a website soon. Are there any of you who do this for me for free? I certainly won't pay anything either.
@dzbuzzfeed908
5 жыл бұрын
This is a waste of time
@dzbuzzfeed908
5 жыл бұрын
@@programmingwithmosh Because a portion of the information presented here is misleading and wrong one of them which is already mentioned in the comment section you should know that You should use MVVM, to decouple the data from the visual representation. It makes your code not only testable but upgradable and portable. Without it, your code-behind can break if you decide to change your views significantly. Also, you will have to duplicate code if target different platforms or use a different view depending on the screen size. and even if your code is simple you should use MVVM when possible. It's a waste of 10 minutes because there are other resources where the 10 minutes could be spent on accurate information.
@user-xx3zj3xb9b
2 жыл бұрын
Dislike. Please preface your video with "this is a teaser for a PAID course" mkay thank you
@rakeshmehra6321
4 жыл бұрын
I don't understand a thing he teaches. No matter how hard I try!
@bosthebozo5273
3 жыл бұрын
How many ads does it take to get through a 10 minute video? A LOT apparently. Are you jewish?
Пікірлер: 101