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

Code warehouse system based on labels

An object code and tag technology, applied in the field of tag-based code warehouse system, can solve the problems of wasting resources, unable to apply code logic, consuming large resources, etc., to avoid waste of resources, reduce network traffic, and reduce volume.

Pending Publication Date: 2021-02-26
上海睿成软件有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Based on the principle of the compilation and operation process itself, if there are too many functions, it will waste a lot of resources in the process of function addressing;
[0004] (2) Since the library it calls often has not only the required parts, but also a large number of parts that are not actually needed, the code needs to consume a lot of resources on the parts we don't need before running and compiling
[0005] Based on the above reasons, in the actual process, the method of code insertion is often used, that is to say, the content logic of the code is directly written into the source file to avoid the above problems, but this method is often intelligently designed and simple, such as if, Switch And other logical branch architectures cannot be applied to complex code logic. Taking Visual Studio as an example, it is limited to the insertion of simple code structures and does not involve code content.

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 warehouse system based on labels
  • Code warehouse system based on labels
  • Code warehouse system based on labels

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Such as figure 1 As shown, the present embodiment provides a label-based code warehouse system, including: a front-end user module (2), a search engine (3) and a code warehouse (4);

[0043]The front-end user module (2) is used to monitor the operation instructions of the integrated development environment (1);

[0044] The search engine (3) is configured to search the code warehouse (4) according to the operation instruction to obtain the target code fragment and the target code label corresponding to the operation instruction, and store the target code fragment and the The object code label is sent to the integrated development environment (2) for display by the integrated development environment (1);

[0045] The front-end user module (2) is configured to insert the target code fragment into the code file according to the further operation instruction after display.

[0046] In traditional code editing work, code reuse is generally achieved through function calls. ...

Embodiment 2

[0053] Based on Embodiment 1, this embodiment provides a tag-based code warehouse (4) system, and further includes: a code submission and labeling module (5), used for submitting the code file when submitting the code file The code storage fragments are tagged, so as to obtain the corresponding storage tags, and the code storage fragments and storage tags are sent to the code warehouse (4) for storage.

[0054] In this embodiment, in the process of building the code warehouse (4), the label is generally marked when the code is submitted. Specifically, when the user submits the code fragment through the integrated development environment (1) , the user interface of the integrated development environment (1) will show the user which tags are available for selection through the UI interface, and guide the user to select the tags, so as to obtain the appropriate tags. For example, a code fragment is written in JAVA , its role is to provide login logic for the OA system, which can ...

Embodiment 3

[0056] Based on Embodiment 2, this embodiment provides a label-based code warehouse (4) system, and the front-end user module (2) specifically includes:

[0057] A keyword retrieval submodule (2-1), configured to obtain a code prefix according to the position of the cursor in the integrated development environment (1), and input the code prefix as a keyword into the search engine (3) to search.

[0058] In this embodiment, the code fragments in the code warehouse (4) are generally retrieved by keywords. Specifically, when the code fragments are constructed, the code fragments will be given a name, and the user can input the code The code fragment can be obtained by the name of the fragment, and the code fragment can also be obtained by specifically retrieving the content of the code fragment.

[0059] Preferably, it also includes: a label retrieval submodule (2-2), which is used to obtain the corresponding target code label according to the label selection operation in the op...

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 code warehouse system based on labels. The code warehouse system comprises a front-end user module, a search engine and a code warehouse, the front-end user module is used for monitoring an operation instruction of the integrated development environment; the search engine is used for searching a code warehouse according to the operation instruction so as to obtain a target code fragment and a target code label corresponding to the operation instruction, and sending the target code fragment and the target code label to the front-end user module for the integrated development environment to display; and the front-end user module is used for inserting the target code snippet into the code file according to a further operation instruction after display. The system hasthe technical effects that the code warehouse is retrieved by monitoring the user operation, and the corresponding code snippets and code tags are obtained and inserted into the code files, so that on one hand, the computer resources are saved, the computing power requirement of compiling is reduced, and on the other hand, resource waste caused by function addressing is avoided, and on the otherhand, code insertion of the logic content is realized.

Description

technical field [0001] The invention relates to software development, in particular to a tag-based code warehouse system. Background technique [0002] In traditional code editing work, code reuse is generally achieved through function calls. For example, if a function is used very frequently, it is used as a part of the library. Taking the C++ standard library as an example, it is easy to encapsulate A large number of commonly used functions, such as input and output, data structure and other common functions, are called for use. However, due to the method of calling the function, there are the following disadvantages: [0003] (1) Based on the principle of the compilation and operation process itself, if there are too many functions, it will waste a lot of resources in the process of function addressing; [0004] (2) Since the library it calls often has not only the required parts, but also a large number of parts that are not actually needed, the code needs to consume a...

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/36G06F8/71G06F16/332G06F16/338
CPCG06F8/36G06F8/71G06F16/332G06F16/338Y02D10/00
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