MVVM in 100 Seconds

Sdílet
Vložit
  • čas přidán 9. 12. 2020
  • Today you will learn what MVVM actually is in only 100 seconds.
    ⭐ Get certificates for your future job
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/premium-courses...
    Regular Android tutorials on my Instagram: / _philipplackner_
    Checkout my GitHub: github.com/philipplackner

Komentáře • 128

  • @PhilippLackner
    @PhilippLackner  Před 3 lety +40

    Which other concept do you want me to explain in 100 seconds?

  • @codinginflow
    @codinginflow Před 3 lety +70

    Damn this looks like a sh*t ton of work

    • @PhilippLackner
      @PhilippLackner  Před 3 lety +36

      Took 8-10h 🥵

    • @hamidubawe4496
      @hamidubawe4496 Před 3 lety +1

      😂💔😂💔💔💔

    • @ShubhamSinghMusic
      @ShubhamSinghMusic Před 3 lety +4

      @@PhilippLackner Thank you for all the hard work you put in! You simply are amazing :)

    • @rahulmatte6621
      @rahulmatte6621 Před 2 lety +2

      @@PhilippLackner amazing stuff....writing code is not simple but writing simple code is hard

  • @unknown710
    @unknown710 Před 3 lety +1

    I understand and somewhat seen the clean architecture relevance in just 100 seconds. Amazing! Thanks for this great content.

  • @kopilkaiser8991
    @kopilkaiser8991 Před 8 měsíci

    Love the quick explanations. It was all needed to learn the concept easy and quick! I prefer this over the other over complicated videos. ⭐️⭐️⭐️⭐️⭐️

  • @gajendrapandeya5081
    @gajendrapandeya5081 Před 3 lety +2

    Awesome man. Never seen such awesomoe content that too within 2 minutes. You are great

  • @edwinchukwuebuka895
    @edwinchukwuebuka895 Před rokem +2

    Very simple,understandable and straight to the point🙌

  • @alinri
    @alinri Před 3 lety +30

    Awsome, I have never seen a video or an article that defines this concept as goog as you. Thanks for all of your hard works.

  • @user-dz8nk8oy9h
    @user-dz8nk8oy9h Před 6 měsíci

    it is quick yet understood better than other videos. Thank you. For this video I subscribed you channel.

  • @alvaroisea2259
    @alvaroisea2259 Před 3 lety

    cool video man, straight to the point!!!

  • @Mohit-il9gx
    @Mohit-il9gx Před 3 lety +5

    Hey !! I have started my android development journey by your kotlin playlist ...which is just awsm 💯 🤩 great work bro ..! 😁😁

  • @kubapaluszak630
    @kubapaluszak630 Před rokem

    Finally someone made it clear with no unnecessary vocabulary. Thanks!

  • @Sc2MooDy
    @Sc2MooDy Před 3 lety

    Great video, thanks and keep it up!

  • @prashanthbhat4171
    @prashanthbhat4171 Před 3 lety

    Awesome..hope to see more like this🙌

  • @understand___
    @understand___ Před rokem

    very straightforward, saving lots of time

  • @prkofc
    @prkofc Před 3 lety

    Awesome!! Now I cant skip them.

  • @yeadatwunyt8004
    @yeadatwunyt8004 Před rokem

    The best 100 seconds of anything I've ever watched

  • @ramakrishnavjoshi
    @ramakrishnavjoshi Před 3 lety +3

    Can you make a video on a generic MVVM design pattern and then tell us how it is sensible for Android. Lots of Love from India. ❤️🇮🇳

  • @tommy9x
    @tommy9x Před 2 lety

    The graphic of video is so good!!!

  • @joelvarghese3370
    @joelvarghese3370 Před 3 lety

    Woah this is awesome🔥🔥

  • @manishpingale6558
    @manishpingale6558 Před 3 lety

    Awesome video
    Make more like this

  • @carlosneres8764
    @carlosneres8764 Před 6 měsíci

    What a great video! thxxx

  • @JaykrushnaSolanki
    @JaykrushnaSolanki Před 9 měsíci

    Very simple sir. Thanks sir.

  • @amitray769
    @amitray769 Před 3 lety +2

    Thank you so much. this is one of the best videos I have seen for the mvvm pattern in so less time.
    So what I learnt here is:
    model is the data source.
    View model contains the business logic
    and view contains only the UI manipulation part.

  • @shanazar8557
    @shanazar8557 Před 3 lety +2

    Inspired by Fireship?😄
    Great content bro! I love it🔥

    • @PhilippLackner
      @PhilippLackner  Před 3 lety +2

      Not by Fireship but by a German channel that does something similar on another topic :D Thanks!

  • @ChrisAthanas
    @ChrisAthanas Před 3 lety +1

    Good explanation I could have used 2 years ago

  • @nikhilagrawal9217
    @nikhilagrawal9217 Před 5 měsíci

    Thanks a lot for this video.

  • @stillpickinganame5350

    Thank you so much!

  • @husseinabdulkareem1146
    @husseinabdulkareem1146 Před 5 měsíci

    very clear
    thank you

  • @sasidharan4460
    @sasidharan4460 Před 3 lety

    Thank you so much!.

  • @neicat
    @neicat Před 3 lety +1

    Entendible, gracias Crack!!

  • @vladmkrtumyan1660
    @vladmkrtumyan1660 Před rokem

    THIS IS EXACTLY WHAT WE NEED - gold

  • @mitotv6376
    @mitotv6376 Před 29 dny

    Very nice explanation

  • @ahmadiyoussef2121
    @ahmadiyoussef2121 Před rokem

    Awsome explanation

  • @KDTechverse
    @KDTechverse Před 9 měsíci

    Life saver 🙌

  • @mkc0321
    @mkc0321 Před 3 lety

    amazing ...so much info in so less time

  • @hredaysagar7232
    @hredaysagar7232 Před 3 lety

    We want a series of Mvvm from you

  • @reshabprasad6793
    @reshabprasad6793 Před 3 lety +1

    U r awesome 👨‍💻

  • @thearpansircar
    @thearpansircar Před 3 lety

    Love the animation

  • @manuelsteele8030
    @manuelsteele8030 Před rokem +4

    I am new to iOS Apps and have been reviewing a Quiz App on a Udemy tutorial done with MVVM and SwiftUI (not storyboards). I know the "Model" can just be the definition of the regular data struct. Next, the View defines the main view, child views, etc. The "View Model" on that course fills the data using the structs from the Model. Then it adds event handling code for the quiz for correct or incorrect selections. The View Model seems somewhat similar to the "controller" in the MVC model taught for old school Java Android apps or Java Servlets (circa 2013 - lol). But I understand there is controversy among MVVM on whether if it is valid for production. For the simple quiz on that Udemy tutorial, MVVM clearly works. But perhaps for more complicated production scenarios MVVM has its limits? If so, then what is a better solution of architecture? I am going to dive into the threads and articles soon to analyze that. This is just a thought on observations. I am still in the early learning stages on iOS App development. I have worked with Java and C# off-and-on for decades. I have used python heavily the past 8 years. It's fun to learn different development environments and code for iOS Apps.

    • @EdKolis
      @EdKolis Před 4 měsíci

      The view model is similar to the controller from MVC; if I'm not mistaken, MVVM was invented as an improvement on MVC because the controller was too abstract and caused the code to be hard to read, as a single controller could tie together numerous views and models that are only superficially related. But a view model is more specifically targeted and works with a specific view and model, the downside being you could wind up writing several view models that do basically the same thing if you're not careful.

  • @lewispil3529
    @lewispil3529 Před dnem

    awesome video

  • @cagneymoreau4216
    @cagneymoreau4216 Před rokem

    best explanation

  • @joelwisdom-peters5024
    @joelwisdom-peters5024 Před 2 lety

    THANK YOU

  • @mohammadmirzakhanidehkordi8561

    so nice video tnx

  • @ProvakorKonik
    @ProvakorKonik Před 3 lety

    Awesome

  • @stefanosgiannakis7151
    @stefanosgiannakis7151 Před 3 lety

    You have a very nice channel.

  • @user-be2cy2fb9u
    @user-be2cy2fb9u Před 2 lety

    thankyouble :)

  • @r1sh149
    @r1sh149 Před 3 lety +1

    wow those animations

  • @shreyashchoudhary7413
    @shreyashchoudhary7413 Před 3 lety

    Epic!

  • @ahmetbiyik7392
    @ahmetbiyik7392 Před 3 lety

    please make a video about scope storage, there is almost no good videos on this topic tutorial

  •  Před 10 měsíci

    MVC with different terminology? This explanation matches my understanding of MVC.
    I read that a difference between MVC and MVVM is how the observer pattern is used by the view so that the view doesn't have knowledge of the controller. I would argue that the observer pattern is a controller, since if you've ever worked with UML MVC diagrams it's clear that you can have multiple controllers and are able to chain them. That would make the View a View-Controller-Model where "Model" here is the representation of the UI state, then the "ModelView" and Model a Model-Controller-Model pattern where the first occurrence of "Model" is again the UI state and the second occurrence of "Model" is the repository. Did I understand correctly or am I missing something?
    If I did understand this correctly, it seems odd that MVVM is described as an alternative to MVC rather than as a specific pattern built atop the constructs of MVC.

  • @georgemamdouh9131
    @georgemamdouh9131 Před 3 lety

    WOW 🔥🔥

  • @TZCoder
    @TZCoder Před 3 lety +12

    An interesting thing is that Google themselves dont consider the architecture they recommend to be MVVM! If you look at the jetpack architecture guide you will not find MVVM there and I have heard some of the Android team devs flat out reject that its MVVM, but the community seems to have decided it is, which goes to show some of the subjectivity involved in these type of things, so if you are confused don't stress it and do what allows you to get work done.

    • @felixurrutia4246
      @felixurrutia4246 Před 10 měsíci

      Yes, Model, View, and Controller. What else can it be?

  • @tommy9x
    @tommy9x Před 2 lety +1

    Do you have MVVM only playlist - mvvm crash course ?

  • @terencejumba1939
    @terencejumba1939 Před 3 lety

    nicee👌👌

  • @GabrielGongoraNavarrete
    @GabrielGongoraNavarrete Před 5 měsíci +1

    ¿How many viewmodels in a app? ¿Single or multiple for every module?

  • @dr.strangelav4579
    @dr.strangelav4579 Před 3 lety

    budget fireship.io hehe.
    Loved it.
    Job well done!

  • @George-nx8zu
    @George-nx8zu Před rokem

    Is there another video that explains how MVP or MVI would normally run on Android?

  • @xphis0528
    @xphis0528 Před rokem

    is the xml like the view and the kt file for the model and logic?

  • @johndominicjasmin
    @johndominicjasmin Před 2 lety

    Thank you so much♥️♥️

  • @macheeneraid230
    @macheeneraid230 Před 3 lety

    actually, up until now, i still not sure what does MVP and MVVM difference. I mean, layman term it is exactly the same.
    its just, MVVM uses livedata while MVP uses listeners

  • @codymaverick7381
    @codymaverick7381 Před 3 lety

    next video on how to implement MVVM pleasee.

    • @DroidChief
      @DroidChief Před 3 lety

      He already has two playlists about that on his channel. Check it out.

  • @vishalgaurav4411
    @vishalgaurav4411 Před 3 lety

    Hello fireship :)

  • @carbaj03
    @carbaj03 Před 3 lety

    And the business logic where is it? in the viewModel? in the repository? Maybe in the Use case? or in the entities?

    • @PhilippLackner
      @PhilippLackner  Před 3 lety

      Did you watch the video?

    • @carbaj03
      @carbaj03 Před 3 lety

      ​@@PhilippLackner you're right, you mention in the viewmodel, good video by the way

  • @ngangshamchemdok7567
    @ngangshamchemdok7567 Před 3 lety +2

    I still can't wrap my head around, when exactly does the app become mvvm. I understand the different components that is in an Mvvm project, but i always fail to completely wrap my head around how all those components come together. Watched soo many videos regrading mvvm, but still can't draw a line in my head that seperates any other architecture project from mvvm architecture project.

    • @nesletchimaew9209
      @nesletchimaew9209 Před 9 měsíci

      To me not even the name makes sense. It should be model viewmodel view. MVMV

    • @linnen_elm
      @linnen_elm Před 7 měsíci

      Agree. Easy to understand my ass... i have this source code pointing to firebase and shjts... there is no way this is easy to understand by sparating shjts. No one ever called this particular codes easy to understand.. even the author himself LMAO

  • @somith16
    @somith16 Před 3 lety

    Sir any new project video

  • @leeeric6292
    @leeeric6292 Před 7 měsíci

    should provide source code of the mentioned example at the same time, to indicate which part is M, V, VM..

  • @mehmedcavas3069
    @mehmedcavas3069 Před 4 měsíci

    whats the difference between mvvm and mvc. I mean the viemodel does the same thing like a controller. controller handles the model and fires events if something changes. views can listen to them and update them

    • @MedioNoOficial
      @MedioNoOficial Před 4 měsíci +1

      In MVC controller receive the requests and serve the view to the client (a generated html) through http. In ViewModel there is not http requests, it only binds DAO with UI in a more centralized way, specially in mobile apps.

  • @hamidubawe4496
    @hamidubawe4496 Před 3 lety +1

    @Fireship is that you??😂

  • @rizkiadisaputra5971
    @rizkiadisaputra5971 Před 3 lety

    I HATE WHEN i found some tutorial make noobiest hard to understand what the heck is MVVM, I watched this tutorial without coding implementation but I understand what mvvm is.

  • @ashar9327
    @ashar9327 Před 3 lety

    diffutil please 🥺

  • @sherifnabil50
    @sherifnabil50 Před 9 měsíci +1

    The reason this is a poor explanation is that it does not compare and contrast it with non MVVM architecture.
    People understand in contrasts. We know night because its the opposite of day. We understand death because we see life.
    The only way to understand MVVM is to put it side by side with non MVVM. Thats the best way to understand anything.

  • @thefattysplace
    @thefattysplace Před 7 měsíci +18

    This is incorrect. Business logic should be in the model, not the viewmodel. The viewmodel just adapts/validates the data between the view and model and notifies of changes between the two.

    • @dmj8939
      @dmj8939 Před 2 měsíci +3

      In the MVVM (Model-View-ViewModel) architecture pattern, business logic should be implemented in the ViewModel instead of the Model. The main reason for this choice is that the ViewModel is responsible for mediating the communication between the View and the Model and acts as an intermediary layer between them.
      In MVVM, the Model is responsible for data handling and presenting data without any business logic. In other words, the Model handles data modeling, database logic, and communication with the database, while the ViewModel implements business logic, complex calculations, input control, data validation, and any other business processing.
      Therefore, you should implement business logic, complex calculations, input control, data validation, and any type of business processing in the ViewModel. This approach helps you separate concerns and keep the View free from handling business logic, ensuring a clean separation of responsibilities in your Android app.

    • @dmj8939
      @dmj8939 Před měsícem +1

      I read more documents and I understand: business logics is for repository and UI logics is for View model

    • @thefattysplace
      @thefattysplace Před měsícem

      @@dmj8939 Correct. That way, business logic is kept at a separate layer to the UI. Only things directly related to the UI should be in the view model.

    • @thebowshock7729
      @thebowshock7729 Před 17 dny

      ​@@thefattysplace Repositories are not business logic

    • @thefattysplace
      @thefattysplace Před 17 dny

      @@thebowshock7729 an odd comment as no one mentioned repositories. But they can be, if your business logic is in a repository!

  • @BananaDynastyX
    @BananaDynastyX Před 4 měsíci

    Definitely don't put your business logic in the VM...That's what the model is for... Putting your business logic in the VM just turns it into glorified code behind...

  • @shaiknagoorvali8983
    @shaiknagoorvali8983 Před 3 lety

    Nice Explanation