Code reuse method and device

A code reuse and code technology, applied in the field of code reuse, can solve problems such as unfavorable centralized management, prone to compilation, complex operation, etc., to reduce maintenance costs, avoid difficult management and retrieval, and realize the effect of data

Inactive Publication Date: 2018-08-24
BANK OF CHINA
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of the present invention is to provide a method and device for code reuse to solve the problems in the prior art that the code reuse is complicated and prone to compilation errors, and it is not conducive to centralized management of code that can be reused. question

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 reuse method and device
  • Code reuse method and device
  • Code reuse method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0052] This embodiment discloses a method for code reuse, and the method for code reuse is applied to a host platform, see figure 1 , the embodiment includes the following steps:

[0053] S101. After receiving the code reuse command, obtain the code reuse module corresponding to the code identifier in the code reuse command from the pre-esta...

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 provides a code reuse method and device. According to the method, after a code reuse command is received, a code reuse module corresponding to a code identifier in the code reuse commandis acquired from a pre-established code reuse library, and the code reuse module is loaded. By inputting the code reuse command, a code needing to be reused can be found, and the code is loaded afterbeing converted according to designated rules; and since the operation of manually copying the code does not exist, the problem that a compiling error is caused by omission of a part of the code in the copying process is avoided, simple operation of code reuse and improvement in writing efficiency are realized, code reuse is centralized into the code reuse library, centralization of data is realized, and the situation that the data is distributed in all programs and is uneasy to manage and retrieve is avoided. Code styles are unified in the code reuse library, one modification can be used atmultiple positions, and maintenance cost is reduced.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a code multiplexing method and device. Background technique [0002] In the process of program development, it is often necessary to reuse previous codes to save a lot of time and cost, so as to complete the program development work in the shortest time. [0003] The usual way to achieve code reuse is that the programmer searches for the reusable code, and after finding the reusable code, obtains the reusable code from the program by copying, and then pastes it into the current development in the program. However, since the reusable code may have multiple lines and be scattered, the problem of missing part of the code is prone to occur during the copying process. [0004] The method for implementing code reuse in the prior art is not only complicated to operate but also prone to omission of some codes, resulting in compilation errors. At the same time, because th...

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/72
CPCG06F8/36G06F8/72
Inventor 陈志鹏
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products