MVVM in 100 Seconds

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
the bigger our software gets the harder it is actually to keep the overview and therefore it is crucial that we give our projects a good structure which usually means a separation of concerns we want to separate the ui the business logic and the data source so that we and our colleagues can easily and quickly understand the software that we can easily extend it with more features and that we can easily test it that's where architectural design patterns come into play when it comes to android apps mvvm is the most popular one it stands for model view view model let's take a look at this recipe app the model represents the data source which is often represented by a repository that just collects all data in one central place that can be data from a database data from a remote api or just data from both the view model contains the business logic business logic is just the real program logic that isn't just updating a ui element so for example filtering a list or validating user input the view model is in direct communication with the model to get access to the data it needs lastly the view is the visible part of the app it contains all ui elements and gets events from the view model when it should update its views important is that the view shouldn't contain any business logic it should only contain logic to directly manipulate views together this is a powerful pattern that makes your software scalable easily understandable and testable
Info
Channel: Philipp Lackner
Views: 73,384
Rating: undefined out of 5
Keywords: android, tutorial, philip, philipp, filipp, filip, fillip, fillipp, phillipp, phillip, lackener, leckener, leckner, lackner, kotlin, mobile, mvvm, architecture, 100seconds, 100, shorts, android studio, animation
Id: -xTqfilaYow
Channel Id: undefined
Length: 1min 42sec (102 seconds)
Published: Thu Dec 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.