Visual Programming Editor Comment Association Logic
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing visual programming editors fail to effectively position program components and comments in close proximity when converting code, resulting in less readable text-based code.
Innovation Solution
A program that disposes and associates program components and comments based on their positional relationship, using a threshold to determine proximity and generate text-based code with comments nearby their associated components, while allowing manual association control and display adjustments.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If code is converted from visual programming to text-based code using existing visual program editors, then code conversion is achieved, but program components and comments are not disposed in the vicinity resulting in less readable code
Solution Approach 1:
The system performs preliminary association determination between comments and program components based on positional relationships in the visual program before code conversion. This preliminary action ensures that comments are correctly linked to their corresponding code elements, enabling proper placement in the generated text-based code and improving readability without complicating the conversion process
Solution Approach 2:
The patent replaces manual code conversion with an automated system that uses positional relationship analysis to associate comments with program components. The system automatically determines associations based on spatial proximity in the visual editor and generates properly formatted text-based code with comments in the vicinity of their corresponding components, eliminating the need for manual intervention
2Measurement precision
If manual association control is implemented for comments and program components, then association accuracy is improved, but operation complexity increases
Solution Approach 1:
The system performs self-service by automatically determining associations between comments and program components based on their positional relationships in the visual program. The automatic association determination based on spatial proximity eliminates the need for manual association control, maintaining high association accuracy while preserving ease of operation
Solution Approach 2:
The system provides feedback mechanisms that allow users to review and adjust automatic associations if needed. The feedback loop enables users to verify the correctness of automatically determined associations and make manual adjustments when necessary, combining the benefits of automation with user control
Data Source
AI summary
A non-transitory computer-readable medium includes a program causing one or more processors to execute disposing one or more program components and one or more comments on a screen of a visual programming editor based on acceptance of an operation, determining whether to associate a specific comment with a specific program component based on a positional relationship between the specific comment included in the one or more comments and the specific program component included in the one or more program components, and generating a text-based code in which a text of the specific comment and a text of the specific program component are disposed nearby based on determination that the specific comment is associated with the specific program component.


