CN109542399B - Software development method and device, terminal equipment and computer readable storage medium - Google Patents

Software development method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN109542399B
CN109542399B CN201811249975.2A CN201811249975A CN109542399B CN 109542399 B CN109542399 B CN 109542399B CN 201811249975 A CN201811249975 A CN 201811249975A CN 109542399 B CN109542399 B CN 109542399B
Authority
CN
China
Prior art keywords
component
template
software development
page
target
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.)
Active
Application number
CN201811249975.2A
Other languages
Chinese (zh)
Other versions
CN109542399A (en
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.)
Shenzhen Kingdom Technology Co ltd
Original Assignee
Shenzhen Kingdom 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 Shenzhen Kingdom Technology Co ltd filed Critical Shenzhen Kingdom Technology Co ltd
Priority to CN201811249975.2A priority Critical patent/CN109542399B/en
Publication of CN109542399A publication Critical patent/CN109542399A/en
Application granted granted Critical
Publication of CN109542399B publication Critical patent/CN109542399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention is suitable for the technical field of software development, and provides a software development method, a device, terminal equipment and a computer readable storage medium, wherein the software development method comprises the following steps: acquiring software development requirements; determining a target component of a target page to be generated according to a software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: the method comprises the following steps of modifying an adjusting component based on a template component, creating a new component based on the template component, and determining a component to be replaced based on the template component; and assembling the template components and the target components in the page basic frame template to form a target page based on the component names and the position information of the target components. According to the technical scheme, the page is modularized, the page can be built and operated only by configuring the components, the development speed and the development flexibility of the page are greatly improved, and the development difficulty is reduced.

Description

