CN112130829A - Program development method, device, equipment and storage medium - Google Patents

Program development method, device, equipment and storage medium Download PDF

Info

Publication number
CN112130829A
CN112130829A CN202010864805.6A CN202010864805A CN112130829A CN 112130829 A CN112130829 A CN 112130829A CN 202010864805 A CN202010864805 A CN 202010864805A CN 112130829 A CN112130829 A CN 112130829A
Authority
CN
China
Prior art keywords
topic
target
source code
thematic
development
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010864805.6A
Other languages
Chinese (zh)
Inventor
许少龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202010864805.6A priority Critical patent/CN112130829A/en
Publication of CN112130829A publication Critical patent/CN112130829A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a program development method, a device, equipment and a storage medium, and belongs to the technical field of program development. The method comprises the following steps: acquiring thematic data corresponding to a target thematic, wherein components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data include configuration parameters of each component included in the target thematic; acquiring a source code of a topic development system to which the target topic belongs; and injecting thematic data corresponding to the target thematic into a main entrance of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing supplementary development on other requirements except the part of requirements in the target program. The technical scheme provided by the embodiment of the application can improve the efficiency of program development.

Description

Program development method, device, equipment and storage medium
Technical Field
The present application relates to the field of program development technologies, and in particular, to a program development method, apparatus, device, and storage medium.
Background
In practical application, some requirements solidified in a program can be abstracted into components and stored in a component library of a thematic development system, when a program developer develops the program, the components can be selected from the component library of the thematic development system according to each requirement of the program to be developed, a thematic is generated by using the selected components, the thematic is a developed program, and then, the program can be released in a thematic release mode through the thematic development system.
However, in practical applications, the number of components in the component library of the topic development system is limited, and it is difficult to cover all program requirements, and when there are no components corresponding to some requirements in the program to be developed in the component library of the topic development system, a developer needs to give up using the components in the component library of the topic development system for program development, and needs to perform complete autonomous development, which seriously affects the efficiency of program development.
Disclosure of Invention
Based on this, the embodiments of the present application provide a program development method, apparatus, device and storage medium, which can improve the efficiency of program development.
In a first aspect, a method for developing a program is provided, the method comprising:
acquiring thematic data corresponding to a target thematic, wherein components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data include configuration parameters of each component included in the target thematic; acquiring a source code of a topic development system to which the target topic belongs; and injecting thematic data corresponding to the target thematic into a main entrance of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing supplementary development on other requirements except the part of requirements in the target program.
In one embodiment, injecting the topic data into a main entry of the source code to obtain a candidate source code includes:
injecting the thematic data into a main entrance of the source code to obtain an intermediate source code; and removing redundant codes in the intermediate source codes according to the components included in the target topic, wherein the redundant codes are not the source codes corresponding to the components included in the target topic.
In one embodiment, obtaining the source code of the topic development system to which the target topic belongs includes:
receiving an operating environment corresponding to the target topic input by a user; receiving a special topic platform corresponding to the target special topic input by a user; and inquiring and acquiring the source code of the topic development system to which the target topic belongs based on the operating environment and the topic platform.
In one embodiment, obtaining topic data corresponding to a target topic includes:
receiving the identification information of the target topic input by a user; inquiring a special subject database according to the identification information of the target special subject, wherein special subject data corresponding to at least one special subject is stored in the special subject database; and acquiring thematic data corresponding to the target thematic according to the query result.
In one embodiment, obtaining the topic data corresponding to the target topic according to the query result includes:
if the identification information of the target topic is stored in the topic database, the topic data corresponding to the identification information of the target topic and stored in the topic database is used as the topic data corresponding to the target topic; if the identification information of the target topic is not stored in the topic database, returning data acquisition failure information.
In one embodiment, the method further comprises:
starting a pre-installed command line tool;
correspondingly, the acquiring of the thematic data corresponding to the target thematic includes: acquiring thematic data corresponding to the target thematic through the command line tool;
the method for acquiring the source code of the topic development system to which the target topic belongs comprises the following steps: acquiring a source code of a topic development system to which the target topic belongs through the command line tool;
injecting the topic data corresponding to the target topic into a main entrance of the source code to obtain a candidate source code, wherein the candidate source code comprises: and injecting the thematic data corresponding to the target thematic into a main entrance of the source code through the command line tool to obtain the candidate source code.
In one embodiment, the method further comprises:
and releasing the codes obtained after the supplementary development based on a special topic releasing mode.
In a second aspect, there is provided a program development apparatus including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring thematic data corresponding to a target thematic, components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data comprises configuration parameters of each component included in the target thematic;
the second acquisition module is used for acquiring a source code of the topic development system to which the target topic belongs;
and the third acquisition module is used for injecting the thematic data corresponding to the target thematic into a main inlet of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing supplementary development on other requirements except the part of requirements in the target program.
In one embodiment, the third obtaining module is specifically configured to: injecting the thematic data into a main entrance of the source code to obtain an intermediate source code; and removing redundant codes in the intermediate source codes according to the components included in the target topic, wherein the redundant codes are not the source codes corresponding to the components included in the target topic.
In one embodiment, the second obtaining module is specifically configured to: receiving an operating environment corresponding to the target topic input by a user; receiving a special topic platform corresponding to the target special topic input by a user; and inquiring and acquiring the source code of the topic development system to which the target topic belongs based on the operating environment and the topic platform.
In one embodiment, the first obtaining module is specifically configured to: receiving the identification information of the target topic input by a user; inquiring a special subject database according to the identification information of the target special subject, wherein special subject data corresponding to at least one special subject is stored in the special subject database; and acquiring thematic data corresponding to the target thematic according to the query result.
In one embodiment, the first obtaining module is specifically configured to: if the identification information of the target topic is stored in the topic database, the topic data corresponding to the identification information of the target topic and stored in the topic database is used as the topic data corresponding to the target topic; if the identification information of the target topic is not stored in the topic database, returning data acquisition failure information.
In one embodiment, the apparatus further comprises an initiating module; the starting module is used for: starting a pre-installed command line tool;
correspondingly, the first obtaining module is specifically configured to: acquiring thematic data corresponding to the target thematic through the command line tool;
the second obtaining module is specifically configured to: acquiring a source code of a topic development system to which the target topic belongs through the command line tool;
the third obtaining module is specifically configured to: and injecting the thematic data corresponding to the target thematic into a main entrance of the source code through the command line tool to obtain the candidate source code.
In one embodiment, the apparatus further comprises a publishing module;
the issuing module is configured to: and releasing the codes obtained after the supplementary development based on a special topic releasing mode.
In a third aspect, there is provided a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the program development method as described in any one of the first aspects above.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the program development method as described in any one of the first aspects above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps of obtaining thematic data corresponding to a target thematic, wherein a component included in the target thematic corresponds to part of requirements in a target program to be developed, the thematic data corresponding to the target thematic includes configuration parameters of each component included in the target thematic, then obtaining a source code of a thematic development system to which the target thematic belongs, then injecting the thematic data corresponding to the target thematic into a main inlet of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing complementary development on the requirements except for the part of requirements in the target program, so that the components in a component library of the thematic development system can be used for developing the part of the requirements in the target program to be developed in the process of program development to obtain the target thematic, and meanwhile, on the basis of the target thematic, a candidate source code is generated for developers to perform complementary development on the requirements except for the part of the requirements in the target program As a result, when there is no component corresponding to some requirement in the target program to be developed in the component library of the topic development system, the target program does not need to be completely developed autonomously, and only a part of the requirements that are not supported by the components in the component library of the topic development system in the target program can be developed autonomously, so that the efficiency of program development can be improved.
Drawings
FIG. 1 is a schematic illustration of an implementation environment in which embodiments of the present application are related;
fig. 2 is a flowchart of a program development method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an exemplary topic development system operating interface provided by an embodiment of the application;
FIG. 4 is a schematic diagram of an exemplary component selection and setup interface provided by embodiments of the present application;
fig. 5 is a flowchart of an exemplary technical process for acquiring source code of a topic development system to which a target topic belongs according to an embodiment of the present application;
fig. 6 is a flowchart of an exemplary technical process for acquiring topic data corresponding to a target topic according to an embodiment of the present application;
fig. 7 is a block diagram of a program development apparatus according to an embodiment of the present application;
FIG. 8 is a block diagram of another program development device provided in an embodiment of the present application;
fig. 9 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In practical applications, some requirements solidified in the program can be abstracted into components in order to avoid redundant development cost caused by repeated development. For example, in many Web programs, a picture presentation requirement exists, and in order to avoid repeated development by different Web program developers for the picture presentation requirement, the picture presentation requirement may be abstracted into a component, which may be referred to as a picture component.
The abstracted components can be stored in a component library of a thematic development system, when a program developer develops the program, the components can be selected from the component library of the thematic development system according to each requirement of the program to be developed, the selected components are used for generating a thematic, the thematic is the developed program, and then the program can be released in a thematic release mode through the thematic development system.
For example, if a certain Web program to be developed has a picture display requirement, a developer of the Web program may select a picture module from a component library of the topic development system, and configure the picture module accordingly, for example, configure a component title of the picture module, a color of the component title, a picture to be displayed by the picture module, and the like.
In practical applications, however, on one hand, the number of components in the component library of the topic development system is limited, and it is difficult to cover all program requirements, and on the other hand, developing a new component alone needs to consider the call relationship, interface relationship, etc. between the newly developed component and the existing components in the component library, the complexity is usually high, and the code writing logic of the component and the interface of the component are usually special, so that the non-component and other programs are difficult to adapt to each other, the above three factors together result in that when there are no components in the component library of the topic development system that correspond to certain requirements in the program to be developed, the developer needs to give up using the components in the component library of the special development system for program development and needs to perform completely independent development, which seriously affects the efficiency of program development.
For example, there are 10 requirements in a program to be developed, 8 of the requirements are solidified requirements, and the remaining 2 requirements are personalized requirements specific to the program, where the 8 solidified requirements have corresponding components in the component library of the topic development system, and the 2 personalized requirements do not have corresponding components in the component library of the topic development system, in this case, the program cannot be developed by using the topic development system, and a developer needs to give up using components in the component library of the topic development system for program development, and needs to perform completely autonomous development, which seriously affects the efficiency of program development.
In view of the above, an embodiment of the present application provides a program development method, which can improve the efficiency of program development, in the program development method, topic data corresponding to a target topic is obtained, where a component included in the target topic corresponds to a part of requirements in a target program to be developed, and the topic data corresponding to the target topic includes configuration parameters of each component included in the target topic, then a source code of a topic development system to which the target topic belongs is obtained, and then the topic data corresponding to the target topic is injected into a main entry of the source code to obtain a candidate source code, where the candidate source code is an initial source code that supplements and develops other requirements in the target program except for the part of requirements, so that, in the process of program development, a part of requirements in the target program to be developed can be developed by using components in a component library of the topic development system, therefore, under the condition that components corresponding to some requirements in the target program to be developed do not exist in the component library of the thematic development system, complete independent development of the target program is not needed, only a part of requirements which are not supported by the components in the component library of the thematic development system in the target program can be developed independently, and therefore the efficiency of program development can be improved.
In the following, a brief description will be given of an implementation environment related to the program development method provided in the embodiment of the present application.
As shown in fig. 1, the implementation environment may include a development terminal 101, a topic server 102, and a source code server 103, where the development terminal 101 establishes communication connections with the topic server 102 and the source code server 103, respectively. The topic server 102 stores topic data corresponding to different topics, wherein the topic data corresponding to a topic includes configuration parameters of each component included in the topic. The source code server 103 stores source codes of different topic development systems.
It should be noted that the development terminal 101 may be an electronic device such as a desktop computer, a tablet computer, a smart phone, etc., the topic server 102 may be one server, or may be a server cluster composed of a plurality of servers, and similarly, the source code server 103 may be one server, or may be a server cluster composed of a plurality of servers.
In practical applications, the topic server 102 and the source code server may be the same server or different servers, which is not specifically limited in this embodiment of the present application.
Referring to fig. 2, a flowchart of a program development method provided in an embodiment of the present application is shown, where the program development method can be applied to the development terminal shown in fig. 1. As shown in fig. 2, the program development method may include the steps of:
step 201, the development terminal obtains thematic data corresponding to the target thematic.
When a target program is developed, if a part of requirements (hereinafter, referred to as first part of requirements) of the target program has corresponding components in a component library of a topic development system, and another part of requirements (hereinafter, referred to as second part of requirements) does not have corresponding components in the component library of the topic development system, a development terminal may generate a target topic for the first part of requirements, in other words, components included in the target topic correspond to the first part of requirements in the target program.
Next, in the embodiments of the present application, a technical process of developing a terminal to generate a target topic will be briefly described with reference to the exemplary drawings shown in fig. 3 and fig. 4.
As shown in fig. 3, the development terminal may provide a topic development system operation interface, which may include a topic ID input option a and a topic creation option b. The developer can input the topic ID of the target topic in the topic ID input option a and trigger the topic creation option b after inputting the topic ID of the target topic. After detecting the triggering operation of the topic creation option b, the development terminal can jump to the component selection and setting interface shown in fig. 4, the right part of the component selection and setting interface is a component selection area, a developer can select a component corresponding to the first part of requirements of the target program in the component selection area, after a development terminal detects a selection instruction of a certain component, a component setting area corresponding to the selected component may be presented in the left portion of the component selection and setting interface, for example, as shown in fig. 4, when the development terminal detects a selection instruction for the component, a component setup region corresponding to the picture component may be presented at a left portion of the component selection and setup interface, the component setting area may include a component title setting option, a component title color setting option, a setting option of a picture to be displayed by the component, and the like. After the developer has selected and set the components, the development terminal may generate a target topic based on the components selected by the developer and the settings of the selected components by the developer.
In the subsequent steps of the embodiment of the application, the second part of the requirements of the target program can be subjected to supplementary development based on the target topic, and the developed target program can be obtained after the supplementary development.
In step 201, the development terminal may obtain topic data corresponding to the target topic, where the topic data corresponding to the target topic includes configuration parameters of each component included in the target topic, for example, if the target topic includes a picture component, the topic data corresponding to the target topic may include configuration parameters corresponding to the picture component, where the configuration parameters may include a component title parameter, a component title color parameter, a picture parameter required to be displayed by the component, and the like.
In an optional embodiment of the application, after the development terminal generates the target topic, the topic data corresponding to the target topic may be uploaded to a topic server, in other words, the topic data corresponding to the target topic may be stored in the topic server, and then in step 201, the development terminal may query and obtain the topic data corresponding to the target topic from the topic server, for example, the development terminal may access a domain name corresponding to the topic server based on an http protocol, and query and obtain the topic data corresponding to the target topic from the topic server by accessing.
Step 202, the development terminal obtains a source code of a topic development system to which the target topic belongs.
In practical applications, there may be a plurality of different topic development systems, wherein the components in the component libraries of the different topic development systems may be different, so that, for different programs to be developed, a developer may select one topic development system according to the requirements included in the program, so as to develop the program by using the components in the component library of the selected topic development system.
In the embodiment of the application, the development terminal can determine the topic development system to which the target topic belongs, then the development terminal can obtain the source code of the topic development system to which the target topic belongs, and in practical application, the source code of the topic development system can include the source code of each component in the component library of the topic development system.
Optionally, the source code of the topic development system to which the target topic belongs may be stored in a source code server, then in step 202, the development terminal may query and obtain the source code of the topic development system to which the target topic belongs from the source code server, for example, the development terminal may access a domain name corresponding to the source code server by using an http protocol based on a communication connection with the source code server, and query and obtain the source code of the topic development system to which the target topic belongs from the source code server by accessing.
And 203, injecting thematic data corresponding to the target thematic into a main entrance of the source code by the development terminal to obtain a candidate source code.
The candidate source code is the initial source code which is used for performing supplementary development on other requirements except the partial requirements in the target program.
In practical applications, the types of requirements of different programs may be the same, but the specific contents of the requirements are usually different. For example, in practical applications, there may be picture display requirements for different programs, but the specific content of the picture display requirements (e.g., the specific pictures required to be displayed) in different programs is usually different.
The source code obtained in step 202 includes a source code of each component in a component library of the topic development system to which the target topic belongs, which has universality but does not have personalized content related to the target program, for example, assuming that the target program includes a picture display requirement, the source code obtained in step 202 may include a source code of a picture component, but the source code does not include specific requirement content such as a specific picture required to be displayed by the picture display requirement of the target program.
In view of this, in the embodiment of the present application, after obtaining the source code of the topic development system to which the target topic belongs, the development terminal may inject topic data corresponding to the target topic into a main entry of the source code, and since the source code may call configuration parameters from the main entry when executing the source code and execute the source code based on the configuration parameters, the topic data corresponding to the target topic is injected into the main entry of the source code, so that when executing the source code, the configuration parameters of each component included in the target topic may be called, and the source code may be executed based on the configuration parameters of each component included in the target topic, so that the source code into which the topic data corresponding to the target topic is injected at the main entry may include individual content related to the target program.
In a possible implementation manner of the present application, a target placeholder may be written in advance at a main entry of a source code, in step 203, the development terminal may replace the target placeholder with topic data corresponding to a target topic, and the purpose of injecting the topic data corresponding to the target topic into the main entry of the source code may be achieved through the replacement.
In a possible implementation manner of the application, the development terminal may use a source code of the topic data corresponding to the target topic injected at the main entry as a candidate source code, and provide the candidate source code to a developer of the target program, so that the developer of the target program can perform complementary development on the second part of requirements of the target program based on the candidate source code, and after the complementary development, the developed target program can be obtained.
In another possible implementation manner of the application, the development terminal may take a source code of topic data corresponding to the target topic injected at the main entry as an intermediate source code, after the intermediate source code is obtained, the development terminal may remove a redundant code in the intermediate source code according to a component included in the target topic to obtain a candidate source code, where the redundant code is not a source code corresponding to the component included in the target topic, and after the candidate source code is obtained, the development terminal may provide the candidate source code to a developer of the target program, so that the developer of the target program can perform complementary development on a second part of requirements of the target program based on the candidate source code, and after the complementary development, the developed target program can be obtained.
As described above, the source code of the topic development system may include the source code of each component in the component library of the topic development system, and the target program may not use all components in the component library of the topic development system, but only uses each component included in the target topic, so that the development terminal may perform culling processing on the source code of the component that is not used in the component library, and thus, the code volume of the candidate source code may be reduced, and the development difficulty of the developer may be reduced.
In an optional embodiment of the present application, the development terminal may issue the code obtained after the complementary development based on a manner of issuing a topic.
Referring to fig. 5, an embodiment of the present application provides an optional technical process for obtaining source code of a topic development system to which a target topic belongs, and as shown in fig. 5, the technical process may include the following steps:
and 501, receiving an operation environment corresponding to the target topic input by the user through the development terminal.
In an optional embodiment of the present application, a command line tool may be installed in advance in the development terminal, and the command line tool may be developed using node.
After receiving the initialization command, the command line tool may display the operating environment input guidance information, and the operating environment input guidance information may guide a developer to input an operating environment corresponding to a target topic, where the operating environment corresponding to the target topic may include both a formal development environment and a test environment.
After the operating environment input guide information is displayed, the development terminal can receive the operating environment corresponding to the target topic input by the user based on the guide of the operating environment input guide information through a command line tool.
Step 502, the development terminal receives a topic platform corresponding to a target topic input by a user.
As described above, in practical applications, a plurality of different topic development systems may exist, and the different topic development systems may belong to different topic platforms.
In an optional embodiment of the present application, after the user inputs the operating environment corresponding to the target topic, the command line tool may display platform input guidance information, which may guide the developer to input the topic platform corresponding to the target topic.
After the display platform inputs the guide information, the development terminal can receive a thematic platform corresponding to the target thematic input by the user based on the guide of the platform input guide information through a command line tool.
Step 503, the development terminal queries and obtains the source code of the topic development system to which the target topic belongs based on the operating environment corresponding to the target topic and the topic platform corresponding to the target topic.
In an optional embodiment of the present application, the development terminal may pull, from the source code server, the source code of the topic development system corresponding to the operating environment corresponding to the target topic and the topic platform corresponding to the target topic through a command line tool.
Referring to fig. 6, an embodiment of the present application provides an optional technical process for obtaining topic data corresponding to a target topic, and as shown in fig. 6, the technical process may include the following steps:
step 601, the development terminal receives the identification information of the target topic input by the user.
The identification information of the target topic may be a topic ID of the target topic, and as described above, the topic ID of the target topic may be input by a developer in an operation interface of the topic development system during the process of generating the target topic.
In an alternative embodiment of the present application, after the user inputs the topic platform corresponding to the target topic, the command line tool may present identification input guide information, which may guide the developer to input identification information of the target topic (e.g., a topic ID of the target topic).
After the identification input guide information is presented, the development terminal may receive, through the command line tool, identification information of a target topic input by the user based on the guidance of the identification input guide information.
Step 602, the development terminal queries the topic database according to the identification information of the target topic.
Wherein, the thematic database stores thematic data corresponding to at least one thematic. In an alternative embodiment of the present application, the topic database may be located in a topic data server. The development terminal can send the identification information of the target topic to the topic data server, and the topic data server can query the topic database based on the identification information of the target topic so as to determine whether the topic database stores the topic data corresponding to the target topic.
And 603, the development terminal acquires thematic data corresponding to the target thematic according to the query result.
In an optional embodiment of the present application, if the identification information of the target topic is stored in the topic database, the topic data server may send the topic data corresponding to the identification information of the target topic stored in the topic database as the topic data corresponding to the target topic to the development terminal.
And if the identification information of the target topic is not stored in the topic database, the topic server can return data acquisition failure information to the development terminal.
In an optional embodiment of the present application, the user may further input a project name corresponding to the target program to be developed, the development terminal may create a project directory based on the project name, and the development terminal may change the names of the acquired source code and the topic data of the target topic into the project name and store the project name in the project directory. In this way, code management may be facilitated.
Referring to fig. 7, a block diagram of a program development device 700 according to an embodiment of the present application is shown, where the program development device 700 may be configured in the development terminal shown in fig. 1. As shown in fig. 7, the program development apparatus 700 may include: a first obtaining module 701, a second obtaining module 702, and a third obtaining module 703.
The first obtaining module 701 is configured to obtain topic data corresponding to a target topic, where components included in the target topic correspond to part of requirements in a target program to be developed, and the topic data includes configuration parameters of each component included in the target topic.
The second obtaining module 702 is configured to obtain a source code of a topic development system to which the target topic belongs.
The third obtaining module 703 is configured to inject the topic data corresponding to the target topic into a main entry of the source code to obtain a candidate source code, where the candidate source code is an initial source code for performing complementary development on the other requirements in the target program except for the partial requirements.
In an optional embodiment of the present application, the third obtaining module 703 is specifically configured to: injecting the thematic data into a main entrance of the source code to obtain an intermediate source code; and removing redundant codes in the intermediate source codes according to the components included in the target topic, wherein the redundant codes are not the source codes corresponding to the components included in the target topic.
In an optional embodiment of the present application, the second obtaining module 702 is specifically configured to: receiving an operating environment corresponding to the target topic input by a user; receiving a special topic platform corresponding to the target special topic input by a user; and inquiring and acquiring the source code of the topic development system to which the target topic belongs based on the operating environment and the topic platform.
In an optional embodiment of the present application, the first obtaining module 701 is specifically configured to: receiving the identification information of the target topic input by a user; inquiring a special subject database according to the identification information of the target special subject, wherein special subject data corresponding to at least one special subject is stored in the special subject database; and acquiring thematic data corresponding to the target thematic according to the query result.
In an optional embodiment of the present application, the first obtaining module 701 is specifically configured to: if the identification information of the target topic is stored in the topic database, the topic data corresponding to the identification information of the target topic and stored in the topic database is used as the topic data corresponding to the target topic; if the identification information of the target topic is not stored in the topic database, returning data acquisition failure information.
Referring to fig. 8, a block diagram of another program development device 800 provided in this embodiment of the present application is shown, where the program development device 800 includes, in addition to various modules included in the program development device 700, optionally, a start module 704 and a release module 705.
Wherein, the starting module is used for: the pre-installed command line tool is started.
Correspondingly, the first obtaining module 701 is specifically configured to: and acquiring thematic data corresponding to the target thematic through the command line tool.
The second obtaining module 702 is specifically configured to: and acquiring the source code of the topic development system to which the target topic belongs through the command line tool.
The third obtaining module 703 is specifically configured to: and injecting the thematic data corresponding to the target thematic into a main entrance of the source code through the command line tool to obtain the candidate source code.
The publishing module 705 is configured to: and releasing the codes obtained after the supplementary development based on a special topic releasing mode.
The program development device provided in the embodiment of the present application can implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
For the specific definition of the program development device, reference may be made to the above definition of the program development method, which is not described herein again. The respective modules in the program development device described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute the operations of the modules.
Referring to fig. 9, a block diagram of a computer device provided in an embodiment of the present application, where the computer device may be a terminal, is shown, and the computer device may include a processor and a memory connected by a system bus, as shown in fig. 9. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a program development method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, a computer device is provided, which may be a terminal, and includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
acquiring thematic data corresponding to a target thematic, wherein components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data include configuration parameters of each component included in the target thematic; acquiring a source code of a topic development system to which the target topic belongs; and injecting thematic data corresponding to the target thematic into a main entrance of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing supplementary development on other requirements except the part of requirements in the target program.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: injecting the thematic data into a main entrance of the source code to obtain an intermediate source code; and removing redundant codes in the intermediate source codes according to the components included in the target topic, wherein the redundant codes are not the source codes corresponding to the components included in the target topic.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving an operating environment corresponding to the target topic input by a user; receiving a special topic platform corresponding to the target special topic input by a user; and inquiring and acquiring the source code of the topic development system to which the target topic belongs based on the operating environment and the topic platform.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving the identification information of the target topic input by a user; inquiring a special subject database according to the identification information of the target special subject, wherein special subject data corresponding to at least one special subject is stored in the special subject database; and acquiring thematic data corresponding to the target thematic according to the query result.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: if the identification information of the target topic is stored in the topic database, the topic data corresponding to the identification information of the target topic and stored in the topic database is used as the topic data corresponding to the target topic; if the identification information of the target topic is not stored in the topic database, returning data acquisition failure information.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: starting a pre-installed command line tool; acquiring thematic data corresponding to the target thematic through the command line tool; acquiring a source code of a topic development system to which the target topic belongs through the command line tool; and injecting the thematic data corresponding to the target thematic into a main entrance of the source code through the command line tool to obtain the candidate source code.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and releasing the codes obtained after the supplementary development based on a special topic releasing mode.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
acquiring thematic data corresponding to a target thematic, wherein components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data include configuration parameters of each component included in the target thematic; acquiring a source code of a topic development system to which the target topic belongs; and injecting thematic data corresponding to the target thematic into a main entrance of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing supplementary development on other requirements except the part of requirements in the target program.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: injecting the thematic data into a main entrance of the source code to obtain an intermediate source code; and removing redundant codes in the intermediate source codes according to the components included in the target topic, wherein the redundant codes are not the source codes corresponding to the components included in the target topic.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving an operating environment corresponding to the target topic input by a user; receiving a special topic platform corresponding to the target special topic input by a user; and inquiring and acquiring the source code of the topic development system to which the target topic belongs based on the operating environment and the topic platform.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving the identification information of the target topic input by a user; inquiring a special subject database according to the identification information of the target special subject, wherein special subject data corresponding to at least one special subject is stored in the special subject database; and acquiring thematic data corresponding to the target thematic according to the query result.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: if the identification information of the target topic is stored in the topic database, the topic data corresponding to the identification information of the target topic and stored in the topic database is used as the topic data corresponding to the target topic; if the identification information of the target topic is not stored in the topic database, returning data acquisition failure information.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: starting a pre-installed command line tool; acquiring thematic data corresponding to the target thematic through the command line tool; acquiring a source code of a topic development system to which the target topic belongs through the command line tool; and injecting the thematic data corresponding to the target thematic into a main entrance of the source code through the command line tool to obtain the candidate source code.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and releasing the codes obtained after the supplementary development based on a special topic releasing mode.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A program development method, the method comprising:
acquiring thematic data corresponding to a target thematic, wherein components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data corresponding to the target thematic includes configuration parameters of each component included in the target thematic;
acquiring a source code of a topic development system to which the target topic belongs;
and injecting thematic data corresponding to the target thematic into a main entrance of the source code to obtain a candidate source code, wherein the candidate source code is an initial source code for performing supplementary development on other requirements except the partial requirements in the target program.
2. The method of claim 1, wherein said injecting the topical data into a main entry of the source code, resulting in candidate source code, comprises:
injecting the thematic data into a main entrance of the source code to obtain an intermediate source code;
and removing redundant codes in the intermediate source codes according to the components included in the target topic to obtain the candidate source codes, wherein the redundant codes are not the source codes corresponding to the components included in the target topic.
3. The method according to claim 1, wherein the obtaining source code of a topic development system to which the target topic belongs comprises:
receiving an operating environment corresponding to the target topic input by a user;
receiving a special topic platform corresponding to the target special topic input by a user;
and inquiring and acquiring a source code of the topic development system to which the target topic belongs based on the operating environment and the topic platform.
4. The method according to claim 1, wherein the obtaining topic data corresponding to the target topic comprises:
receiving identification information of the target topic input by a user;
inquiring a special subject database according to the identification information of the target special subject, wherein special subject data corresponding to at least one special subject is stored in the special subject database;
and acquiring thematic data corresponding to the target thematic according to the query result.
5. The method according to claim 4, wherein the obtaining thematic data corresponding to the target thematic according to the query result comprises:
if the identification information of the target special topic is stored in the special topic database, the special topic data which is stored in the special topic database and corresponds to the identification information of the target special topic is used as the special topic data corresponding to the target special topic;
and if the identification information of the target topic is not stored in the topic database, returning data acquisition failure information.
6. The method of claim 1, further comprising:
starting a pre-installed command line tool;
correspondingly, the obtaining of the thematic data corresponding to the target thematic includes:
acquiring thematic data corresponding to the target thematic through the command line tool;
the obtaining of the source code of the topic development system to which the target topic belongs includes:
acquiring a source code of a topic development system to which the target topic belongs through the command line tool;
the injecting the topic data corresponding to the target topic into the main entrance of the source code to obtain a candidate source code includes:
and injecting thematic data corresponding to the target thematic into a main entrance of the source code through the command line tool to obtain the candidate source code.
7. The method of any of claims 1 to 6, further comprising:
and releasing the codes obtained after the supplementary development based on a special topic releasing mode.
8. A program development apparatus, characterized in that the apparatus comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring thematic data corresponding to a target thematic, components included in the target thematic correspond to part of requirements in a target program to be developed, and the thematic data comprises configuration parameters of each component included in the target thematic;
the second acquisition module is used for acquiring a source code of the topic development system to which the target topic belongs;
and the injection module is used for injecting the thematic data corresponding to the target thematic into a main entrance of the source code to obtain a candidate source code, and the candidate source code is an initial source code for performing supplementary development on other requirements except the partial requirements in the target program.
9. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, implements a program development method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the program development method according to any one of claims 1 to 7.
CN202010864805.6A 2020-08-25 2020-08-25 Program development method, device, equipment and storage medium Pending CN112130829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010864805.6A CN112130829A (en) 2020-08-25 2020-08-25 Program development method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010864805.6A CN112130829A (en) 2020-08-25 2020-08-25 Program development method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112130829A true CN112130829A (en) 2020-12-25

