Color-coded nesting feedback for small-screen code readability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

On small-screen devices like programmable calculators and smartphones, the indentation of deeply nested control structures in programming code exceeds the screen width, leading to loss of readability and difficulty in identifying matching opening and closing statements.

Innovation Solution

A programmable device uses unique color representations and initial character shading to indicate nesting levels, ensuring that control structure opening and closing statements are visually distinguishable without relying on indentation, thus preserving display space and enhancing readability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If indentation is used to illustrate control structure nesting, then code readability is improved, but display space is exceeded on small screens

Engineering Contradiction:
Improvecode readabilityVSAvoiddisplay space
Core Design Contradiction:
Ease of operationVSArea of stationary object

Solution Approach 1:

The patent transitions from horizontal indentation (left-right dimension) to vertical color coding (color dimension). Different nesting levels are represented by different colors, allowing the display to convey structural information without consuming horizontal screen space. This dimensional transformation resolves the contradiction by providing readability through a different spatial dimension.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Solution Approach 2:

The patent uses color changes to indicate nesting levels and control structure types. Each nesting level is assigned a specific color, and matching opening-closing statements share the same color. This color-coding system provides visual feedback about code structure without requiring indentation, thus maintaining readability while preserving display space on small screens.

Inventive Principle:
Principle #32Color changes

2Adaptability or versatility

If control structures are deeply nested, then programming capability is improved, but identification of matching statements becomes difficult

Engineering Contradiction:
Improveprogramming capabilityVSAvoididentification of matching statements
Core Design Contradiction:
Adaptability or versatilityVSDifficulty of detecting and measuring

Solution Approach 1:

The patent assigns unique colors to different control structure types and nesting levels. Matching opening and closing statements are highlighted in the same color, making it easy to identify pairs even in deeply nested code. The color-coding system provides immediate visual feedback about statement matching without requiring manual counting or parsing of indentation levels.

Inventive Principle:
Principle #32Color changes

Solution Approach 2:

The patent provides visual feedback through color coding that immediately shows the programmer whether control structures are properly balanced. When opening and closing statements match, they share the same color, providing instant confirmation of correct syntax. This feedback mechanism makes detecting and measuring control structure balance intuitive and error-resistant.

Inventive Principle:
Principle #23Feedback

3Area of stationary object

If indentation is removed to save display space, then screen real estate is improved, but visual feedback of nesting level is lost

Engineering Contradiction:
Improvedisplay spaceVSAvoidnesting level information
Core Design Contradiction:
Area of stationary objectVSLoss of information

Solution Approach 1:

The patent replaces indentation-based nesting visualization with color-based nesting level indication. Each nesting level is assigned a distinct color, providing continuous visual feedback about code structure without consuming horizontal space. This substitution maintains all nesting information while maximizing display space utilization.

Inventive Principle:
Principle #32Color changes

Solution Approach 2:

The patent moves nesting level information from the horizontal dimension (indentation) to the color dimension. This dimensional transformation preserves complete nesting level information while eliminating the need for indentation, thus maximizing the usable display area on small screens.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS10691422B2Programmable device providing visual feedback of balancing of opening and closing statements of programming structures and nesting level
Publication Date: 2020.06.23 TEXAS INSTRUMENTS INC
  • US10691422B2 patent drawing
  • US10691422B2 patent drawing
  • US10691422B2 patent drawing

AI summary

Providing visual feedback of balancing of programming structure hierarchy in a program entered on a programmable device having a processor, an instruction memory, an input device, and a display screen having a left edge. In an arrangement, at least two control structure opening statements are received, each having an associated control structure. A unique representation is assigned to each of the at least two control structures. The control structure opening statements are displayed in the unique representation assigned to the corresponding control structure beginning at a same location with respect to the left edge of the display. At least two control structure closing sequences are received, and each control structure closing sequence is associated with one of the control structures, respectively.