Understanding MVVM Design Pattern

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

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

  • @yanndetaf5725
    @yanndetaf5725 4 года назад +38

    For me that's the most best explanation, i founded in Internet about mvvm. Everything explained with SIMPLE words and examples. Very good Job. Thank you

  • @w.a.2016
    @w.a.2016 2 года назад

    Best explanation the MVVM concept on RUclips, look no further people.

  • @محمدبنسراجالدين
    @محمدبنسراجالدين 5 лет назад +16

    Great note at 6:30. The one where you mentioned that the view model isn’t responsible for calling a data base or a web api. Some people put everything in the view model. Also a nice tip about the model presenter pattern.

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

      What would be the place for calling a data base or a web api. your input

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

      @@Raj01061985 In a seperate layer and injected into viewmodel using DI

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

      @@Raj01061985 create a seperate layer of classes for api call or database handling which direclty interacts with model.. so those changes can be tracked inside viewmodel which finally are shown on view.

  • @kyung.lee.official
    @kyung.lee.official 3 года назад +2

    Awesome video, you explained MVVM even kids can understand it. Thank you, lifesaver!
    Web API

    Model ↔ ViewModel ↔ View

    Database

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

    Thanks for the straightforward explanation. It's hard to find videos that don't assume a certain level of background knowledge-in my case, I have none when it comes to developing GUIs. Thank you for the great video.

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

    Thanks for this video, it was really concise and understandable.

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

    You're very good at explaining concepts clearly! A true trait most lack! Thank you

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

    The most concise and understandable explanation, complete with clear and thorough examples. Thank you so much.

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

    This video is top notch. best one on the web I guarantee it! Nice job!

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

    Thanks 👍, first time in years I got such beautiful explaination

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

    Thanks Azam. You did a really good job of explaining the MVVM model clearly.

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

    Very clearly explained.Please make a video on MVC and MVP.

  • @rohan-rj1ft
    @rohan-rj1ft 3 года назад

    this is a great practical explanation.

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

    This is one of the clearest explanation I found about this. Thank you!
    Can you please explain the MVP pattern as well? Or if you already have a link to it? cheers!

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

    Great Explanation sir , Thank you😊

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

    I don’t know why I disliked it🤷‍♂️, getting back and pressing like 👍

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

    Thank you. Very good for a beginner like me.

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

    Fantastic explanation!

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

    AWESOME EXPERIENCE

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

    100% for explanation. Liked. Subscribed. Turned on notifications. Heading to Udemy!

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

    The best explanation !!!!!!!!!! thanks x 100

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

    Thanks for putting this together. I come from a web development background (mostly Ruby), and I'm just now getting into Swift. I love these types of videos. Would you agree when I say that a ViewModel is similar to a controller? Particularly with SwiftUI. I feel that Views should focus on presentation and that the responsibility of communicating with the database/API should be done in the controller and/or view model.

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

      I wouldn't say that ViewModel is similar to VC. It does feel sometimes but the main purpose of the VM is to provide data and also work with the state of the view.

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

      @@azamsharp That makes a lot of sense. It sounds like controllers would then be separate from the view model.

  • @mb-ql1gb
    @mb-ql1gb 4 года назад

    Great explanation! Thank you!

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

    if the view is used to update the database that was the source for the model, does that flow from the view, to the view model, to the model, and then to the database? I ask because you said "the only job of a view model is to provide the data to the view and also keep track of the different state changes of the view". Sorry, i'm a novice. Seeking clarification.

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

    ty good explaination

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

    Great work !!!

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

    At 6:27, shouldn't the movie stored property be private? I think it would encapsulate it better.

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

    Nicely explained!!

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

    hi , where can i put api call request and data parsing ? will it be inside view controller or in model ?

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

      Vipul Dungranee inside the http client or web service client

    • @1402ram
      @1402ram 4 года назад

      Where do we call that httpclient from?

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

      @@1402ram from VM

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

    Thank you!

  • @1402ram
    @1402ram 4 года назад

    where to call the api...if it’s a separate class should viewmodel consume it

    • @0xDEAD_Inside
      @0xDEAD_Inside 4 года назад

      Api calls are done by model in background

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

    When i start with AvaloniaUI i just was not able to get some thing just because i had no idea how ts all disigned, but after i watched this video all things become clear.
    (I am not native speaker sorry if there is some errors)