MVVM in 100 Seconds

2020 ж. 9 Жел.
142 660 Рет қаралды

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

Пікірлер
  • Which other concept do you want me to explain in 100 seconds?

    @PhilippLackner@PhilippLackner3 жыл бұрын
    • Hilt, Work manager, coroutines, room

      @arunm619@arunm6193 жыл бұрын
    • MVI

      @mohamedmustafa1893@mohamedmustafa18933 жыл бұрын
    • LiveData or StateFlow

      @FarrukhSaliev@FarrukhSaliev3 жыл бұрын
    • Retrofit

      @victorloveday2238@victorloveday22383 жыл бұрын
    • Flow, Coroutines, RecyclerView, Work manager, Jetpack datastore

      @Sc2MooDy@Sc2MooDy3 жыл бұрын
  • Damn this looks like a sh*t ton of work

    @codinginflow@codinginflow3 жыл бұрын
    • Took 8-10h 🥵

      @PhilippLackner@PhilippLackner3 жыл бұрын
    • 😂💔😂💔💔💔

      @hamidubawe4496@hamidubawe44963 жыл бұрын
    • @@PhilippLackner Thank you for all the hard work you put in! You simply are amazing :)

      @ShubhamSinghMusic@ShubhamSinghMusic3 жыл бұрын
    • @@PhilippLackner amazing stuff....writing code is not simple but writing simple code is hard

      @rahulmatte6621@rahulmatte66212 жыл бұрын
  • I understand and somewhat seen the clean architecture relevance in just 100 seconds. Amazing! Thanks for this great content.

    @unknown710@unknown7103 жыл бұрын
  • Love the quick explanations. It was all needed to learn the concept easy and quick! I prefer this over the other over complicated videos. ⭐️⭐️⭐️⭐️⭐️

    @kopilkaiser8991@kopilkaiser89917 ай бұрын
  • Awesome man. Never seen such awesomoe content that too within 2 minutes. You are great

    @gajendrapandeya5081@gajendrapandeya50813 жыл бұрын
  • Very simple,understandable and straight to the point🙌

    @edwinchukwuebuka895@edwinchukwuebuka895 Жыл бұрын
  • 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.

    @alinri@alinri3 жыл бұрын
    • Thanks!!

      @PhilippLackner@PhilippLackner3 жыл бұрын
  • it is quick yet understood better than other videos. Thank you. For this video I subscribed you channel.

    @user-dz8nk8oy9h@user-dz8nk8oy9h5 ай бұрын
  • Hey !! I have started my android development journey by your kotlin playlist ...which is just awsm 💯 🤩 great work bro ..! 😁😁

    @Mohit-il9gx@Mohit-il9gx3 жыл бұрын
  • cool video man, straight to the point!!!

    @alvaroisea2259@alvaroisea22593 жыл бұрын
  • Finally someone made it clear with no unnecessary vocabulary. Thanks!

    @kubapaluszak630@kubapaluszak630 Жыл бұрын
    • actually explanation sucks

      @sherifnabil50@sherifnabil509 ай бұрын
  • Great video, thanks and keep it up!

    @Sc2MooDy@Sc2MooDy3 жыл бұрын
  • very straightforward, saving lots of time

    @understand___@understand___ Жыл бұрын
  • 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.

    @amitray769@amitray7693 жыл бұрын
  • Awesome..hope to see more like this🙌

    @prashanthbhat4171@prashanthbhat41713 жыл бұрын
  • 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. ❤️🇮🇳

    @ramakrishnavjoshi@ramakrishnavjoshi3 жыл бұрын
  • Awesome!! Now I cant skip them.

    @prkofc@prkofc3 жыл бұрын
  • Woah this is awesome🔥🔥

    @joelvarghese3370@joelvarghese33703 жыл бұрын
  • The graphic of video is so good!!!

    @tommy9x@tommy9x2 жыл бұрын
  • The best 100 seconds of anything I've ever watched

    @yeadatwunyt8004@yeadatwunyt8004 Жыл бұрын
  • Very simple sir. Thanks sir.

    @JaykrushnaSolanki@JaykrushnaSolanki8 ай бұрын
  • Awesome video Make more like this

    @manishpingale6558@manishpingale65583 жыл бұрын
  • Very nice explanation

    @mitotv6376@mitotv63762 күн бұрын
  • Good explanation I could have used 2 years ago

    @ChrisAthanas@ChrisAthanas3 жыл бұрын
  • What a great video! thxxx

    @carlosneres8764@carlosneres87646 ай бұрын
  • Thanks a lot for this video.

    @nikhilagrawal9217@nikhilagrawal92174 ай бұрын
  • THIS IS EXACTLY WHAT WE NEED - gold

    @vladmkrtumyan1660@vladmkrtumyan1660 Жыл бұрын
  • Awsome explanation

    @ahmadiyoussef2121@ahmadiyoussef2121 Жыл бұрын
  • very clear thank you

    @husseinabdulkareem1146@husseinabdulkareem11464 ай бұрын
  • Thank you so much!

    @stillpickinganame5350@stillpickinganame5350 Жыл бұрын
  • Entendible, gracias Crack!!

    @neicat@neicat3 жыл бұрын
  • Thank you so much!.

    @sasidharan4460@sasidharan44603 жыл бұрын
  • U r awesome 👨‍💻

    @reshabprasad6793@reshabprasad67933 жыл бұрын
  • Inspired by Fireship?😄 Great content bro! I love it🔥

    @shanazar8557@shanazar85573 жыл бұрын
    • Not by Fireship but by a German channel that does something similar on another topic :D Thanks!

      @PhilippLackner@PhilippLackner3 жыл бұрын
  • amazing ...so much info in so less time

    @mkc0321@mkc03213 жыл бұрын
    • glad you like it

      @PhilippLackner@PhilippLackner3 жыл бұрын
  • Life saver 🙌

    @KDTechverse@KDTechverse8 ай бұрын
  • 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.

    @manuelsteele8030@manuelsteele8030 Жыл бұрын
    • 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.

      @EdKolis@EdKolis4 ай бұрын
  • Love the animation

    @thearpansircar@thearpansircar3 жыл бұрын
  • best explanation

    @cagneymoreau4216@cagneymoreau4216 Жыл бұрын
  • We want a series of Mvvm from you

    @hredaysagar7232@hredaysagar72323 жыл бұрын
  • THANK YOU

    @joelwisdom-peters5024@joelwisdom-peters50242 жыл бұрын
  • 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.

    9 ай бұрын
  • so nice video tnx

    @mohammadmirzakhanidehkordi8561@mohammadmirzakhanidehkordi85613 жыл бұрын
  • 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.

    @TZCoder@TZCoder3 жыл бұрын
    • Yes, Model, View, and Controller. What else can it be?

      @felixurrutia4246@felixurrutia42469 ай бұрын
  • Do you have MVVM only playlist - mvvm crash course ?

    @tommy9x@tommy9x2 жыл бұрын
  • please make a video about scope storage, there is almost no good videos on this topic tutorial

    @ahmetbiyik7392@ahmetbiyik73923 жыл бұрын
  • You have a very nice channel.

    @stefanosgiannakis7151@stefanosgiannakis71513 жыл бұрын
    • Thank you very much!

      @PhilippLackner@PhilippLackner3 жыл бұрын
  • WOW 🔥🔥

    @georgemamdouh9131@georgemamdouh91313 жыл бұрын
  • ¿How many viewmodels in a app? ¿Single or multiple for every module?

    @GabrielGongoraNavarrete@GabrielGongoraNavarrete5 ай бұрын
  • Epic!

    @shreyashchoudhary7413@shreyashchoudhary74133 жыл бұрын
  • thankyouble :)

    @user-be2cy2fb9u@user-be2cy2fb9u2 жыл бұрын
  • is the xml like the view and the kt file for the model and logic?

    @xphis0528@xphis0528 Жыл бұрын
  • Awesome

    @ProvakorKonik@ProvakorKonik3 жыл бұрын
  • nicee👌👌

    @terencejumba1939@terencejumba19393 жыл бұрын
  • Is there another video that explains how MVP or MVI would normally run on Android?

    @George-nx8zu@George-nx8zu Жыл бұрын
  • wow those animations

    @r1sh149@r1sh1493 жыл бұрын
  • budget fireship.io hehe. Loved it. Job well done!

    @dr.strangelav4579@dr.strangelav45793 жыл бұрын
    • Why only budget 😐😂

      @PhilippLackner@PhilippLackner3 жыл бұрын
  • 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

    @mehmedcavas3069@mehmedcavas30693 ай бұрын
    • 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.

      @MedioNoOficial@MedioNoOficial3 ай бұрын
  • Sir any new project video

    @somith16@somith163 жыл бұрын
  • Thank you so much♥️♥️

    @johndominicjasmin@johndominicjasmin2 жыл бұрын
  • And the business logic where is it? in the viewModel? in the repository? Maybe in the Use case? or in the entities?

    @carbaj03@carbaj033 жыл бұрын
    • Did you watch the video?

      @PhilippLackner@PhilippLackner3 жыл бұрын
    • ​@@PhilippLackner you're right, you mention in the viewmodel, good video by the way

      @carbaj03@carbaj033 жыл бұрын
  • 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.

    @ngangshamchemdok7567@ngangshamchemdok75673 жыл бұрын
    • To me not even the name makes sense. It should be model viewmodel view. MVMV

      @nesletchimaew9209@nesletchimaew92098 ай бұрын
    • 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

      @linnen_elm@linnen_elm6 ай бұрын
  • 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

    @macheeneraid230@macheeneraid2303 жыл бұрын
  • Hello fireship :)

    @vishalgaurav4411@vishalgaurav44113 жыл бұрын
  • should provide source code of the mentioned example at the same time, to indicate which part is M, V, VM..

    @leeeric6292@leeeric62926 ай бұрын
  • next video on how to implement MVVM pleasee.

    @codymaverick7381@codymaverick73813 жыл бұрын
    • He already has two playlists about that on his channel. Check it out.

      @victorloveday2238@victorloveday22383 жыл бұрын
  • @Fireship is that you??😂

    @hamidubawe4496@hamidubawe44963 жыл бұрын
    • I actually got inspired by a german physics channel who does the same

      @PhilippLackner@PhilippLackner3 жыл бұрын
    • Ohh that's great

      @hamidubawe4496@hamidubawe44963 жыл бұрын
  • 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.

    @thefattysplace@thefattysplace6 ай бұрын
    • 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Ай бұрын
    • I read more documents and I understand: business logics is for repository and UI logics is for View model

      @dmj8939@dmj89398 күн бұрын
    • @@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.

      @thefattysplace@thefattysplace8 күн бұрын
  • 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.

    @rizkiadisaputra5971@rizkiadisaputra59713 жыл бұрын
  • diffutil please 🥺

    @ashar9327@ashar93273 жыл бұрын
  • 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.

    @sherifnabil50@sherifnabil508 ай бұрын
    • Waiting for your video 🙌

      @PhilippLackner@PhilippLackner8 ай бұрын
  • 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...

    @BananaDynastyX@BananaDynastyX3 ай бұрын
  • Nice Explanation

    @shaiknagoorvali8983@shaiknagoorvali89833 жыл бұрын
KZhead