Source code management multiplexing method
Technical Field
The invention relates to the field of computer programming, in particular to a source code management multiplexing technology capable of realizing rapid development in system research and development.
Background
The source code management multiplexing technology means that a programmer can automatically bring out codes and a database in a source code library according to the needs of a project in the project development so as to achieve the purpose of multiplexing the source codes. Currently, source code management multiplexing techniques are blank. When a programmer develops a new program design, the following method is mainly adopted: the original development experience is utilized to split and copy from the local project, and then the split and copy are multiplexed into the program being written; acquiring codes from an open source project website, and multiplexing the codes into a program being written; the source code is obtained by a search engine or the like and reused in the program being written. However, the way of acquiring the source code needs to be manually switched back and forth among the integrated development IDE, the browser and the local project, continuously adjust the query statement and manually search for similar source codes, which takes a lot of time, is inconvenient and is easy to make mistakes.
In the traditional source code multiplexing, the user needs to continuously jump back and forth in a webpage or a local project, and the programmer often loses the patience of the multiplexing code; secondly, query sentences need to be continuously adjusted and similar source codes need to be manually searched, automatic source code extraction is difficult to achieve, and programmers can spend a great deal of time and energy; programmers need to rely on past project experience to find effective available source codes, the source codes are difficult to filter and screen quickly and effectively, and effective refinement is difficult to obtain; moreover, when source code files are found, the source code files need to be merged again in a manual mode, and a database needs to be generated manually, so that the efficiency is difficult to improve.
Disclosure of Invention
The invention aims to provide a source code management multiplexing method, which has the advantages of realizing source code multiplexing and improving the working efficiency of development so as to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
a source code management multiplexing method comprises the following steps:
step S1: defining a source code type according to the conditions of reusability, expandability, industry range, use scenes and the like of the source code;
step S2: arranging a source code file, including a source code program file and a database script file, selecting industry information and other remark information, and inputting the industry information and the other remark information into a source code management library;
step S3: the programmer submits a use application in a source code management library according to the use condition of the project;
step S4: after the application is reviewed by the source code management library, the source code management library is automatically configured and combined according to a set algorithm, and a project file and a database file are created and generated and stored in the source code management library;
step S5: the new project generated by combination becomes a new source code and is automatically filed in the source code management library.
As a still further scheme of the invention: the source code types are divided into the following six types: front end: the project built by the pure front-end framework does not contain the business logic code II form: basic form documents, such as personnel files, inspection reports and the like module: a complete module function, including front and back end codes, most of which can run independently the function of (4): one specific functional method of the front-end or back-end, for example: upload multiple accessories, import supplier data frame: a complete project, including front and back end codes and database files, and others: auxiliary tools, etc.
As a still further scheme of the invention: the source code program file and the database script file need to be arranged according to a specified good format, when the source code program file and the database script file are called, the source code management library takes out the source code program according to an algorithm and combines the source code program and the source code program into codes, and meanwhile, a corresponding database, a table, a view and a storage process can be generated according to the database script.
As a still further scheme of the invention: the industry information and other remark information need to be selected well according to actual conditions, and when the industry information and other remark information are reused in the later period, the algorithm can perform correlation matching on the industry information and other remark information according to projects.
As a still further scheme of the invention: the project condition needs to be well associated with industry information and other remark information, so that the algorithm association is facilitated; because the source code management library is related to confidentiality and security, the downloading and the use can be confirmed through an approval process.
As a still further scheme of the invention: the project file created by the algorithm comprises programs of a front end and a back end, and an interface layer and a tool class used for associating the front end and the back end.
As a still further scheme of the invention: the database created by the algorithm is automatically created by a set database script and comprises a database, a table, a view, a storage process and the like; the field names, field lists and primary foreign key relationships in the tables are automatically generated and associated.
As a still further scheme of the invention: the project files created by the algorithm are combined to generate new projects which become new source codes and are automatically filed in a source code library.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention stores the source codes in a unified classification way, standardizes the management and storage safety of the source codes and is convenient for obtaining and calling later-stage algorithms.
2. According to the source code application submitted by a programmer, the method and the system can automatically configure and combine the source code application with the industry information and other remark information, create and generate the project file and the database file, can shorten the project progress, and improve the development work efficiency.
3. The project source code files generated by the invention can be automatically combined and combined according to the algorithm, and folders, configuration programs and associated tool classes required by projects can be created in the process; thereby really realizing source code multiplexing.
Drawings
Fig. 1 is a flowchart of the development and usage process of the source code management multiplexing method of the present invention.
FIG. 2 is a flowchart of the development steps of the source code management multiplexing method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-2, in an embodiment of the present invention, a source code management multiplexing method includes the following steps:
step S1: defining a source code type according to the conditions of reusability, expandability, industry range, use scenes and the like of the source code;
step S2: arranging a source code file, including a source code program file and a database script file, selecting industry information and other remark information, and inputting the industry information and the other remark information into a source code management library; specifically, the industry information and other remark information need to be selected well according to actual conditions, and when the industry information and other remark information are reused at a later stage, an algorithm can perform correlation matching on the industry information and other remark information according to projects; furthermore, the project condition needs to be well associated with industry information and other remark information, so that the algorithm association is facilitated; because the source code management library relates to confidentiality and security, the source code management library can be used only after being confirmed by an approval process;
step S3: the programmer submits a use application in a source code management library according to the use condition of the project;
step S4: after the application is reviewed by the source code management library, the source code management library is automatically configured and combined according to a set algorithm, and a project file and a database file are created and generated and stored in the source code management library;
step S5: the new project generated by combination becomes a new source code and is automatically filed in the source code management library.
When the programmer is developing the project, the steps can be repeated according to the requirement of the project until the program is written.
The source codes are uniformly classified and stored, so that the management and storage safety of the source codes are standardized, and the later-stage algorithm is convenient to obtain and call; according to the source code application submitted by a programmer, the system and the method can automatically configure and combine the source code application with industry information and other remark information, create and generate a project file and a database file, can shorten the progress of a project, and improve the working efficiency of development; the project source code files generated by the invention can be automatically combined and combined according to the algorithm, and folders, configuration programs and associated tool classes required by projects can be created in the process; thereby really realizing source code multiplexing.
In a preferred embodiment of the present invention, the source code types are divided into the following six types: front end: the project built by the pure front-end framework does not contain the business logic code II form: basic form documents, such as personnel files, inspection reports and the like module: a complete module function, including front and back end codes, most of which can run independently the function of (4): one specific functional method of the front-end or back-end, for example: upload multiple accessories, import supplier data frame: a complete project, including front and back end codes and database files, and others: auxiliary tools, etc.
In a preferred embodiment of the invention, the source code program file and the database script file need to be arranged according to a specified good format, when the source code program file and the database script file are called, the source code management library takes out the source code program according to an algorithm and combines the source code program and the source code program into a code, and meanwhile, a corresponding database, a table, a view and a storage process are generated according to the database script; further, the project file created by the algorithm comprises programs of a front end and a back end, and an interface layer and a tool class for associating the front end and the back end; furthermore, a database created by the algorithm is automatically created by a set database script and comprises a database, a table, a view, a storage process and the like; the field names, the field list and the main foreign key relations in the table can be automatically generated and associated; further, project files created by the algorithm are combined to generate new projects, and the new projects become new source codes and are automatically filed in a source code library.
According to the source code application submitted by a programmer, the system and the method can automatically configure and combine the source code application with industry information and other remark information, create and generate a project file and a database file, can shorten the progress of a project, and improve the working efficiency of development; the project source code files generated by the invention can be automatically combined and combined according to the algorithm, and folders, configuration programs and associated tool classes required by projects can be created in the process; thereby really realizing source code multiplexing.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes in the embodiments and/or modifications of the invention can be made, and equivalents and modifications of some features of the invention can be made without departing from the spirit and scope of the invention.