Software development method and device, terminal equipment and computer readable storage medium
Technical Field
The invention belongs to the technical field of software development, and particularly relates to a software development method, a software development device, software development equipment and a computer-readable storage medium.
Background
The existing software development technology is generally developed by taking a page as a unit, and the development of software by taking the page as the unit has the following defects: 1) the development force is large, and the page does not have a sufficient decoupling function; 2) the redundant codes are more, and the operation efficiency is low; 3) the new demand of the page greatly changes the page, the pages are mutually involved, and the maintenance is difficult and inflexible.
Disclosure of Invention
In view of this, embodiments of the present invention provide a software development method, an apparatus, a device, and a computer-readable storage medium, so as to solve the problems of a software development method in the prior art, such as high development effort, low operation efficiency, and difficult maintenance.
A first aspect of an embodiment of the present invention provides a software development method, including:
acquiring software development requirements;
determining a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: an adjustment component modified based on the template component, a new component created based on the template component, a component to be replaced determined based on the template component;
and assembling the template component and the target component in the page basic frame template to form the target page based on the component name and the position information of the target component.
A second aspect of an embodiment of the present invention provides a software development apparatus, including:
the acquisition module is used for software development requirements;
the execution module is used for determining a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: an adjustment component modified based on the template component, a new component created based on the template component, a component to be replaced determined based on the template component;
and the generating module is used for assembling the template component and the target component in the page basic frame template to form the target page based on the component name and the position information of the target component.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
according to the technical scheme, the software development requirements are met by modifying the template assembly, replacing the template assembly and building a new assembly, and the creation of the page is realized by modifying, replacing or building the assembly, so that the page is modularized, the building and operation of the page can be achieved only by configuring the assembly, and the development speed and the development flexibility of the page are greatly improved. For newly added products, a large amount of manpower is not required to be invested for developing the page from the beginning, only one page basic frame Boban needs to be copied, software development can be completed by modifying the configuration of the template components or adding a small amount of new components, the development efficiency is increased in multiples, and the development cost is greatly reduced. In addition, the problem of browser compatibility does not need to be considered when a universal page basic frame template is used, and the development difficulty is greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a software development method according to a first embodiment of the present invention;
fig. 2 is a detailed flowchart of S102 in a second embodiment of the software development method according to the embodiment of the present invention;
fig. 3 is a schematic detailed flow diagram of S103 in a third embodiment of the software development method according to the embodiment of the present invention;
FIG. 4 is a flowchart illustrating a fourth embodiment of a software development method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fifth embodiment of a software development method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a software development apparatus according to a first embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second embodiment of a software development apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a detailed structure of a generating module in a third embodiment of the software development apparatus according to the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a fourth embodiment of a software development apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
In the embodiment of the invention, the target component of the target page to be generated is determined based on the template component by acquiring the software development requirement and according to the software development requirement on the preset page frame template. The target component comprises at least one of an adjusting component obtained by modification based on the template component, a new component created based on the template component and a component to be replaced determined based on the template component, and the reserved template component and the generated target component are assembled in the page basic frame template to form a target page based on the component name and the position information of the target component. Because software is developed based on the preset page basic frame template, a large amount of manpower is not required to be invested to develop the page from the beginning, and the expected result can be completed only by replacing, modifying or newly adding components, so that the development efficiency is greatly improved, and the development cost is greatly reduced. Meanwhile, the problem of browser compatibility does not need to be considered based on the preset page basic frame template, and the development difficulty is reduced. In addition, the page is modularized and configured, the target page is formed by building blocks of the modules, and the modification of the page is realized by modifying the configuration file of the template module, so that the method is extremely flexible.
In the embodiment of the present invention, the main execution body of the process is a terminal device, and the terminal device includes, but is not limited to, a notebook computer, a server, a tablet computer, a smart phone, and other terminal devices having a software development function. In particular, the terminal device can be used for providing a load-bearing function or a front-end interface display of the desktop application for the native application when executing the process in the implementation of the present invention, and providing an interface assembly framework for the desktop application.
Fig. 1 is a schematic flow chart of a first embodiment of the software development method of the present invention, which is detailed as follows:
and S101, acquiring software development requirements.
In this embodiment, the user or the developer sends the software development requirement to the terminal device, or the user or the developer inputs the software development requirement on the terminal device. The terminal equipment is internally provided with a page basic frame template, and a plurality of template components are arranged in the page basic frame template. After the terminal equipment acquires the software development requirement, the content of the software development requirement is analyzed, and a plurality of function requirements contained in the software development requirement are matched with the functions of the template component to determine a function list. The function list comprises two types of function requirements, wherein one type of function requirement can be met by modifying the configuration of the template component, and the second type of function requirement cannot be met by modifying the configuration of the template component.
S102, determining a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: the modified adjustment component based on the template component, the new component created based on the template component, and the component to be replaced determined based on the template component.
In this embodiment, at least one template component is displayed on the page base frame template. In addition, the page basic framework template is also connected with a component library, and a plurality of components to be replaced created by developers or users are stored in the component library so that the page basic framework template calls the components to be replaced in the component library based on software development requirements. After the terminal equipment obtains the software development requirement, determining a target component of a target page to be generated based on a template on a preset page basic frame template. When the configuration file of the template component is modified, the target component is an adjusting component modified based on the template component, and when the configuration file of the template component cannot achieve the function of the target component yet, but a component to be replaced with the same function as the target component exists in the component library, the target component is the component to be replaced determined based on the template component. When the same component to be replaced as the target component still does not exist in the component library, the component development module is enabled to develop a new component. Optionally, when the component library does not have a component to be replaced with the same function as the target component, the component to be replaced associated with the function of the target component may be selected from the component library, and then the configuration file of the component to be replaced is modified to achieve the functional effect of the target component, so as to improve the development efficiency.
After the functional requirements of the software development requirements are classified, directly modifying a configuration file on the basis of the corresponding template component for the first type of functional requirements in the functional list to obtain a target component; and calling the component to be replaced or starting a component development module from the component library for the second type of function requirements in the function list, and defining a component configuration file and a component interaction interface according to the architecture standard based on the function requirements.
S103, assembling the template component and the target component in the page basic frame template to form the target page based on the component name and the position information of the target component.
In the implementation, when the configuration file of the template component is modified, or a new component is created, or a component with replacement is determined to generate the target component, the target component is named according to the software development requirement. And meanwhile, determining the position information of the target component in the target page according to the software development requirement. After the required target assembly is generated, the position and the display name of the target assembly on the page basic frame template are determined according to the name and the position information of the target assembly, and the target assembly is assembled with the unmodified template assembly on the page basic frame template and the generated target assembly to form a target page.
In this embodiment, the page base frame template is based on an open-source MVVM architecture design, such as angularJs frame, exact frame, Vue frame, and is mainly applied to provide a native application with a bearer function or a front-end interface display of a desktop application, and is an interface assembly frame of the desktop application, not a website class. The data structure defined by each component adopts an MVVM (multifunction virtual machine) framework, the component data displayed on the interface can be bound with the defined component data structure, a monitoring event exists in the component, once the component data defined by the background is changed, the page data displayed on the front-end interface is re-rendered, otherwise, the component data displayed on the front-end interface is changed, and the component data defined by the background is modified accordingly. By adopting the MVVM framework, the front-end page data and the background definition data are bidirectionally bound, and the data drives the page, so that the development difficulty is greatly simplified, the operation is easy, and the operation is simple.
In the implementation, the software development requirements are met by modifying the template assembly, replacing the template assembly and building a new assembly, and the creation of the page is realized by modifying, replacing or building the assembly, so that the page is modularized, the building and operation of the page can be achieved only by configuring the assembly, and the development speed and the development flexibility of the page are greatly improved. For newly added products, a large amount of manpower is not required to be invested for developing the page from the beginning, only one page basic frame template needs to be copied, software development can be completed by modifying the configuration of template components or adding a small amount of new components, the development efficiency is increased in multiples, and the development cost is greatly reduced. In addition, the problem of browser compatibility does not need to be considered when a universal page basic frame template is used, and the development difficulty is greatly reduced.
Fig. 2 shows a detailed flowchart of a software development method S102 according to a second embodiment of the present invention. Referring to fig. 2, based on the embodiment in fig. 1, in the software development method provided in this embodiment, S102 includes S1021 to S1025, which are detailed as follows:
and S1021, analyzing whether the template component on the page basic frame template is associated with the function requirement in the software development requirement.
The software development requirements comprise function requirements, and after the terminal equipment acquires the software development requirements, the function requirements in the software development requirements are classified to form a function list. The function list comprises two types of function requirements, wherein one type of function requirement can be met by modifying the configuration of the template component, and the second type of function requirement cannot be met by modifying the configuration of the template component. Optionally, whether the template component is associated with the function requirement is judged by analyzing whether the function type of the template component is the same as the function type of the function requirement. For example, if the template component is a graph component and the functional requirement is a log component, then the template component is not associated with the functional requirement; if the template component is a graph component, and all that is required by the functional requirement is also a graph component, then the template component can be identified as being associated with the functional requirement. It should be noted that, besides representing whether the template component is associated with the functional requirement through the component type, other forms may also be used to represent the association.
And S1022, if the association exists, modifying the template component on the page basic frame template according to the software development requirement to obtain the adjusting component.
If the template component is associated with the function requirement in the software development requirement, namely the configuration file of the template component is modified to achieve the function effect required by the function requirement in the software development requirement, the template component on the page basic frame template is modified according to the software development requirement to obtain the adjustment component. For example, if the template group price is a graph component, and the functional requirement in the software development requirement is also a graph, and the difference is that the coordinate axis units of the graphs are different, the coordinate axis units in the configuration file of the corresponding template component may be modified.
And S1023, if no association exists, analyzing whether a preset component library has a component to be replaced which is matched with the function requirement in the software development requirement.
The page basic frame template is connected with a component library, a plurality of components to be replaced created by developers or users are stored in the component library, and the components in the component library are not displayed on the page basic frame template, so that the situation that development software needs to delete redundant template components is avoided, and development work is increased. If the template component is not associated with the functional requirement in the software development requirement, that is, it is stated that the functional effect required by the functional requirement in the software development requirement cannot be achieved by modifying the configuration file of the template component, whether a component to be replaced matched with the functional requirement in the software development requirement exists in a preset component library or not is continuously analyzed. It should be noted that matching between the function of the component to be replaced and the function requirement in the software development requirement means that the replacement component can implement the function required by the function requirement in the software development requirement, and the function of the component to be replaced is to achieve reuse of the same functional component, so as to reduce repeated construction of the component and improve development efficiency.
Step S1024, if the component library has a component to be replaced which is matched with the function requirement in the software development requirement, acquiring the component to be replaced according to the software development requirement.
If the component library has a component to be replaced which is matched with the function requirement in the software development requirement, namely, the component library has a component with the same function as the function requirement, the component to be replaced is obtained according to the function requirement in the software development requirement. The requirement of functional requirements is met through direct multiplexing of the components to be replaced, the functional multiplexing of the components is facilitated, and the development efficiency is improved.
Step S1025, if the component library does not have the component to be replaced which is matched with the function requirement in the software development requirement, the new component is created on the page basic frame template according to the software development requirement.
If the component library does not have a component to be replaced matched with the function requirement in the software development requirement, namely, the component library does not have a component with the same function as the function requirement, a new component is created on the page basic frame template according to the software development requirement, and the function of the new component corresponds to the function requirement in the software development requirement. Optionally, when a component to be replaced which is matched with a function requirement in the software development requirement does not exist in the component library, selecting the component to be replaced which has relevance with the function requirement from the component library according to the software development requirement. After the component to be replaced is obtained, the creation of a new component is achieved by modifying the configuration file of the component to be replaced on the basis of the component to be replaced, so that the development efficiency is further reduced. It is understood that the components to be replaced in the component library are classified according to function types, such as log components, common components, chart components, monitoring components and the like, so as to facilitate searching and analysis.
In this embodiment, whether the template component on the basic frame template is applicable or not is determined by analyzing whether the template component on the page basic frame template is associated with the functional requirement in the software development requirement or not. For the applicable template component, reserving or modifying the configuration file of the applicable template component to obtain an adjusting component; selecting applicable components to be replaced from the component library to replace the template components for the non-adaptive template components; when the component to be replaced does not exist, a new component is recreated. The embodiment starts from the functional requirements of software development requirements to perform retention, modification, new construction and replacement of components on the page basic frame template, componentizes the functional requirements, and assembles the components into the page, so that the page development efficiency can be greatly improved.
Fig. 3 shows a detailed flowchart of a software development method S103 according to a third embodiment of the present invention. Referring to fig. 3, based on the embodiment of fig. 1, when the target component includes a new component created based on the template component, in the software development method provided in this embodiment, S103 includes S1031 to S1033, which are detailed as follows:
and S1031, analyzing whether the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement or not.
The software development requirement comprises position information of the component corresponding to the function requirement, the position information comprises display azimuth information of the component on the display interface, and the position of the component on the display interface is determined through the position information of the component. When a new component is created, the assembly location of the new component needs to be determined. The new component may exist in the page of the current page as well as in a sub-page of the current page.
When the target component comprises a new component created based on the template component, analyzing whether the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement or not. It should be noted that the software development requirement includes location information of the component corresponding to the functional requirement;
s1032, if the new component does not conform to the target page, replacing the template component in the page basic frame template corresponding to the position information of the new component by the new component to form the target page;
and if the template component in the page basic frame template corresponding to the position information of the new component does not meet the software development requirement, namely the function of the template component corresponding to the display orientation of the new component cannot meet the function requirement in the software development requirement, replacing the template component corresponding to the position information of the new component by the new component, namely setting the new component at the position of the replaced template component. And finally, assembling the page basic frame template, the new components with the determined positions and the unmodified template components to form the target page.
And S1033, if the new component is matched with the target page, embedding the new component into the template component in the page basic frame template corresponding to the position information of the new component to form the target page.
If the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement, the function of the template component corresponding to the display orientation of the new component belongs to the function requirement in the software development requirement, the new component is embedded into the template component in the page basic frame template corresponding to the position information of the new component, and then the page basic frame template, the new component with the determined position and the unmodified template component are assembled to form the target page. It is understood that the template components on the page base frame template can also be modified or replaced, and then the page base frame template, the modified or replaced template components, the unmodified template components and the new components with determined positions are assembled to form the target page. The target page includes: one or more of a modified template component (i.e., an adjusted component), an unmodified template component, a new component after a determined location, a component to be replaced.
In this embodiment, by analyzing whether the template component in the page basic frame template corresponding to the location information of the new component meets the software development requirement, when the function of the template component corresponding to the location information of the new component meets the software development requirement, it is determined that the new component is used as a sub-component of the template component corresponding to the location information of the new component, and the new component is nested in the template component; and when the function of the template component corresponding to the position information of the new component cannot meet the soft nail development requirement, replacing the template component corresponding to the position information by the new component. The position information of the new component can be flexibly used for nesting the component, and the assembly form of the component is expanded to adapt to more complex page requirements.
Fig. 4 is a flowchart illustrating a software development method according to a fourth embodiment of the present invention. Referring to fig. 4, the embodiment of the present embodiment is different from the embodiment of fig. 1 to 3 in that S203, S201 to S202 are the same as S101 to S102 of the above embodiment, S204 is the same as S103 of the above embodiment, and S201 to S202 and S204 refer to the description of S101 to S102 and S103 of the above embodiment, which is not repeated herein. S203 is detailed in detail as follows:
s203, modifying the basic configuration of the page basic frame template, wherein the basic configuration comprises one or more items of item names, head buttons, icons, user interaction interfaces and menu pages.
Basic configuration is configured on the page basic frame template, and the basic configuration comprises project names, head buttons, icons, user interaction interfaces, menu pages and the like. And when the basic configuration requirement in the software development requirement is not in accordance with the basic configuration content on the page basic frame template, modifying the basic configuration on the page basic frame template according to the basic configuration requirement, wherein the modified basic configuration comprises one or more items of project names, head buttons, icons, user interaction interfaces and menu pages. It can be understood that the page basic frame template is configured with a UI library, the UI library comprises a plurality of user interaction interfaces, and when the user interaction interfaces are modified, the UI interaction interfaces corresponding to the software development requirements are selected from the UI library according to the software development requirements.
In the implementation, before assembling the page, each project of the basic configuration is modified based on the software development requirement, so that richer development functions are provided, and more development requirements are met. And the development requirement can be met only by correspondingly modifying the configuration file of the basic configuration project, so that the development difficulty is reduced.
Fig. 5 is a flowchart illustrating a software development method according to a fifth embodiment of the present invention. Referring to fig. 5, the embodiment of the present invention differs from the embodiment of fig. 1 to 3 in that S301 and S302 to S304 are the same as S101 to S103 implemented above, and S302 to S304 refer to the description of S101 to S103 in the embodiment, which is not repeated herein. S301 is detailed specifically as follows:
s301, acquiring basic frame template data, and initializing the basic frame template data to form a page basic frame template.
In the embodiment, before the software development requirement is obtained, the basic frame template data is obtained from the preset path, and the basic frame template data is initialized to form the page basic frame template, so that each software development is based on the same page basic frame template, software is developed on the most basic frame, template components which are not related to the non-functional requirement and brought by unnecessary functions are reduced, and the development efficiency is improved. Optionally, the basic frame template data is obtained according to preset classification rules, the preset classification rules may be that the basic frame template data is classified according to different fields, and template components built in page basic frame templates in different fields are different so as to meet requirements of the fields.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In the embodiment of the present invention, a software development apparatus is further provided, where each unit included in the software development apparatus is used to execute each step in the embodiment corresponding to fig. 1. Please refer to fig. 1 for the related description of the corresponding embodiment. Fig. 6 shows a schematic structural diagram of a first embodiment of the software development apparatus of the present invention, including:
an acquisition module 21, the acquisition module 21 being for software development requirements,
the execution module 22, the execution module 22 is configured to determine a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: the modified adjustment component based on the template component, the new component created based on the template component, and the component to be replaced determined based on the template component.
And the generating module 23 is configured to assemble the template component and the target component in the page basic frame template to form the target page based on the component name and the location information of the target component.
Fig. 7 is a schematic structural diagram of a second embodiment of the software development apparatus of the present invention, wherein the software development requirement includes a functional requirement, and based on fig. 6, the software development apparatus further includes a first analysis module 24 and a second analysis module 25,
a first analysis module 24, configured to analyze whether a template component on the page basic frame template is associated with a functional requirement in the software development requirements;
the second analysis module 25 is configured to, when the template component is not associated with a functional requirement in the software development requirements, analyze whether a component to be replaced matching the functional requirement in the software development requirements exists in a preset component library;
the execution module 22 is further configured to modify the template component on the page basic frame template according to the software development requirement to obtain the adjustment component when the template component is associated with a function requirement in the software development requirement; and when the component to be replaced matched with the functional requirement in the software development requirement does not exist in the group price library, creating the new component on the page basic frame template according to the software development requirement.
Fig. 8 shows a schematic structural diagram of a third embodiment of the software development apparatus of the present invention, wherein the generating module 23 includes a judging module 231 and an assembling module 232, when the target component includes a new component created based on the template component,
the judging module 231 is configured to analyze whether a template component in the page basic frame template corresponding to the location information of the new component meets the software development requirement;
an assembling module 232, configured to replace, when a template component in the page basic frame template corresponding to the location information of the new component does not meet the software development requirement, the template component in the page basic frame template corresponding to the location information of the new component by the new component to form the target page; and the new component is embedded into the template component in the page basic frame template corresponding to the position information of the new component to form the target page when the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement.
Further, the execution module 22 is further configured to modify a basic configuration of the page basic frame template according to the software development requirement, where the basic configuration includes one or more of a project name, a header button, an icon, a user interaction interface, and a menu page.
Fig. 9 shows a schematic structural diagram of a fourth embodiment of the software development apparatus according to the present invention, based on fig. 6, the software development apparatus further includes an initialization module 20, and the obtaining module 21 is further configured to obtain basic frame template data, and initialize the basic frame template data to form a page basic frame template.
The function implementation of each module in the software development device corresponds to each step in the software development method embodiment, and the function and implementation process are not described in detail here.
Fig. 10 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 10, the embodiment/terminal device 6 includes: a processor 60, a memory 61 and a computer program 62, such as a software development program, stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the various software development method embodiments described above, such as steps S101 to S103 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 21 to 23 shown in fig. 5.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the apparatus/terminal device 6. For example, the computer program 62 may be divided into an acquisition module, an execution module, and a generation module (module in a virtual device), and the specific functions of each module are as follows:
the acquisition module is used for software development requirements; the execution module is used for determining a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: the method comprises the following steps of modifying an adjusting component based on a template component, creating a new component based on the template component, and determining a component to be replaced based on the template component; the generating module is used for assembling the template components and the target components in the page basic frame template to form a target page based on the component names and the position information of the target components.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 6 device may include, but is not limited to, a processor 60, a memory 61. It will be understood by those skilled in the art that fig. 6 is only an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device 6 may further include an input-output device, a network access device, a bus, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing the computer program and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A software development method, comprising:
acquiring software development requirements;
determining a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: an adjustment component modified based on the template component, a new component created based on the template component, a component to be replaced determined based on the template component;
assembling the template component and the target component in the page basic frame template to form the target page based on the component name and the position information of the target component;
the method for determining the target component of the target page to be generated according to the software development requirement and the template component on the preset page basic frame template comprises the following steps:
analyzing whether template components on the page basic frame template are associated with functional requirements in the software development requirements or not;
if the correlation exists, modifying the template component on the page basic frame template according to the software development requirement to obtain the adjusting component;
if the correlation does not exist, analyzing whether a component to be replaced matched with the function requirement in the software development requirement exists in a preset component library or not;
if the component library has a component to be replaced which is matched with the function requirement in the software development requirement, acquiring the component to be replaced according to the software development requirement;
and if the component library does not have a component to be replaced which is matched with the function requirement in the software development requirement, creating the new component on the page basic frame template according to the software development requirement.
2. The software development method of claim 1, wherein when the target component includes a new component created based on the template component, the assembling the template component and the target component in the page base frame template into the target page based on the component name and the location information of the target component comprises:
analyzing whether the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement or not;
if not, replacing the new component with a template component in the page basic frame template corresponding to the position information of the new component to form the target page;
and if so, embedding the new component into a template component in the page basic frame template corresponding to the position information of the new component to form the target page.
3. The software development method of claim 1, wherein said assembling the template component and the target component in the page base frame template to form the target page based on the component name and the location information of the target component comprises:
modifying a base configuration of the page base frame template, the base configuration including one or more of a project name, a header button, an icon, a user interaction interface, and a menu page.
4. The software development method according to any one of claims 1 to 3, wherein before acquiring the software development requirement, the method further comprises:
acquiring basic frame template data, and initializing the basic frame template data to form a page basic frame template.
5. A software development apparatus, comprising:
the acquisition module is used for software development requirements;
the execution module is used for determining a target component of a target page to be generated according to the software development requirement and a template component on a preset page basic frame template; the target component includes at least one of: an adjustment component modified based on the template component, a new component created based on the template component, a component to be replaced determined based on the template component;
the generating module is used for assembling the template component and the target component in the page basic frame template to form the target page based on the component name and the position information of the target component;
wherein the software development requirement comprises a function requirement, the software development device further comprises a first analysis module and a second analysis module,
the first analysis module is used for analyzing whether the template component on the page basic frame template is associated with the functional requirement in the software development requirement;
the second analysis module is used for analyzing whether a component to be replaced matched with the functional requirement in the software development requirement exists in a preset component library or not when the template component is not associated with the functional requirement in the software development requirement;
the execution module is further configured to modify the template component on the page basic frame template according to the software development requirement to obtain the adjustment component when the template component is associated with a functional requirement in the software development requirement; and when the component library does not have a component to be replaced which is matched with the functional requirement in the software development requirement, creating the new component on the page basic frame template according to the software development requirement.
6. The software development apparatus of claim 5, wherein the generation module includes a determination module and an assembly module, when the target component includes a new component created based on the template component,
the judging module is used for analyzing whether the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement or not;
the assembling module is used for replacing the new component with the template component in the page basic frame template corresponding to the position information of the new component to form the target page when the template component in the page basic frame template corresponding to the position information of the new component does not accord with the software development requirement; and the new component is embedded into the template component in the page basic frame template corresponding to the position information of the new component to form the target page when the template component in the page basic frame template corresponding to the position information of the new component meets the software development requirement.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201811249975.2A 2018-10-25 2018-10-25 Software development method and device, terminal equipment and computer readable storage medium Active CN109542399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811249975.2A CN109542399B (en) 2018-10-25 2018-10-25 Software development method and device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811249975.2A CN109542399B (en) 2018-10-25 2018-10-25 Software development method and device, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109542399A CN109542399A (en) 2019-03-29
CN109542399B true CN109542399B (en) 2021-08-10

