Code expansion method and device, program product and electronic equipment

Through the built-in code decoupling and incremental support point selection of the software development platform, and the use of expansion portals to temporarily load expansion code, the problems of low code delivery efficiency and bloated platform are solved, and flexibility and scalability are improved.

CN118567622APending Publication Date: 2024-08-30INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410641401.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, when the software development platform realizes the needs of new users, the code delivery efficiency is low, and due to the full function point code delivery, the platform is bloated and difficult to flexibly respond to the needs of different application scenarios.

Method used

By decoupling the built-in code of the software development platform, incremental support points are obtained, and the incremental support points with the highest similarity are selected according to the target new requirements. The expansion code is temporarily loaded to the platform through the expansion portal to achieve privatized delivery of part of the code. , avoid direct storage and full delivery.

Benefits of technology

It improves code delivery efficiency, reduces the amount of built-in code data in the software development platform, enhances the flexibility and scalability of the platform, and simplifies code management and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567622A
    Figure CN118567622A
Patent Text Reader

Abstract

The invention discloses a code expansion method and device, a program product and electronic equipment, and relates to the field of software development, the field of financial science and technology and other related technical fields, the method comprises the following steps: decoupling a built-in code in a software development platform based on a user demand to obtain L incremental support points, and responding to a target newly-added demand to obtain L incremental support points; a target support point is determined from the L incremental support points, the target newly-added demand is a user demand needing to be realized by the current software development task, an expansion code is loaded to the software development platform through an expansion entry corresponding to the target support point, and the expansion code is a code for realizing the target newly-added demand. And after the software development platform finishes loading the implementation strategy of the target newly-added demand, running the expansion code. According to the method and the device, the technical problem of low code delivery efficiency caused by directly adding the code for realizing the new demand to the software development platform in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of software development, financial technology and other related technical fields, and more specifically, to a code expansion method, device, program product and electronic device. Background Art

[0002] With the gradual advancement of software development platform construction, in order to support as many tenants' needs as possible, the existing technology and the way of enumerating as many user needs in different application scenarios as possible directly integrate the implementation code corresponding to the newly added user needs into the software development platform to realize the visual development of software applications. However, with the increase of user needs, on the one hand, this method will cause the software development platform to become increasingly bloated, and on the other hand, in the process of private delivery of code based on specific software development tasks, the software development platform will carry the full amount of function point code for full delivery, thus causing the technical problem of low code delivery efficiency.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a code expansion method, device, program product and electronic device to at least solve the technical problem of low code delivery efficiency caused by directly adding the code to implement the new requirements to the software development platform in the prior art.

[0005] According to one aspect of the present application, a code expansion method is provided, including: decoupling the built-in code in the software development platform based on user needs to obtain L incremental support points, wherein L is a positive integer, and the incremental support points are used to implement new user needs in different application scenarios; in response to the target new needs, determining a target support point from the L incremental support points, wherein the target new needs are user needs that need to be implemented in the current software development task, and the user needs corresponding to the target support point are the same as the target new needs; loading the expansion code into the software development platform through the expansion entry corresponding to the target support point, wherein the expansion entry is a code loading interface of the software development platform, and the expansion code is a code that implements the target new needs; after the software development platform has completed loading the implementation strategy for the target new needs, running the expansion code, wherein the implementation strategy at least includes the development strategy of the expansion code and the environment deployment strategy when running the expansion code.

[0006] Optionally, the code expansion method also includes: obtaining the application scenario of the target new demand and the application scenario of each incremental support point among the L incremental support points; detecting the similarity between the application scenario of the target new demand and the application scenario of each incremental support point to obtain L similarities; and taking the incremental support point corresponding to the maximum similarity among the L similarities as the target support point.

[0007] Optionally, the code expansion method also includes: generating an implementation strategy for the target new requirements based on the text content of the target new requirements; generating scaffolding code for the target new requirements based on the implementation strategy, wherein the scaffolding code is used to determine a development framework for the expansion code; generating expansion code for the target new requirements based on the scaffolding code; and storing the expansion code in a managed warehouse, wherein the managed warehouse is a database connected to the software development platform.

[0008] Optionally, the code expansion method further includes: uploading an implementation strategy of the target new requirement to a software development platform, and binding the implementation strategy to an expansion entry corresponding to the target support point.

[0009] Optionally, the code expansion method further includes: packaging the expansion code to obtain a packaged file corresponding to the expansion code; and uploading the packaged file to the hosting warehouse through the expansion entry corresponding to the target support point.

