MVVM architecture
First, let me clarify that although we are learning about MVVM architecture here, this is not the only solution. There are many alternatives. We are just introducing one of the patterns and the whole methodology. Rest assured: you need to explore the other architectures out there, learn a few of them, and be able to select the one most suitable for you based on the context and application requirements. With that being said, let’s explore the MVVM architecture itself. MVVM stands for Model, View, View Model and is one of the popular software architectures that enables application developers to separate the application logic from the business logic and allows us to build scalable applications as business needs change. Let’s first learn what MVVM is and how it works.
The basic idea here with MVVM is to create a bridge between the data that you get from an external service and the application’s view so that either of these can change irrespective...