CN113126978A - Programming visualization method, device, equipment and storage medium - Google Patents

Programming visualization method, device, equipment and storage medium Download PDF

Info

Publication number
CN113126978A
CN113126978A CN202110323579.5A CN202110323579A CN113126978A CN 113126978 A CN113126978 A CN 113126978A CN 202110323579 A CN202110323579 A CN 202110323579A CN 113126978 A CN113126978 A CN 113126978A
Authority
CN
China
Prior art keywords
step block
programming
visualization
instruction
visualization method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110323579.5A
Other languages
Chinese (zh)
Inventor
甘剑锋
梁浩彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baima Technology Co ltd
Original Assignee
Guangzhou Baima Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baima Technology Co ltd filed Critical Guangzhou Baima Technology Co ltd
Priority to CN202110323579.5A priority Critical patent/CN113126978A/en
Publication of CN113126978A publication Critical patent/CN113126978A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention discloses a programming visualization method, a device, equipment and a storage medium, wherein the method comprises the steps of responding to a step block establishing instruction and adding an event step block in a target area; and responding to a flow connection instruction, and performing association connection on each event step block. According to the invention, the time step blocks are created and connected, so that the effect of visual programming is realized, the universality of programming is effectively improved, the compiling time can be greatly saved, the online debugging efficiency can be improved, and the maintenance cost is effectively reduced.

Description

