Programming method, device and equipment based on component arrangement
A programming method and component technology, applied in the computer field, can solve problems such as code logic duplication and maintenance inconvenience, and achieve the effects of improving programming efficiency, avoiding code logic duplication, and avoiding inconvenience in later maintenance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0034] Example 1. Suppose multiple component objects include components
[0035] Then, before performing step 102, it also includes: the step of disassembling the component template, specifically:
[0036] S11. Acquiring multiple software program samples, such as payment programs, order placement programs, etc.;
[0037] S12. Analyzing and obtaining the business function logic of each software program sample;
[0038] S13. Based on the business function logic, disassemble a plurality of component templates from the software program sample and store them in the component object library.
[0039] Among them, the dismantling process follows the principle of moderation, including that the particle size should not be too coarse or too fine. Components that are too coarse-grained need to be gradually dismantled during iterative development; the granularity of components should not be too small. Trivial or deep-level structures are not conducive to arrangement and use, and will inc...
example 2
[0043] Example 2. The multiple component objects also include a component queue, that is, the programming platform can provide not only component templates but also component queue templates, wherein the component queue refers to that after the component instances are arranged, they have complete business logic collection of components.
[0044] Then, before performing step 102, on the basis of Example 1, the method further includes:
[0045] S21. Select a target component set from the component object library;
[0046] S22. Arranging and processing the component templates in the target component set to obtain a component queue template and store it in the component object library; wherein, each component queue template in the component object library has complete business logic and business logic Do not overlap. Specific examples can be:
[0047] The programming system can count the distribution of various component queues independently arranged by the user group in history,...
example 3
[0050] Example 3: The plurality of component objects further includes a component tree, that is, the programming platform may provide a component tree in addition to a component template and a component queue template, and the component tree includes a component queue and components.
[0051] Then, before performing step 102, on the basis of examples 1 and 2, the method further includes:
[0052] Analyze the relationship between the business function logic between the component template and the component queue template, and arrange the components and the component queue, or the component queue and the component queue based on the relationship, and obtain the component tree template and store it in the component object library middle.
[0053] That is to say, on the basis of the previous two examples, Example 3 further arranges the component queue as an editable element, so as to arrange the expected component tree.
[0054] Step 106: Run the plurality of component object temp...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


