Sequence-Code Program Generation to Reduce Coding Errors
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for constructing program code for data-processing systems are inefficient and prone to errors due to manual effort, subjective decision-making, and the need for extensive subroutine libraries, which increase complexity and resource consumption.
Innovation Solution
A software development platform with a code-building interface generates executable program code using sequence codes that include character sets representing operations, data types, and conditions, allowing users to intuitively select options and automate the code generation process.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If manual processes are used to construct program code, then code can be customized to meet specific user requirements, but the process involves considerable manual effort and is time-consuming
Solution Approach 1:
The system enables self-service automated code generation where users can independently construct executable program code through the code-building interface without requiring manual intervention from programmers, thereby reducing manual effort while maintaining code customization capabilities
Solution Approach 2:
The system performs preliminary actions by pre-defining operations, data types, and conditions in the code-building interface, allowing users to select from predefined options rather than creating code from scratch, which reduces the time required for code construction while maintaining adaptability
2Adaptability or versatility
If manual processes are used to construct program code, then code can be tailored to specific requirements, but subjective decision-making increases the chance of coding errors
Solution Approach 1:
The automated code generation system eliminates subjective human decision-making by using deterministic rules to translate user selections into executable code, thereby reducing coding errors while preserving the ability to customize code for specific requirements
Solution Approach 2:
The system incorporates validation and verification mechanisms that provide feedback during the code generation process, checking for errors and ensuring code correctness automatically, which reduces the chance of coding errors while maintaining code adaptability
3Extent of automation
If automatic programming with extensive subroutine libraries is used, then code generation is automated, but the library must be extensive to cover every possible task
Solution Approach 1:
The system segments the code generation process into distinct modular components (operations, data types, conditions) that can be independently selected and combined, allowing comprehensive task coverage without requiring an extensive monolithic subroutine library
Solution Approach 2:
The code-building interface provides universal building blocks that can be combined in multiple ways to cover various tasks, reducing the need for extensive specialized subroutines while maintaining automation capability
Data Source
AI summary
Methods described herein generate executable program code based on sequence codes, such that the executable program code is executable by a computer processor. According to such a method, a command is received to generate executable program code. Via a code-building interface, user input is received indicating an operation to be performed by the executable program code, a data type for to the executable program code, and a condition for applying the executable program code. A sequence code is constructed to represent the user input, where the sequence code includes a sequence of character sets. From the sequence code, a first character set corresponding to the operation, a second character set corresponding to the data type, and a third character set corresponding to the condition are extracted. Mapping data is applied to the first character set, the second character set, and the third character set to generate the executable program code.