Programming visualization method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for program visualization.
Background
With the development of computer technology, various programming languages have appeared, and various programming languages have different characteristics and programming syntax, so that technicians need to learn and use different programming languages when programming, and the disadvantages of high learning cost of the programming languages and high maintenance cost of codes written in different languages are encountered in the process.
Disclosure of Invention
The invention mainly aims to provide a programming visualization method, a programming visualization device, programming visualization equipment and a storage medium, and aims to solve the technical problem of high maintenance cost.
To achieve the above object, a first aspect of embodiments of the present application provides a programming visualization method, which includes the following steps:
in response to the step block creation instruction, adding an event step block in the target area;
and responding to a flow connection instruction, and performing association connection on each event step block.
In an embodiment of the first aspect, the method further comprises:
and compiling to obtain executable script program codes according to the event step blocks and the connection relation among the event step blocks.
In an embodiment of the first aspect, the method further comprises:
the script program code is executed in response to the execution instruction.
In one embodiment of the first aspect, the association connection is identified between the event step blocks by an arrow.
In an embodiment of the first aspect, the step block creation instruction includes a step block new instruction or a step block drag instruction.
In one embodiment of the first aspect, the event step block includes processing a data source and an operation instruction.
In one embodiment of the first aspect, the process data source includes a database data table, memory data, and event step block generation data.
A second aspect of embodiments of the present application provides a programming visualization device, including:
a creating unit for adding an event step block in the target area in response to the step block creating instruction;
and the association unit is used for responding to a flow connection instruction and performing association connection on each event step block.
A third aspect of embodiments of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the computer program, when executed by the processor, implements the steps of the programmed visualization method according to the first aspect.
A fourth aspect of embodiments of the present application provides a computer storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the programmed visualization method according to the first aspect.
The scheme of the invention at least comprises the following beneficial effects:
the programming visualization method, the device, the equipment and the storage medium are connected through the creation time step block, so that the visualization programming effect is realized, the programming universality is effectively improved, the compiling time can be greatly saved, the online debugging efficiency can be improved, and the maintenance cost is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of the steps of a programming visualization method of the present invention;
FIG. 2 is a block diagram of a programming visualization device of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In addition, the technical solutions in the embodiments of the present invention may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
The programming visualization method provided by the embodiment of the application can be applied to a visualization programming tool, and the visualization programming tool can comprise a step block selection area and a target area.
The step block selection area is used for providing a plurality of different types of event step blocks for creation selection, and the target area is used for layout processing of the event step blocks.
In the embodiment of the application, the visual programming refers to a programming mode that can be performed by only dragging an event step block without using a code, the event step block refers to a rectangular block structure used for replacing a code segment in the visual programming, and an application program created by the building block can be used in a social tool or can be a relatively independent application program (APP), such as a mini-game and a small program which are run in the social tool.
With reference to fig. 1, an embodiment of the present application provides a programming visualization method, which includes the following steps:
s1, in response to the step block creation instruction, adding an event step block in the target area.
In this embodiment, the step block creation instruction includes a step block new creation instruction or a step block drag instruction. Step block new instructions indicate that event step blocks are added through a new button; the step block dragging instruction indicates that the event step block is added by selecting the event step block in the step block selection area and dragging the event step block to the target area.
The event step block may include a processing data source and an operation instruction. The processing data source comprises a database data table, memory data and event step block generation data.
In this embodiment, the operation instruction in the event step block may be described by a natural language or a graphic, and is described by a natural language or a graphic, so that people can understand the operation instruction better and the programming cost is greatly reduced.
The operation object type required to be operated in the event step block includes, but is not limited to, a single data operation, a plurality of data operations, a user interaction operation or a condition judgment operation.
The specific operations required for the operation object in the event step block include, but are not limited to, adding an object, modifying an object, deleting an object, or querying an object.
Further, the specific operation is further refined through natural language, including but not limited to modifying the object to a certain data value or modifying the object to the current time.
And S2, responding to the flow connection instruction, and performing association connection on each event step block.
In this embodiment, the event step blocks may be associated and connected through an arrow mark, or may be connected through marks indicating other directions, so that the event step blocks are connected to form a functional flow directed graph.
In one embodiment, the method further comprises:
and S3, compiling the executable script program code according to the event step blocks and the connection relation among the event step blocks.
In this embodiment, the current operating environment is preferably analyzed to confirm the required code language; after the code language is confirmed, finding out a corresponding compiler, and compiling a functional flow directed graph obtained according to the event step blocks and the connection relation between the event step blocks through the compiler to obtain a script program code under the current operating environment.
The functional flow directed graph can be compiled by a compiler into a programming language code or a machine instruction code which can be generated by running a specified running environment, thereby providing the generality of programming.
In one embodiment, the method further comprises:
s4, responding to the operation instruction, and executing the script program code.
With reference to fig. 2, an embodiment of the present application provides a programming visualization device, including:
a creating unit for adding an event step block in the target area in response to the step block creating instruction;
and the association unit is used for responding to a flow connection instruction and performing association connection on each event step block.
The steps implemented by programming each functional module of the visualization device may refer to each embodiment of the programming visualization method of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program, when executed by the processor, implements the steps of the programmed visualization method described in the embodiments above.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the operations of the programmed visualization method provided by the above embodiments.
According to the invention, the time step blocks are created and connected, so that the effect of visual programming is realized, the universality of programming is effectively improved, the compiling time can be greatly saved, the online debugging efficiency can be improved, and the maintenance cost is effectively reduced.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. The term "comprising", without further limitation, means that the element so defined is not excluded from the group of processes, methods, articles, or systems that include the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A programmatic visualization method, characterized in that it comprises the steps of:
in response to the step block creation instruction, adding an event step block in the target area;
and responding to a flow connection instruction, and performing association connection on each event step block.
2. A programmatic visualization method according to claim 1, further comprising:
and compiling to obtain executable script program codes according to the event step blocks and the connection relation among the event step blocks.
3. A programmatic visualization method according to claim 2, further comprising:
the script program code is executed in response to the execution instruction.
4. The method of programming visualization of claim 1, wherein the event step blocks are related by arrows.
5. The programming visualization method according to claim 1, wherein the step block creation command comprises a step block new command or a step block drag command.
6. The programming visualization method of claim 1, wherein the event step block comprises processing a data source and an operation instruction.
7. The programmatic visualization method of claim 6, wherein said process data sources comprise database data tables, in-memory data, and event step block generation data.
8. A programming visualization device, the programming visualization device comprising:
a creating unit for adding an event step block in the target area in response to the step block creating instruction;
and the association unit is used for responding to a flow connection instruction and performing association connection on each event step block.
9. An electronic device, characterized in that the electronic device comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the computer program, when executed by the processor, implementing the steps of the programmed visualization method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of a programmed visualization method according to any one of claims 1 to 7.
CN202110323579.5A 2021-03-25 2021-03-25 Programming visualization method, device, equipment and storage medium Pending CN113126978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110323579.5A CN113126978A (en) 2021-03-25 2021-03-25 Programming visualization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110323579.5A CN113126978A (en) 2021-03-25 2021-03-25 Programming visualization method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113126978A true CN113126978A (en) 2021-07-16