Family

ID=73848556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010864805.6A Pending CN112130829A (en) 2020-08-25 2020-08-25 Program development method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112130829A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183775A (en) * 2015-08-11 2015-12-23 上海幻电信息科技有限公司 Webpage topic template system
US20160048848A1 (en) * 2014-08-15 2016-02-18 International Business Machines Corporation Mobile application analytics framework
CN107885533A (en) * 2017-11-30 2018-04-06 广州酷狗计算机科技有限公司 The method and device of management assembly code
CN108495192A (en) * 2018-03-13 2018-09-04 武汉斗鱼网络科技有限公司 Page editing processing method and processing device
CN110955418A (en) * 2019-12-13 2020-04-03 中国南方电网有限责任公司 Code generation method and device, computer equipment and storage medium
CN111443911A (en) * 2020-03-24 2020-07-24 五八有限公司 Page development method and device, electronic equipment and computer storage medium
CN111752535A (en) * 2020-06-29 2020-10-09 广州华多网络科技有限公司 Web page development method and device, computer equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160048848A1 (en) * 2014-08-15 2016-02-18 International Business Machines Corporation Mobile application analytics framework
CN105183775A (en) * 2015-08-11 2015-12-23 上海幻电信息科技有限公司 Webpage topic template system
CN107885533A (en) * 2017-11-30 2018-04-06 广州酷狗计算机科技有限公司 The method and device of management assembly code
CN108495192A (en) * 2018-03-13 2018-09-04 武汉斗鱼网络科技有限公司 Page editing processing method and processing device
CN110955418A (en) * 2019-12-13 2020-04-03 中国南方电网有限责任公司 Code generation method and device, computer equipment and storage medium
CN111443911A (en) * 2020-03-24 2020-07-24 五八有限公司 Page development method and device, electronic equipment and computer storage medium
CN111752535A (en) * 2020-06-29 2020-10-09 广州华多网络科技有限公司 Web page development method and device, computer equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王丽;丁迎杰;吴鸣;: "专题专利预警平台建设方案研究与实践", 现代图书情报技术, no. 10, 25 October 2016 (2016-10-25) *