[0010] Optionally, the code expansion method also includes: controlling the software development platform to scan the storage files of the hosted warehouse at preset intervals; when the storage files of the hosted warehouse include packaged files corresponding to the expansion code, decompressing the packaged files corresponding to the expansion code to obtain the expansion code; and loading the expansion code into the memory of the software development platform through the expansion entry.

[0011] Optionally, the code expansion method also includes: obtaining M application scenarios of the software to be developed in user needs, where M is a positive integer; dividing the built-in codes in the software development platform according to the M application scenarios, and obtaining M code sets corresponding to the M application scenarios one by one, wherein the built-in codes included in the code sets are used to implement user needs in the corresponding application scenarios.

[0012] According to another aspect of the present application, a code expansion device is also provided, including: a decoupling unit, used to decouple the built-in code in the software development platform based on user needs to obtain L incremental support points, wherein L is a positive integer, and the incremental support points are used to implement new user needs in different application scenarios; a determination unit, used to determine a target support point from the L incremental support points in response to the target new needs, wherein the target new needs are user needs that need to be implemented in the current software development task, and the user needs corresponding to the target support point are the same as the target new needs; a loading unit, used to load the expansion code into the software development platform through the expansion entry corresponding to the target support point, wherein the expansion entry is the code loading interface of the software development platform, and the expansion code is the code to implement the target new needs; a running unit, used to run the expansion code after the software development platform has completed loading the implementation strategy for the target new needs, wherein the implementation strategy at least includes the development strategy of the expansion code and the environment deployment strategy when running the expansion code.

[0013] According to another aspect of the present application, a computer program product is provided, in which a computer program is stored, wherein when the computer program is running, the computer program product is controlled to execute any one of the above code expansion methods.

[0014] According to another aspect of the present application, an electronic device is also provided, wherein the electronic device includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned code expansion methods.

[0015] In the present application, firstly, the built-in code in the software development platform is decoupled based on user needs to obtain L incremental support points, where L is a positive integer, and the incremental support points are used to realize new user needs in different application scenarios. Secondly, in response to the target new needs, a target support point is determined from the L incremental support points, where the target new needs are user needs that need to be realized in the current software development task, and the user needs corresponding to the target support point are the same as the target new needs. Afterwards, the extension code is loaded into the software development platform through the extension entry corresponding to the target support point, where the extension entry is the code loading interface of the software development platform, and the extension code is the code for realizing the target new needs. Then, after the software development platform has loaded the implementation strategy for the target new needs, the extension code is run, where the implementation strategy at least includes the development strategy of the extension code and the environment deployment strategy when running the extension code.

[0016] From the above content, it can be seen that the technical solution of the present application first decouples the existing built-in code in the software development platform based on user needs, and obtains L incremental support points corresponding to different application scenarios. Compared with the existing method of delivering the full amount of code of the software development platform, the software development platform in the present application can achieve the technical effect of private delivery of part of the code based on the application scenario.

[0017] In addition, each incremental support point in the present application corresponds to a new demand of a user in an application scenario. After the target new demand is actually triggered, the present application does not directly store the extension code used to implement the target new demand in the software development platform. Instead, before the extension code needs to be run, the extension code outside the platform is temporarily loaded into the software development platform through the extension entrance of the corresponding incremental support point (ie, the target support point).

[0018] It can be seen from this that the technical solution of the present application adopts and integrates the extended code for realizing the target new requirements directly into the software development platform, thereby achieving the purpose of reducing the data volume of the built-in code in the software development platform, thereby achieving the technical effect of improving the efficiency of code delivery, and further solving the technical problem of low code delivery efficiency caused by directly adding the code for realizing the new requirements to the software development platform in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 is a flowchart of an optional code expansion method according to an embodiment of the present application;

[0021] Figure 2 It is a flowchart of a code lightweight design method of an optional low-code platform according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of an optional code expansion device according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] It should also be noted that the relevant information (including built-in code information and demand information in the software development platform) and data (including but not limited to data for display and analysis) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0027] In addition, the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant information and data involved in this application comply with the relevant laws, regulations and standards of the relevant regions, and necessary confidentiality measures have been taken and do not violate public order and good morals. In addition, this application provides corresponding operation entrances for users to choose to agree to authorization or refuse authorization. If the user chooses to refuse authorization, he / she will enter the corresponding expert decision-making process.

[0028] According to an embodiment of the present application, an embodiment of a code expansion method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] The present application provides a code expansion system (hereinafter referred to as the expansion system) for executing the code expansion method in the present application. Figure 1 is a flowchart of an optional code expansion method according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0030] Step S101, decoupling the built-in codes in the software development platform based on user needs to obtain L incremental support points.