Family

ID=76774144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110323579.5A Pending CN113126978A (en) 2021-03-25 2021-03-25 Programming visualization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113126978A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992263A (en) * 2019-04-05 2019-07-09 腾讯科技(深圳)有限公司 A kind of method and apparatus executing visual programming
CN110554865A (en) * 2019-09-10 2019-12-10 联想(北京)有限公司 Visual programming method, device, computing equipment and medium
CN110673842A (en) * 2019-09-11 2020-01-10 苏州德创测控科技有限公司 Visual programming method and system, storage medium and equipment
CN111190589A (en) * 2019-12-26 2020-05-22 深圳市优必选科技股份有限公司 Visual programming method and terminal equipment
CN112506502A (en) * 2020-12-16 2021-03-16 深圳市优必选科技股份有限公司 Visual programming method, device, equipment and storage medium based on human-computer interaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992263A (en) * 2019-04-05 2019-07-09 腾讯科技(深圳)有限公司 A kind of method and apparatus executing visual programming
CN110554865A (en) * 2019-09-10 2019-12-10 联想(北京)有限公司 Visual programming method, device, computing equipment and medium
CN110673842A (en) * 2019-09-11 2020-01-10 苏州德创测控科技有限公司 Visual programming method and system, storage medium and equipment
CN111190589A (en) * 2019-12-26 2020-05-22 深圳市优必选科技股份有限公司 Visual programming method and terminal equipment
CN112506502A (en) * 2020-12-16 2021-03-16 深圳市优必选科技股份有限公司 Visual programming method, device, equipment and storage medium based on human-computer interaction

Similar Documents

Publication Publication Date Title
JP5295464B1 (en) System construction support tool and system
CN105094508A (en) Method and apparatus for performing window control on application program of mobile terminal
US10423407B2 (en) Software workstation and method for employing appended metadata in industrial automation software
CN102054217B (en) Entity morphing in metamodel-based tools
CN104866509A (en) Page element positioning method and device
CN110022492B (en) Intelligent television terminal focus adaptation method and device
CN109753029B (en) Method for identifying and displaying operator access process objects and operator system
JP2018081693A (en) Automated process control hardware engineering using schema-represented requirements
CN103309667A (en) Method for positioning UI (user interface) control and picture modifying position in Android system
CN102929853B (en) Based on DCS project data generation system and the method for the association of Excel list
CN102467366A (en) Page developing method and device based on wireless application protocol (WAP)
CN111813377A (en) Method and device for automatically generating application program
CN110851123A (en) WebGIS power grid visualization framework construction method, system and device based on SpringMVC
CN113126978A (en) Programming visualization method, device, equipment and storage medium
CN107220044B (en) Method and device for driving business object based on meta-model
CN104778071A (en) Intelligent rule multi-language type interpretation system and creation method for same
CN112052039A (en) Method and device for synchronously constructing multiple projects and electronic equipment
CN113608731B (en) Building block programming checkpoint updating method and device, terminal equipment and storage medium
JP3326713B2 (en) Graphical programming method
CN113238746A (en) Hybrid programming control method, device, equipment and storage medium
CN117251143B (en) Application system, construction method and implementation method of visual development tool of application system
CN106598974B (en) Data file generation and calling method and device for android system application program
CN114116734B (en) Intelligent data processing method and device for automation system and storage medium
CN113722045B (en) Cluster application deployment method and device
CN113204566B (en) Execution method and device of SQL script

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