CN-121979535-A - Application development method, device and program product
Abstract
The technical implementation provides an application development method, an application development device and a program product. The method includes the steps of responding to a first triggering operation, displaying a first compiling interface, wherein the first compiling interface is associated with a first software tool package, the first software tool package is integrated in a pluggable mode, responding to a second triggering operation, and compiling first function codes into intermediate codes and/or second function codes by combining an accessed first interface information base, wherein the first function codes are compiled in a first language form, and the second function codes are presented in a second language form. The method can realize quick debugging of codes and/or obtain the second functional codes which can be directly matched with the native platform and have the performance of the pure native application without compiling the whole client engineering and through unified development language, thereby taking development efficiency and high performance in running into consideration, and better reducing the development threshold and development cost of the client application.
Inventors
- WU JUNAO
- FU PENG
- LIN CHENGZHANG
Assignees
- 北京字跳网络技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260123
Claims (12)
- 1. An application development method, comprising: Responsive to a first trigger operation, displaying a first compiling interface, the first compiling interface being associated with a first software toolkit, the first software toolkit being integrated in a pluggable form; And responding to a second triggering operation, compiling the first function code into intermediate code in combination with the accessed first interface information base, and/or compiling the first function code into a second function code, wherein the first function code is written in a first language form, and the second function code is presented in a second language form.
- 2. The method according to claim 1, said compiling the first function code into intermediate code and/or into the second function code in connection with the accessed first interface information library, comprising: analyzing the first function code to obtain a code analysis result, wherein the code analysis result comprises an interface calling requirement; Determining interface data content from the first interface information base, wherein the interface data content is matched with the interface calling requirement; obtaining the intermediate code according to the code analysis result and the interface data content, wherein the intermediate code is used for code debugging, and/or, And obtaining the second function code according to the code analysis result and the interface data content, wherein the second function code is used for code release.
- 3. The method of claim 2, the obtaining the intermediate code according to the code parsing result and the interface data content, comprising: converting the first functional code into a first intermediate code based on a business logic instruction in the code analysis result, wherein the first intermediate code is adapted to a first virtual machine, and the first virtual machine is deployed in the first software tool kit; Generating a second intermediate code based on the interface data content, wherein the second intermediate code contains interface metadata information; Replacing an interface calling placeholder with the second intermediate code to obtain a third intermediate code, wherein the interface calling placeholder exists in the first intermediate code; And obtaining the intermediate code based on the third intermediate code and first configuration information, wherein the first configuration information is environment configuration information of the first virtual machine.
- 4. The method of claim 2, the obtaining the second function code according to the code parsing result and the interface data content, comprising: acquiring an interface call statement and a business logic instruction in the code analysis result, and determining the function execution logic of the first function code based on the business logic instruction; converting the function execution logic into business logic codes according to the language grammar specification of a first operation environment, wherein the first operation environment is an operation environment supporting the operation of a developed first application; According to the interface data content, converting the interface call statement into an interface call code, wherein the interface call code is adapted to the first running environment; And integrating the service logic code and the interface calling code to obtain the second function code.
- 5. The method of claim 1, further comprising: obtaining and displaying the debugging result of the first function code according to the intermediate code, and/or, And incrementally updating the second function code to project engineering of the developed first application so as to enable the first application to have business capability of the second function code.
- 6. The method according to claim 5, wherein obtaining and displaying the debugging result of the first function code according to the intermediate code comprises: Loading the intermediate code into a first virtual machine, wherein the first virtual machine is deployed in the first software tool package; Calling an interface function and controlling the execution of the interface function based on interface metadata information in the intermediate code and a reflection mechanism through the first virtual machine, wherein the interface function is related to the first application; Acquiring an execution result of the interface function, and operating business logic content based on the execution result to acquire execution feedback information, wherein the business logic content is included in the intermediate code; and structuring the execution feedback information to obtain a debugging result and displaying the debugging result.
- 7. The method according to any one of claims 1-6, wherein the first compiling interface comprises a first compiling control, a second compiling control and a third compiling control, the first compiling control is used for triggering intermediate code compiling, the second compiling control is used for triggering second functional code compiling, and the second compiling control is used for triggering compiling of the intermediate code and the second functional code simultaneously; The second triggering operation is generated by triggering one of the first compiling control, the second compiling control and the third compiling control.
- 8. The method of any of claims 1-6, further comprising: In response to a third trigger operation, the first functional code is determined, the first functional code selected from project projects associated with the developed first application.
- 9. The method of any of claims 1-6, further comprising: displaying a configuration interface of the first software tool package, and acquiring information base association parameters, wherein the information base association parameters are configured in the configuration interface; And performing access operation of the first interface information base based on the information base association parameters, and displaying an access state.
- 10. The method of any of claims 1-6, further comprising: and displaying the first compiling result and/or displaying the second compiling result, wherein the first compiling result is displayed after the intermediate code is obtained, and the second compiling result is displayed after the second functional code is obtained.
- 11. An application development apparatus comprising: the first response module is used for responding to a first triggering operation, displaying a first compiling interface, wherein the first compiling interface is associated with a first software tool package, and the first software tool package is integrated in a pluggable mode; and the second response module is used for responding to a second triggering operation, compiling the first function code into an intermediate code in combination with the accessed first interface information library and/or compiling the first function code into a second function code, wherein the first function code is compiled in a first language form, and the second function code is presented in a second language form.
- 12. A computer program product comprising a computer program which, when executed by a processor, implements the application development method according to any one of claims 1-10.
Description
Application development method, device and program product Technical Field The embodiment relates to the technical field of computers, in particular to an application development method, an application development device and a program product. Background In the development of client applications, a compiled language is required to write codes of business functions in the application, and then executable client application programs can be generated through the processes of compiling, linking, code packaging and the like. Generally, the client application is iterative development, and code modification of the client application needs to compile the whole client engineering, and under the condition that the client engineering is increasingly huge, one code modification occupies a longer compiling time. Meanwhile, the client application is adapted to running under different running environments, and different programming languages are needed to be adopted for code writing in the development stage, so that the development cost of the client application is increased. The above-described problems present a significant challenge to both the development experience and efficiency. Disclosure of Invention The technical implementation provides an application development method, an application development device and a program product, which solve the problems of low development efficiency caused by long compiling time required for one-time code modification, and high development cost and development threshold caused by the fact that different programming languages are required to be adopted for code writing for adapting to operation under different operation environments. In a first aspect, this embodiment provides an application development method, including: Responding to a first triggering operation aiming at a first portal, and displaying a first compiling interface, wherein the first portal corresponds to a first software tool package which can be pluggable to form integration; And in response to a second triggering operation for the first compiling interface, compiling the first functional code into intermediate code and/or compiling the first functional code into a second functional code in combination with the accessed first interface information base. In a second aspect, this embodiment further provides an application development apparatus, including: the first response module is used for responding to a first triggering operation aiming at a first portal, displaying a first compiling interface, wherein the first portal corresponds to a first software tool kit which can be pluggable to form integration; and the second response module is used for responding to a second triggering operation aiming at the first compiling interface, compiling the first functional code into an intermediate code and/or compiling the first functional code into a second functional code in combination with the accessed first interface information base. In a third aspect, the embodiment also provides an electronic device, which includes one or more processors, and a storage device for storing one or more programs, where the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the application development method provided in any of the embodiments of the technology. In a fourth aspect, the embodiment further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the application development method provided by any of the embodiments of the technology. In a fifth aspect, the embodiments also provide a computer program product comprising a computer program for implementing the application development method according to any one of the embodiments of the technology when executed by a processor. According to the technical scheme, a first compiling interface is displayed in response to a first triggering operation, the first compiling interface is associated with a first software tool package, the first software tool package is integrated in a pluggable mode, and in response to a second triggering operation, a first function code is compiled into an intermediate code and/or into a second function code in combination with an accessed first interface information base, the first function code is compiled in a first language form, and the second function code is presented in a second language form. According to the method, an integrated first software tool package is formed through plug-in, after a first compiling interface is displayed, a first interface information base is responded to second triggering operation and called, first function codes in a selected first language form are compiled into intermediate codes capable of being independently debugged and/or second function codes in a second language form capable of being issued to a native platform to operate based on a corresponding compiling mode, and theref