[0031] In step S101, L is a positive integer, and the incremental support points are used to meet new user needs in different application scenarios.

[0032] Optionally, the software development platform in the present application may be selected as a low-code platform. A low-code platform is a software development tool that allows users to quickly create applications using a graphical interface and a small amount of coding. The low-code platform provides pre-built modules and components, which can speed up application development, reduce development costs, and to a certain extent reduce the dependence of software development tasks on professional code developers.

[0033] Step S102: In response to the target new demand, determine a target support point from L incremental support points.

[0034] In step S102, the target new requirement is the user requirement that needs to be achieved in the current software development task, and the user requirement corresponding to the target support point is the same as the target new requirement.

[0035] Optionally, the expansion system can directly take the incremental support point among the L incremental support points whose user demand is the same as the target new demand as the target support point. When there is no incremental support point among the L incremental support points whose user demand is exactly the same as the target new demand, the expansion system obtains the similarity between the application scenario of each incremental support point among the L incremental support points and the application scenario of the target new demand, and then takes the incremental support point corresponding to the maximum similarity among the L similarities as the target support point.

[0036] Step S103: Load the expansion code into the software development platform through the expansion entry corresponding to the target support point.

[0037] In step S103, the expansion entry is a code loading interface of the software development platform, and the expansion code is a code for realizing the target newly added requirements.

[0038] Optionally, the low-code platform includes an extension port loader, which is a component or plug-in for loading and managing extension code. The extension port loader provides a set of standardized interfaces (i.e., extension entry) and specifications (i.e., implementation strategies) for defining and managing the loading, initialization, unloading and communication of extended functions. Through the extension port loader, developers can add extended custom functions to the low-code platform, thereby achieving the purpose of meeting new user needs.

[0039] Step S104, after the software development platform has finished loading the implementation strategy for the target new requirement, the expansion code is run.

[0040] In step S104, the implementation strategy at least includes a development strategy for the extended code and an environment deployment strategy when the extended code is run.

[0041] Optionally, the implementation strategy runs through the entire development cycle of the software development task. In addition to the development strategy for handling extension code and the environment deployment strategy when running the extension code, the implementation strategy also includes: user demand strategy, architecture design strategy and code testing strategy.

[0042] Optionally, the user's demand strategy is used to determine the actual user needs, and by analyzing the actual user needs, the purpose of converting the actual user needs into verifiable and quantifiable specification documents is achieved; the architecture design strategy is used to design the overall architecture of the software system, wherein the content of the overall architecture includes module division, component design, and interaction mode; the development strategy is used to implement the development of software code according to the demand specifications and design solutions; the code testing strategy includes unit testing strategy, integration testing strategy, and system testing strategy; the environment deployment strategy is used to determine the documents, configuration, and environment required for software release.

[0043] From the above content, it can be seen that the technical solution of the present application first decouples the existing built-in code in the software development platform based on user needs, and obtains L incremental support points corresponding to different application scenarios. Compared with the existing method of delivering the full amount of code of the software development platform, the software development platform in the present application can achieve the technical effect of private delivery of part of the code based on the application scenario.

[0044] In addition, each incremental support point in the present application corresponds to a new demand of a user in an application scenario. After the target new demand is actually triggered, the present application does not directly store the extension code used to implement the target new demand in the software development platform. Instead, before the extension code needs to be run, the extension code outside the platform is temporarily loaded into the software development platform through the extension entrance of the corresponding incremental support point (ie, the target support point).

[0045] It can be seen from this that the technical solution of the present application adopts and integrates the extended code for realizing the target new requirements directly into the software development platform, thereby achieving the purpose of reducing the data volume of the built-in code in the software development platform, thereby achieving the technical effect of improving the efficiency of code delivery, and further solving the technical problem of low code delivery efficiency caused by directly adding the code for realizing the new requirements to the software development platform in the prior art.

[0046] In an optional embodiment, the expansion system first obtains the application scenario of the target new demand and the application scenario of each incremental support point among the L incremental support points. Then, the expansion system detects the similarity between the application scenario of the target new demand and the application scenario of each incremental support point to obtain L similarities. After that, the expansion system takes the incremental support point corresponding to the maximum similarity among the L similarities as the target support point.

[0047] Optionally, in the process of detecting the similarity between the application scenario of the target new demand and the application scenario of each incremental support point, the expansion system first obtains the application scenario description text of the target new demand and the application scenario description text of each incremental support point, and then the expansion system performs data preprocessing on all application scenario description texts, wherein the data preprocessing is used to remove stop words and punctuation marks in the application scenario description text to reduce noise information in the text.