Similar Documents

Publication Publication Date Title
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN110297672B (en) Page dynamic generation method and device, computer equipment and storage medium
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
EP3992800A1 (en) Program test method and apparatus, computer device, and storage medium
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN108829485A (en) Update method, device, storage medium and the computer equipment of application interface layout
CN109032662B (en) Code file generation method and device, computer equipment and storage medium
CN111610978B (en) Applet conversion method, device, equipment and storage medium
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
CN110135129B (en) Code segment protection method and device, computer equipment and storage medium
CN110874236A (en) Cross-platform application device, terminal and storage medium
CN111984228B (en) Interface document processing method and device, computer equipment and storage medium
CN111079062A (en) Page creating method and device, electronic equipment and storage medium
CN110109712A (en) Service Component loading method, device, computer equipment and storage medium
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN112685091A (en) Service request processing method, device, equipment and medium based on big data
CN114118971A (en) Cloud-native-based online development method, device, equipment and storage medium
CN110750415A (en) Interface service configuration method, device, medium and computer equipment
CN111008132A (en) Application debugging method and device for Android system, computer equipment and storage medium
CN110597552A (en) Configuration method, device and equipment of project continuous integration pipeline and storage medium
CN112130829A (en) Program development method, device, equipment and storage medium
CN111625225A (en) Program specified data output method and device
CN110688400A (en) Data processing method, data processing device, computer equipment and storage medium
CN112579077B (en) Page processing method and device in application, application service platform and equipment
CN113868127A (en) Online debugging method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210119

Address after: 511400 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511400 24th floor, building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No.79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20201225

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000054

Denomination of invention: Program development method, device, equipment and storage medium

License type: Common License

Record date: 20210208

EE01 Entry into force of recordation of patent licensing contract