Family

ID=65845428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811249975.2A Active CN109542399B (en) 2018-10-25 2018-10-25 Software development method and device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109542399B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992251B (en) * 2019-04-17 2024-02-23 上海通天晓信息技术有限公司 Business variable-oriented software development scheme generation method
CN110888700B (en) * 2019-07-31 2024-04-12 中至数据集团股份有限公司 Promotion page configuration method and device, readable storage medium and computer equipment
CN112329413A (en) * 2019-08-02 2021-02-05 阿里巴巴集团控股有限公司 Template building method, file generation method, template system, device and computer equipment
CN110780868A (en) * 2019-10-10 2020-02-11 北大方正集团有限公司 Website development method, device, equipment and storage medium based on componentized template
CN111158680A (en) * 2019-12-27 2020-05-15 北京同邦卓益科技有限公司 Page construction method, device, equipment and storage medium
CN111158684B (en) * 2019-12-30 2023-07-04 北京天融信网络安全技术有限公司 System creation method, device, electronic equipment and readable storage medium
CN111208999A (en) * 2020-01-07 2020-05-29 深圳迅策科技有限公司 Template-based instruction generation method and device, terminal equipment and storage medium
CN113138772B (en) * 2020-01-19 2023-12-05 北京京东振世信息技术有限公司 Construction method and device of data processing platform, electronic equipment and storage medium
CN111324337A (en) * 2020-02-12 2020-06-23 深圳市商汤科技有限公司 Method, system, device and storage medium for constructing software module
CN111399810A (en) * 2020-03-11 2020-07-10 杭州涂鸦信息技术有限公司 iOS application program dynamic componentization development method, system and equipment thereof
CN111857803A (en) * 2020-07-20 2020-10-30 北京达佳互联信息技术有限公司 Page updating method, device, server and storage medium
CN112214375B (en) * 2020-10-13 2023-02-03 中国平安人寿保险股份有限公司 Alarm method and device for selected component, computer equipment and storage medium
CN112379942A (en) * 2020-11-16 2021-02-19 东信和平科技股份有限公司 Configuration method and device of scanning and checking software and scanning and checking method thereof
CN113220370A (en) * 2021-05-28 2021-08-06 杭州数跑科技有限公司 Method, system, device and storage medium for managing active application based on component
CN113778397A (en) * 2021-09-01 2021-12-10 粒子文化科技集团(杭州)股份有限公司 Page generation method and device, electronic device and storage medium
CN113535135B (en) * 2021-09-09 2022-02-15 深圳市蓝凌软件股份有限公司 Software development method and device, computer equipment and storage medium
CN113656022B (en) * 2021-10-20 2022-04-08 深圳市蓝凌软件股份有限公司 Software development method and device, computer equipment and storage medium
CN114579158A (en) * 2022-03-09 2022-06-03 常州天健智能科技有限公司 Development management system for integrated system software

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506193A (en) * 2017-08-18 2017-12-22 平安科技(深圳)有限公司 A kind of development approach of subsystem page, storage medium and server
CN108153520A (en) * 2018-03-20 2018-06-12 上海屹通信息科技发展有限公司 Software development methodology and device
CN108256025A (en) * 2018-01-10 2018-07-06 链家网(北京)科技有限公司 The construction method and device of the page based on HTML5

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965690B (en) * 2014-04-18 2018-07-06 腾讯科技(深圳)有限公司 Data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506193A (en) * 2017-08-18 2017-12-22 平安科技(深圳)有限公司 A kind of development approach of subsystem page, storage medium and server
CN108256025A (en) * 2018-01-10 2018-07-06 链家网(北京)科技有限公司 The construction method and device of the page based on HTML5
CN108153520A (en) * 2018-03-20 2018-06-12 上海屹通信息科技发展有限公司 Software development methodology and device