[0048] Afterwards, the expansion system can convert all application scenario description texts into corresponding text vectors. Then, the expansion system uses the cosine similarity between the text vector of the target new requirement and the text vector of each incremental support point as the similarity between the application scenario of the target new requirement and the application scenario of the incremental support point.

[0049] In an optional embodiment, before loading the expansion code into the software development platform through the expansion entry corresponding to the target support point, the expansion system first generates an implementation strategy for the target new requirement based on the text content of the target new requirement. Then, the expansion system generates scaffolding code for the target new requirement based on the implementation strategy, wherein the scaffolding code is used to determine the development framework of the expansion code, and the expansion system generates the expansion code for the target new requirement based on the scaffolding code. Finally, the expansion system stores the expansion code in a managed warehouse, wherein the managed warehouse is a database connected to the software development platform.

[0050] Optionally, in a low-code platform, scaffolding is a tool for quickly generating basic code structures and functional modules, wherein the scaffolding can help developers automatically create the initial development framework of the project (i.e., the development framework for expanding the code), including file and directory structures and some basic code templates.

[0051] Optionally, the expansion system can achieve the purpose of speeding up the development process through scaffolding. Developers only need to use the scaffolding to perform some simple configuration and customization to quickly generate a development framework for expansion code with basic functions, and then conduct further development on this basis to obtain complete expansion code, thereby achieving the technical effects of rapid iteration and agile development, and thus improving the development efficiency of expansion code.

[0052] Optionally, the hosted repository connected to the low-code platform can also be set up as a version control system for managing application code, resource files, and other development data.

[0053] In an optional embodiment, after generating an implementation strategy for the target new requirement based on the text content of the target new requirement, the expansion system uploads the implementation strategy for the target new requirement to the software development platform and binds the implementation strategy to the expansion entry corresponding to the target support point.

[0054] Optionally, the technical effects that can be achieved by binding the implementation strategy with the expansion entry corresponding to the target support point are as follows:

[0055] (1) Improve flexibility and scalability: By binding implementation strategies and expansion portals, the low-code platform can achieve flexible expansion and customization of functions to meet new user needs. The expansion system can customize and expand the functions of the software to be developed based on the specific content of the target new needs without modifying the existing core code, thereby improving the flexibility and scalability of the software development platform.

[0056] (2) Easy to expand and integrate: By binding implementation strategies and expansion portals, the integration of new functions corresponding to target new requirements becomes simpler and more efficient, thereby shortening the software code development cycle.

[0057] (3) Quickly respond to changes in demand: By binding implementation strategies and expanding entry points, the low-code platform can quickly respond to changes in demand. Through function customization and configuration customization, the platform can meet the personalized needs of different customers, thereby improving the business flexibility of the software to be developed.

[0058] (4) Reduce development costs: By binding implementation strategies and expansion entry points, the cost and risk of custom development can be reduced. Developers can use existing interfaces and strategies instead of having to write and test the entire functional module from scratch.

[0059] (5) Improve maintainability: By binding implementation strategies and expansion entries, the code structure and functional modules of the software development platform can be better managed, thereby improving the maintainability of the built-in code in the software development platform.

[0060] In an optional embodiment, the expansion system first packages the expansion code to obtain a packaged file corresponding to the expansion code, and then the expansion system uploads the packaged file to the hosting warehouse through the expansion entry corresponding to the target support point.

[0061] Optionally, packaging the code usually means combining the source code, dependencies, configuration files and other resources in the project together to generate a distributable and deployable file or compressed package. Packaging the code helps simplify the deployment, sharing and maintenance of the code project.

[0062] In an optional embodiment, the expansion system first controls the software development platform to scan the storage files of the hosted warehouse at preset intervals; thereafter, when the storage files of the hosted warehouse include packaged files corresponding to the expansion code, the expansion system decompresses the packaged files corresponding to the expansion code to obtain the expansion code, and then, the expansion system loads the expansion code into the memory of the software development platform through the expansion entry.

[0063] Optionally, it can be seen from the above embodiment that the expansion system temporarily loads the expansion code outside the software development platform into the software development platform through the expansion entry for execution, and does not directly integrate and store the expansion code into the content of the software development platform. The technical effects achieved by this method are as follows:

[0064] (1) Enhanced flexibility and customization: By loading external extension codes through the extension entry, the low-code platform functions can be flexibly expanded and customized. The extension system can temporarily load external extension codes according to specific needs without modifying the core platform code, thereby achieving more refined customization and expansion.

