Unlock instant, AI-driven research and patent intelligence for your innovation.

Code automatic generation method, medium, equipment and system

An automatic generation and code generation technology, applied in code compilation, program code conversion, database management system, etc., can solve problems such as low page reusability, weak code maintainability, and unguaranteed code quality, and achieve Reduce the workload of manual writing, improve the difficulty of code maintenance, and improve the effect of development efficiency

Active Publication Date: 2022-03-04
北京宇信科技集团股份有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the purpose of the embodiments of the present invention is to provide an easy-to-operate template development and automatic generation tool to solve the problems of repetitive work, long time-consuming, and page reusability in the development process of front-end developers. At least one technical problem in low code quality, unguaranteed code quality, weak code maintainability, etc.

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
  • Code automatic generation method, medium, equipment and system
  • Code automatic generation method, medium, equipment and system
  • Code automatic generation method, medium, equipment and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0090] like Figure 2A As shown, the automatic code generation method includes the following steps:

[0091] S110. Receive a new page request;

[0092] S120. Generate and present a visualized function page in response to the new page request;

[0093] S130. Obtain the page name and page description input by the user on the function page;

[0094] S140. Obtain a page template selected by the user based on the function page; specifically, this step may obtain multiple candidate templates from the template resource library, and generate a template selection interface or panel on the function page, and the template selection interface is configured to have a template The menu directory area and the template display area display the above-mentioned multiple candidate templates or their thumbnails in the template display area; in response to the user's trigger operation on the corresponding control in the template menu directory area, such as a click operation, display in the temp...

Embodiment 2

[0121] like image 3 As shown, the process of creating a dynamic template may include the following steps:

[0122] In the dynamic template creation, in the right-click menu, through the extension of the VScode configuration item, the personalized configuration menu function can be realized to realize the "automatically generate page" option, and in further embodiments, the "new page" and "database configuration" can also be realized. Any one or more menu options in "Generate Page" and "Multi-template Combination Stitching". When the user clicks the "Automatically Generate Page" menu option, vscode.postMessage sends initialization parameters, through which the correct user operation page is invoked or opened and rendered. The BaseWebviewPanel public class is called before the web container is opened.

[0123] S31. After selecting the "automatically generate page" option in the right-click menu, a configuration page (user operation page) is generated through the webView techn...

Embodiment 3

[0145] like Figure 4 As shown, the SQL database dynamic template creation process may include the following steps:

[0146] S41. Refer to Figure 10 , in the process of creating a SQL database dynamic template, in the right-click menu, through the extension of the VScode configuration item, the personalized configuration menu function is realized, and the "database configuration generation page" option is realized. When the user clicks the "database configuration generation page" menu option, Send initialization parameters through vscode.postMessage, which are used to invoke or open the correct user operation page and render it.

[0147] S42. After selecting the "database configuration generation page" option in the right-click menu, a visual configuration page (user operation page) is generated through the webView technology. The BaseWebviewPane public class is called before the web container is opened.

[0148] S43, such as Figure 11 As shown in , it receives the page ...

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 embodiment of the invention provides an automatic code generation method, a medium, equipment and a system. The method comprises the following steps: receiving a code generation request; generating a user operation page in response to the code generation request; acquiring user configuration information based on the user operation page; and generating a code according to the user configuration information. The embodiment of the invention provides a template development and automatic generation tool which is simple to operate, and can solve at least one technical problem of more repetitive work, long consumed time, low page reusability, incapability of ensuring code quality and weak code maintainability existing in the development process of a front-end developer.

Description

technical field [0001] The invention relates to the field of computer technology software, in particular to a code automatic generation method, medium, equipment and system. Background technique [0002] With the rapid development of computer technology and the continuous improvement of human needs, as well as the individual needs of different customers, the functions of software development have become more and more complex; coupled with the increasingly fierce market competition, the software development cycle has been continuously shortened. It brings more stringent requirements to software developers. [0003] In the traditional software development process, a large amount of source code needs to be written, and the source code has low reusability; the multi-member collaborative manual development method is not only time-consuming and laborious, but the quality of the code cannot be guaranteed; the inconsistent development style of each member makes later code maintenanc...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/34G06F8/41G06F16/25G06F16/28
CPCG06F8/34G06F8/447G06F16/252G06F16/284Y02D10/00
Inventor 孔庆丰朱玲英鲁阳琼谭奕欣
Owner 北京宇信科技集团股份有限公司