Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Rapid application building method based on MVVM framework and computer equipment

A fast, framework technology, applied in computing, software engineering design, model-driven code, etc., can solve the problems of high system structure complexity, high update and maintenance costs, frequent interaction between views and presenters, etc., to improve work efficiency, The effect of reducing the development burden

Pending Publication Date: 2022-04-19
南京星云数字技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the relatively more widely used MVC (Model-View-Controler) and MVP architectures, MVC has not completely decoupled the view layer from the model layer, and the complexity of the system structure is still high. Later updates and The maintenance cost is high; MVP realizes the complete separation of the model and the view layer, but the rendering of the view layer is placed in the presenter layer, resulting in too frequent interaction between the view and the presenter

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Rapid application building method based on MVVM framework and computer equipment
  • Rapid application building method based on MVVM framework and computer equipment
  • Rapid application building method based on MVVM framework and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a schematic flowchart of a method for quickly building an application based on the MVVM framework disclosed in the embodiment of the present invention, refer to Figure 1 ~ Figure 4 As shown, the method includes:

[0031] Step S1, creating a project in a modular form;

[0032] Wherein, in step S1, an application project is created in a component or modular form, and at the same time, dependent libraries and version control information required by the project are configured.

[0033] Step S2, creating a basic module in the project, and creating the basic interface functions of the view layer and the view model layer of the basic module according to the MVVM architecture;

[0034] In step S2, a basic module is created in a modular form. The basic module is created based on the MVVM architecture, including the view layer, the view model layer, and the model layer, and may also include general components such as global configuration, general tool classes, a...

Embodiment 2

[0049] Figure 6 A schematic structural diagram of a computer device provided in Embodiment 2 of the present invention, such as Figure 4 As shown, the computer equipment includes a processor 40, a memory 41, an input device 42 and an output device 43; the number of processors 40 in the computer equipment can be one or more, Figure 4 Take a processor 40 as an example; the processor 40, memory 41, input device 42 and output device 43 in the computer equipment can be connected by bus or other methods, Figure 4 Take connection via bus as an example.

[0050] As a computer-readable storage medium, the memory 41 can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the MVVM framework-based application rapid construction method in the embodiment of the present invention. The processor 40 executes various functional applications and data processing of the computer device by running the software prog...

Embodiment 3

[0054] Embodiment 3 of the present invention also provides a computer storage medium storing a computer program, the computer program is used to execute the MVVM framework-based rapid application construction method described in any of the above embodiments of the present invention when executed by a computer processor: Create a project in a modular form; create a basic module in the project, and create the basic interface functions of the view layer and the view model layer of the basic module according to the MVVM architecture; encapsulate the basic interfaces of the view layer and the view model layer respectively The function obtains the base class of the base VM view layer and the base class of the base view model layer, and injects the base class of the base view model layer into the base class of the base VM view layer; encapsulates the base class of the base VM view layer twice, The basic view layer base class is obtained; other functional modules create specific view l...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a rapid application building method based on an MVVM framework. The method comprises the following steps: creating a project in a modular form; creating a basic module in the project, and creating a view layer of the basic module and a basic interface function of a view model layer according to an MVVM architecture; respectively packaging the basic interface functions of the view layer and the view model layer to obtain a basic VM view layer base class and a basic view model layer base class, and injecting the basic view model layer base class into the basic VM view layer base class; packaging the basic VM view layer base class for the second time to obtain a basic view layer base class; and other functional modules create specific view layer instances according to the basic view layer base class and the basic view model layer base class in the basic module. By adopting the method disclosed by the invention, the template code quantity can be effectively reduced, a developer can conveniently create a new module, perform function extension, project configuration and the like, and the development efficiency is improved.

Description

technical field [0001] The invention belongs to the technical field of computer software development, and in particular relates to a method for rapidly building applications based on an MVVM framework. Background technique [0002] With the increasing functions of application software on various platforms in the Internet era, software projects have gradually become larger, and the iteration and development of technology in the field of software development and project management has accelerated, and architectural concepts such as MVC, MVP, and MVVM have emerged as the times require. The design of different software architecture frameworks is to realize the decoupling of interface display and data processing, so that the project can achieve good maintainability even when it has a huge amount of code. At present, with the widespread application of componentized and modularized development models, the use of architectural frameworks will become more important, and the efficienc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/35G06F8/38
CPCG06F8/35G06F8/38
Inventor 袁汇东高云龙
Owner 南京星云数字技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products