[0065] (2) Quickly respond to changes in demand: Low-code platforms are often used to quickly develop applications, and changes in user demand are inevitable. By loading external extension codes through the extension portal, the extension system can respond to changes in demand in a timely manner, quickly add new functions or modify existing functions, thereby improving the flexibility and agility of the software program to be developed.

[0066] (3) Modular development and management: Temporary loading of external extension code can help achieve modular development and management. The extension system can encapsulate specific functions or components as external extension modules and dynamically load them when needed, which helps improve code reusability and maintainability.

[0067] (4) Reduce platform complexity: Loading external extension code through the extension entry reduces the complexity of the low-code platform. Loading specific functions or customized codes as external extension modules helps to maintain the clarity and simplicity of the platform's core code, thereby avoiding the problem of bloated built-in code in the low-code platform.

[0068] (5) Improved security and isolation: By temporarily loading external extension code, the execution environment and permissions of the code can be better controlled, improving the security of the low-code platform and reducing potential security risks.

[0069] In an optional embodiment, the expansion system first obtains M application scenarios of the software to be developed in user needs, where M is a positive integer. Thereafter, the expansion system divides the built-in codes in the software development platform according to the M application scenarios, and obtains M code sets corresponding to the M application scenarios one by one, wherein the built-in codes included in the code sets are used to implement user needs in the corresponding application scenarios.

[0070] Optionally, taking the software development platform as a low-code platform as an example, in the low-code platform, decoupling the built-in code is suitable for complex application scenarios, where decoupling refers to separating the originally tightly coupled codes in the built-in code to obtain different code models, thereby reducing the dependencies between the codes, thereby achieving the purpose of improving the maintainability, scalability and testability of the low-code platform. Examples of actual application scenarios in which the built-in code can be decoupled in the low-code platform are as follows:

[0071] (1) Modular development: Decoupling built-in code can break down the application into independent modules or components, each with clearly defined functions and responsibilities. This enables developers to better understand and manage the code and reduce the impact of modifying one module on other modules.

[0072] (2) Parallel development: As the independence between modules increases, the development team can carry out development work in parallel, speeding up the development cycle and improving team efficiency.

[0073] Optionally, the technical effects that can be achieved by decoupling the built-in code in the low-code platform are as follows:

[0074] (1) Improved flexibility: Decoupling built-in code reduces the coupling between different modules, making it easier for developers to replace, upgrade, or add new functional modules, thereby achieving flexible customization and expansion of the application.

[0075] (2) Improve maintainability: Decoupling built-in code makes the code structure clear, reduces the dependencies between different modules, reduces the complexity of code maintenance, and simplifies troubleshooting and problem location.

[0076] (3) Improve code quality: Reducing coupling can improve the testability of code and help write better unit tests and integration tests, thereby reducing potential defects and bugs in the code.

[0077] In an optional embodiment, taking a low-code platform as an example, Figure 2is a flowchart of a code lightweight design method for an optional low-code platform according to an embodiment of the present application, such as Figure 2 As shown, the method includes:

[0078] On the service side of the low-code platform, in response to the target's new requirements, the low-code service side provides an extension entry and some built-in code to implement the basic functions of the target's new requirements. In addition, the underlying extension port loader of the low-code service side can load the corresponding implementation strategy according to the registered extension entry (i.e. Figure 2 The plug-in implementation corresponding to the expansion entrance in the application) and when the function of the target new requirements needs to be realized, the plug-in implementation (that is, the expansion code in this application) in the external plug-in hosting warehouse (that is, the hosting warehouse in this application) is allowed to be loaded into the low-code platform.

[0079] Furthermore, the code lightweight design method also includes:

[0080] Step S1: When the low-code service is started, the extension port loader will first look for the corresponding built-in implementation based on the registered extension entry and load it into the memory. At this time, the platform can realize the basic functions of the target new requirements.

[0081] Step S1-1: The built-in implementation is implemented through the low-code platform scaffolding tool. According to the standard of the extended entry agreement, the corresponding scaffolding is issued for development to obtain the built-in code.

[0082] Step S1-2: After completing the built-in code based on the scaffolding development, release the low-code service online.

[0083] Step S2: For the new demands of low-code tenants (i.e. the target new demands), an implementation strategy can be supplemented based on the corresponding extension entry (i.e. the extension entry corresponding to the target incremental point).

[0084] Step S2-1: Based on the same operation as the built-in implementation, export a development scaffolding from the low-code platform. The scaffolding has completed most of the fixed logic content based on the standard of the extended entry.

[0085] Step S2-2: Further iterate functions based on the scaffolding to obtain extended code that can meet the incremental needs of low-code customers, and ensure that the extended code is also compatible with the existing functions corresponding to the built-in code.