Also Published As

Publication number Publication date
CN109542399A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
WO2021017735A1 (en) Smart contract formal verification method, electronic apparatus and storage medium
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN110888720A (en) Task processing method and device, computer equipment and storage medium
CN111736840A (en) Compiling method and running method of applet, storage medium and electronic equipment
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
CN108170425B (en) Program code modification method and device and terminal equipment
CN115794437A (en) Calling method and device of microservice, computer equipment and storage medium
US10289219B2 (en) Communicating with an unsupported input device
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN108062401B (en) Application recommendation method and device and storage medium
US20190196794A1 (en) Visual programming method, system and terminal device
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN114911541B (en) Processing method and device of configuration information, electronic equipment and storage medium
EP3519964B1 (en) Electronic apparatus for recording debugging information and control method thereof
CN107071553B (en) Method, device and computer readable storage medium for modifying video and voice
CN112905931B (en) Page information display method and device, electronic equipment and storage medium
CN112799658B (en) Model training method, model training platform, electronic device, and storage medium
CN111813407B (en) Game development method, game running device and electronic equipment
CN107506299B (en) Code analysis method and terminal equipment
CN111949510A (en) Test processing method and device, electronic equipment and readable storage medium
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
EP4191407A1 (en) Method and device for generating and registering ui service package and loading ui service
CN113342413B (en) Method, apparatus, device, medium, and article for processing components

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
GR01 Patent grant
GR01 Patent grant