VRB News
Virtual Reality Brisbane
  • Home
  • About us
  • IT news
  • Tech
  • World
  • Contact
No Result
View All Result
  • Home
  • About us
  • IT news
  • Tech
  • World
  • Contact
No Result
View All Result
No Result
View All Result
Home IT news

What does MVVM mean?

admin by admin
April 29, 2022
in IT news
0
In the MVVM pattern, the view model isolates the view from the model, so that the model can be further developed independently of the view.
0
SHARES
123
VIEWS
Share on FacebookShare on Twitter

Definition “Model View ViewModel ” What does MVVM mean?

Model-View-ViewModel (MVVM) is an architectural pattern or pattern from software development. The primary goal is the strict separation between graphical interface representation, presentation logic and business logic

In the MVVM pattern, the view model isolates the view from the model, so that the model can be further developed independently of the view.

MVVM is an architectural pattern that can be used to implement a clear separation between business logic and interface in complex projects. To put it simply, one should try to separate different functionalities cleanly from each other during programming, which belong together technically, but are located on different layers of the program.

Accordingly, the display of data on the visible surface must, for example, be separate from the logic that invisibly regulates data access in the background. MVVM was developed by Microsoft and is a variation of the “Model View Controller” pattern or the Model View Presenter (MVP) pattern.

Functional separation of data access and display

The pattern provides for the logic to be decomposed into three components: Model, View and ViewModel.

Fashion model

The model takes on tasks related to data storage. For example, it can request data from a data source, abstract data in the sense of the application, or validate data. The model provides data to the application or receives data for transfer to other services, for example, for saving to a database. It is typical that classes from the model work together with other technologies that take over the access and storage of data, e.g. services.

View

The view has only the graphical representation on the surface as its task. It therefore represents information and is responsible for the appearance of the user interface. To do this, it uses the information that is prepared and made available in the ViewModel. The source code of the view contains above all the structures that are necessary to display the desired information. It is possible that the view also contains small sections of code that directly influences the display of the information, because, for example, the purely structural preparation is not sufficient for the desired presentation. In addition, the View can communicate changes to the ViewModel, e.g. when a user clicks or writes something.

ViewModel

The ViewModel builds a bridge between Model and View. This is the logic that is needed for the presentation of the data on the surface. The logic listens to the user’s input and, if necessary, can execute the corresponding presentation logic. It requests the data that the view needs for the display or transmits information from the interface to the model where the business logic takes place. The ViewModel can also pass new or changed information to the view at runtime and thus ensure that the displayed data is always up-to-date.

Advantages of MVVM

With clean implementation, the MVVM architecture pattern offers certain advantages for the development of complex applications.

Interchangeable and independent components

View and ViewModel can be exchanged or changed without ever having to touch the model. The basic functions for data access remain untouched until you really have to intervene specifically at this point. This is convenient because the preparation and display of information can be optimized or completely renewed as desired, while the underlying functionality remains unchanged. Conversely, the business logic can be worked on without necessarily having to change the interface.

There is also the option to create different views for a ViewModel with little effort, e.g. to realize different views. Instead of using several views and ViewModels, it is only necessary to create the representation of the interface in different variants.

Improved testability

Testing complex systems as one large unit is complicated and unreliable as the only test method. The logics for surface and data storage are already neatly separated from each other by MVVM anyway. This makes it much easier to carry out more detailed tests. For example, you can view the ViewModel completely detached from View and Model. You do not have to try to cover all scenarios on the surface, but can work with clearly defined unit tests in each module. Thus, with less effort and section by section, it can be checked whether everything works as desired from a technical point of view.

Simplified teamwork

Since the interface and business logic take place in separate modules, developers and UI designers can work independently on the same component if necessary. While the programmer is busy with Model and ViewModel, the UI designer can prepare the graphical interface undisturbed. View and ViewModel can be connected after completion.

Minuses

Working with MVVM is a bit more complex, especially in the area of data binding and communication between the components. Also, MVVM only works well if the separation is really clean and some things do not get into the wrong component for convenience, e.g. presentation logic in the view.

Previous Post

Oculus is preparing a public beta program for future updates

Next Post

 Hardly anyone knows what an NFT is

admin

admin

Related Posts

How to Grow a YouTube Channel with ScaleLab
IT news

How to Grow a YouTube Channel with ScaleLab: Effective Strategies for Creators

February 4, 2025
Sticker mockups
IT news

Sticker mockups: how to visualize your ideas professionally and efficiently

January 13, 2025
Ways to Get Free Senegal Proxies for Work and Surfing
IT news

Ways to Get Free Senegal Proxies for Work and Surfing

December 24, 2024
Crypto Betting Frontiers
IT news

Crypto Betting Frontiers: The 2025 Landscape

December 6, 2024
iGaming Marketing Trends for 2025
IT news

iGaming Marketing Trends for 2025: Adapting to a Rapidly Changing Landscape

December 5, 2024
Next Post
 Hardly anyone knows what an NFT is

 Hardly anyone knows what an NFT is

Premium Content

Vuze XR, a dual camera compatible with VR180 and 360 formats

Vuze XR, a dual camera compatible with VR180 and 360 formats

February 19, 2022
Binance Kurs Prognose: 274 USD bis Ende 2022; 1814 USD bis 2030

Binance price forecast: $274 by the end of 2022; $1814 by 2030

July 28, 2022
Bundeskanzler Scholz im Bundestag.

Nephews of Olaf Scholz file for bankruptcy

July 12, 2022

Browse by Category

  • Games
  • IT news
  • Tech
  • World

VRB News is ready to cooperate with webmasters and content creators. Send an email to info@virtualrealitybrisbane.com

Categories

  • Games
  • IT news
  • Tech
  • World

Recent Posts

  • How to Grow a YouTube Channel with ScaleLab: Effective Strategies for Creators
  • Sticker mockups: how to visualize your ideas professionally and efficiently
  • Ways to Get Free Senegal Proxies for Work and Surfing

© 2023 - The project has been developed ServReality

No Result
View All Result
  • Home
  • About us
  • IT news
  • Tech
  • World
  • Contact

© 2023 - The project has been developed ServReality

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?