[0086] Step S2-3: Build and package the extension code.

[0087] Step S3: Upload the expansion code to the agreed plug-in hosting warehouse for hosting through the expansion entrance exposed by the low-code platform.

[0088] Step S4: After the extension code is uploaded, the low-code platform reschedules the extension port loader to load the implementation strategy to enable the operation of the extension code.

[0089] From the above content, it can be seen that the technical solution of the present application first decouples the existing built-in code in the software development platform based on user needs, and obtains L incremental support points corresponding to different application scenarios. Compared with the existing method of delivering the full amount of code of the software development platform, the software development platform in the present application can achieve the technical effect of private delivery of part of the code based on the application scenario.

[0090] In addition, each incremental support point in the present application corresponds to a new demand of a user in an application scenario. After the target new demand is actually triggered, the present application does not directly store the extension code used to implement the target new demand in the software development platform. Instead, before the extension code needs to be run, the extension code outside the platform is temporarily loaded into the software development platform through the extension entrance of the corresponding incremental support point (ie, the target support point).

[0091] It can be seen from this that the technical solution of the present application adopts and integrates the extended code for realizing the target new requirements directly into the software development platform, thereby achieving the purpose of reducing the data volume of the built-in code in the software development platform, thereby achieving the technical effect of improving the efficiency of code delivery, and further solving the technical problem of low code delivery efficiency caused by directly adding the code for realizing the new requirements to the software development platform in the prior art.

[0092] According to another aspect of the embodiment of the present application, a code expansion device is also provided. Figure 3 is a schematic diagram of an optional code expansion device according to an embodiment of the present application, such as Figure 3 As shown, the code expansion device includes: a decoupling unit 301, a determining unit 302, a loading unit 303 and an operating unit 304.

[0093] Optionally, a decoupling unit is used to decouple the built-in code in the software development platform based on user needs to obtain L incremental support points, where L is a positive integer and the incremental support points are used to implement new user needs in different application scenarios; a determination unit is used to determine a target support point from the L incremental support points in response to the target new needs, where the target new needs are user needs that need to be implemented in the current software development task, and the user needs corresponding to the target support point are the same as the target new needs; a loading unit is used to load the extension code into the software development platform through the extension entry corresponding to the target support point, where the extension entry is the code loading interface of the software development platform, and the extension code is the code that implements the target new needs; a running unit is used to run the extension code after the software development platform has loaded the implementation strategy for the target new needs, where the implementation strategy includes at least the development strategy of the extension code and the environment deployment strategy when running the extension code.

[0094] In an optional embodiment, the determination unit includes: a first acquisition subunit, a detection subunit and a first determination subunit.

[0095] Optionally, the first acquisition subunit is used to acquire the application scenario of the target new demand and the application scenario of each incremental support point among the L incremental support points; the detection subunit is used to detect the similarity between the application scenario of the target new demand and the application scenario of each incremental support point to obtain L similarities; the first determination subunit is used to take the incremental support point corresponding to the maximum similarity among the L similarities as the target support point.

[0096] In an optional embodiment, the code expansion device further includes: a first generation unit, a second generation unit, a third generation unit and a storage unit.

[0097] Optionally, the first generation unit is used to generate an implementation strategy for the target new requirements based on the text content of the target new requirements; the second generation unit is used to generate scaffolding code for the target new requirements based on the implementation strategy, wherein the scaffolding code is used to determine the development framework of the extension code; the third generation unit is used to generate the extension code for the target new requirements based on the scaffolding code; the storage unit is used to store the extension code in a hosted warehouse, wherein the hosted warehouse is a database connected to the software development platform.

[0098] In an optional embodiment, the code expansion device further includes: an uploading unit.

[0099] Optionally, the uploading unit is used to upload the implementation strategy of the target new requirement to the software development platform, and bind the implementation strategy with the expansion entry corresponding to the target support point.

[0100] In an optional embodiment, the storage unit includes: a packaging subunit and an uploading subunit.

[0101] Optionally, the packaging subunit is used to package the extension code to obtain a packaged file corresponding to the extension code; the uploading subunit is used to upload the packaged file to the hosting warehouse through the extension entry corresponding to the target support point.

[0102] In an optional embodiment, the loading unit includes: a scanning subunit, a decompression subunit and a loading subunit.

[0103] Optionally, a scanning sub-unit is used to control the software development platform to scan the storage files of the hosted warehouse at preset time intervals; a decompression sub-unit is used to decompress the packaged files corresponding to the extension code when the storage files of the hosted warehouse include the packaged files corresponding to the extension code, so as to obtain the extension code; a loading sub-unit is used to load the extension code into the memory of the software development platform through the extension entry.

[0104] In an optional embodiment, the decoupling unit includes: a second acquiring subunit and a dividing subunit.

[0105] Optionally, the second acquisition sub-unit is used to obtain M application scenarios of the software to be developed in accordance with user needs, where M is a positive integer; the division sub-unit is used to divide the built-in codes in the software development platform according to the M application scenarios to obtain M code sets corresponding to the M application scenarios, wherein the built-in codes included in the code sets are used to implement user needs in the corresponding application scenarios.

[0106] From the above content, it can be seen that the technical solution of the present application first decouples the existing built-in code in the software development platform based on user needs, and obtains L incremental support points corresponding to different application scenarios. Compared with the existing method of delivering the full amount of code of the software development platform, the software development platform in the present application can achieve the technical effect of private delivery of part of the code based on the application scenario.

[0107] In addition, each incremental support point in the present application corresponds to a new demand of a user in an application scenario. After the target new demand is actually triggered, the present application does not directly store the extension code used to implement the target new demand in the software development platform. Instead, before the extension code needs to be run, the extension code outside the platform is temporarily loaded into the software development platform through the extension entrance of the corresponding incremental support point (ie, the target support point).

[0108] It can be seen from this that the technical solution of the present application adopts and integrates the extended code for realizing the target new requirements directly into the software development platform, thereby achieving the purpose of reducing the data volume of the built-in code in the software development platform, thereby achieving the technical effect of improving the efficiency of code delivery, and further solving the technical problem of low code delivery efficiency caused by directly adding the code for realizing the new requirements to the software development platform in the prior art.

[0109] According to another aspect of an embodiment of the present application, a computer program product is further provided, the computer program product comprising a stored computer program, wherein when the computer program is running, the computer program product is controlled to execute any one of the above code expansion methods.

[0110] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned code expansion methods by executing the executable instructions.

[0111] Optionally, Figure 4 is a schematic diagram of an optional electronic device according to an embodiment of the present application, such as Figure 4 As shown, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and implements any one of the above code expansion methods when the processor executes the program.

[0112] Optionally, the processor can implement the following steps when executing the program: decouple the built-in code in the software development platform based on user needs to obtain L incremental support points, where L is a positive integer, and the incremental support points are used to implement new user needs in different application scenarios; in response to the target new needs, determine a target support point from the L incremental support points, where the target new needs are user needs that need to be implemented in the current software development task, and the user needs corresponding to the target support point are the same as the target new needs; load the extension code to the software development platform through the extension entry corresponding to the target support point, where the extension entry is the code loading interface of the software development platform, and the extension code is the code that implements the target new needs; after the software development platform has loaded the implementation strategy for the target new needs, run the extension code, where the implementation strategy at least includes the development strategy of the extension code and the environment deployment strategy when running the extension code.

[0113] Optionally, when the processor executes the program, it can implement the following steps: obtain the application scenario of the target new demand and the application scenario of each incremental support point among the L incremental support points; detect the similarity between the application scenario of the target new demand and the application scenario of each incremental support point to obtain L similarities; and take the incremental support point corresponding to the maximum similarity among the L similarities as the target support point.

[0114] Optionally, when the processor executes the program, it can implement the following steps: generate an implementation strategy for the target new requirements based on the text content of the target new requirements; generate scaffolding code for the target new requirements based on the implementation strategy, wherein the scaffolding code is used to determine the development framework of the extension code; generate extension code for the target new requirements based on the scaffolding code; and store the extension code in a managed warehouse, wherein the managed warehouse is a database connected to the software development platform.

[0115] Optionally, when executing the program, the processor can implement the following steps: uploading the implementation strategy of the target new requirement to the software development platform, and binding the implementation strategy with the expansion entry corresponding to the target support point.

[0116] Optionally, the processor can implement the following steps when executing the program: packaging the extension code to obtain a packaged file corresponding to the extension code; uploading the packaged file to the hosting warehouse through the extension entry corresponding to the target support point.

[0117] Optionally, the processor can implement the following steps when executing the program: control the software development platform to scan the storage files of the hosted warehouse at preset intervals; when the storage files of the hosted warehouse include packaged files corresponding to the extension code, decompress the packaged files corresponding to the extension code to obtain the extension code; and load the extension code into the memory of the software development platform through the extension entry.

[0118] Optionally, when the processor executes the program, it can implement the following steps: obtain M application scenarios of the software to be developed in user needs, where M is a positive integer; divide the built-in code in the software development platform according to the M application scenarios, and obtain M code sets corresponding to the M application scenarios one by one, wherein the built-in code included in the code set is used to implement the user needs in the corresponding application scenarios.

[0119] The above-mentioned embodiments or examples disclosed in the present application are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection disclosed in the present application. In the absence of contradiction, each step in a certain embodiment or example in the present application can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.

[0120] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.

[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0125] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0126] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0127] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0128] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A code expansion method, It is characterized in that include: Based on user needs, the built-in code in the software development platform is decoupled to obtain L incremental support points, where L is a positive integer, and the incremental support points are used to realize new user needs in different application scenarios; In response to the target new requirement, a target support point is determined from the L incremental support points, wherein the target new requirement is a user requirement that needs to be achieved in the current software development task, and the user requirement corresponding to the target support point is the same as the target new requirement; Loading the expansion code to the software development platform through the expansion entry corresponding to the target support point, wherein the expansion entry is the code loading interface of the software development platform, and the expansion code is the code for realizing the target new requirements; After the software development platform has loaded the implementation strategy for the target new requirement, the extension code is run, wherein the implementation strategy at least includes the development strategy of the extension code and the environment deployment strategy when running the extension code.

2. The code expansion method according to claim 1, It is characterized in that In response to the target additional demand, determining a target support point from the L incremental support points includes: Obtaining an application scenario of the target new demand and an application scenario of each incremental support point in the L incremental support points; Detecting the similarity between the application scenario of the target new demand and the application scenario of each incremental support point to obtain L similarities; The incremental support point corresponding to the maximum similarity among the L similarities is used as the target support point.

3. The code expansion method according to claim 1, It is characterized in that Before loading the expansion code into the software development platform through the expansion entry corresponding to the target support point, the code expansion method further includes: Generating a strategy for implementing the target new requirement based on the text content of the target new requirement; Generate scaffolding code for the target new requirement according to the implementation strategy, wherein the scaffolding code is used to determine the development framework of the expansion code; Generate the expansion code of the target new requirement based on the scaffolding code; The extension code is stored in a hosting warehouse, wherein the hosting warehouse is a database connected to the software development platform.

4. The code expansion method according to claim 3, It is characterized in that After generating the implementation strategy of the target new requirement according to the text content of the target new requirement, the code expansion method further includes: The implementation strategy of the target newly added demand is uploaded to the software development platform, and the implementation strategy is bound to the expansion entry corresponding to the target support point.

5. The code expansion method according to claim 3, It is characterized in that Storing the extension code in a managed repository includes: Packaging the extended code to obtain a package file corresponding to the extended code; The packaged file is uploaded to the hosting warehouse through the expansion entry corresponding to the target support point.

6. The code expansion method according to claim 3, It is characterized in that Loading the expansion code into the software development platform through the expansion entry corresponding to the target support point includes: Controlling the software development platform to scan the storage files of the hosting warehouse at preset time intervals; In a case where the storage file of the managed warehouse includes a packaged file corresponding to the extended code, decompressing the packaged file corresponding to the extended code to obtain the extended code; The expansion code is loaded into the memory of the software development platform through the expansion entry.

7. The code expansion method according to claim 1, It is characterized in that In the process of decoupling the built-in code in the software development platform based on user needs, the code expansion method further includes: Obtaining M application scenarios of the software to be developed in the user's needs, where M is a positive integer; The built-in codes in the software development platform are divided according to the M application scenarios to obtain M code sets corresponding to the M application scenarios one by one, wherein the built-in codes included in the code sets are used to realize user needs in the corresponding application scenarios.

8. A code expansion device, It is characterized in that include: A decoupling unit, used to decouple the built-in code in the software development platform based on user needs to obtain L incremental support points, where L is a positive integer, and the incremental support points are used to realize new user needs in different application scenarios; A determination unit, configured to determine a target support point from the L incremental support points in response to a target new requirement, wherein the target new requirement is a user requirement that needs to be achieved in the current software development task, and the user requirement corresponding to the target support point is the same as the target new requirement; A loading unit, used to load the expansion code into the software development platform through the expansion entry corresponding to the target support point, wherein the expansion entry is a code loading interface of the software development platform, and the expansion code is a code for realizing the target new requirements; The running unit is used to run the extended code after the implementation strategy of the target new requirement is loaded on the software development platform, wherein the implementation strategy at least includes the development strategy of the extended code and the environment deployment strategy when running the extended code.

9. A computer program product, It is characterized in that The computer program product comprises a computer program, wherein when the computer program is run, the computer program product is controlled to execute the code expansion method according to any one of claims 1 to 7.

10. An electronic device, It is characterized in that It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the code expansion method described in any one of claims 1 to 7.