Code Review Status Tracking via Hierarchical Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current computer programming methods require manual line-by-line verification of code, which is time-consuming and prone to errors, lacking an efficient way to track review status of both models and generated code.

Innovation Solution

A system with a user interface that utilizes check boxes to visually indicate review status of model blocks and corresponding code lines, allowing reviewers to mark blocks and lines as reviewed, with automatic selection and marking of associated sections, enabling easy tracking of reviewed and unreviewed elements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual line-by-line verification of code is performed, then code accuracy can be ensured, but the time required for review increases significantly

Engineering Contradiction:
Improvecode accuracyVSAvoidreview time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the code review process into two distinct levels: block-level review (where reviewers mark entire code blocks as reviewed or need review) and line-level review (where specific lines within blocks can be individually marked). This segmentation allows reviewers to efficiently identify and focus only on problematic sections rather than manually scanning every line sequentially, thereby reducing overall review time while maintaining thoroughness through the hierarchical structure.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system implements feedback mechanisms where reviewers can mark blocks and lines as reviewed or as needing review, and this status is automatically propagated throughout the codebase. When a block is marked as reviewed, all associated lines are automatically marked; conversely, when a line is marked as needing review, the parent block is flagged. This feedback loop enables continuous tracking of review progress and ensures that reviewers focus their attention on areas that need attention, reducing time spent on already-verified sections.

Inventive Principle:
Principle #23Feedback

2Reliability

If comprehensive code review is performed, then error detection improves, but the complexity of tracking review status increases

Engineering Contradiction:
Improveerror detectionVSAvoidtracking complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent divides the codebase into hierarchical segments (blocks containing lines, modules containing blocks, systems containing modules) and assigns review status to each segment level. This segmentation simplifies tracking by allowing reviewers to operate at different granularities - they can mark entire blocks as reviewed without needing to track individual lines, or they can drill down to line level only when necessary. The hierarchical structure naturally organizes the complexity, making it manageable through the block-line-module-system hierarchy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces check boxes as intermediary elements between the reviewer and the code. These check boxes serve as visual mediators that clearly indicate review status without requiring complex tracking mechanisms. The check boxes are automatically updated based on the review actions taken, providing a simple visual interface that abstracts away the underlying complexity of tracking which lines and blocks have been reviewed. This intermediary layer simplifies the user interface and makes the system easier to operate.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If automated review tracking is implemented, then review progress monitoring improves, but system complexity increases

Engineering Contradiction:
Improvereview progress monitoringVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system implements self-service functionality where the review status is automatically propagated through the codebase without requiring manual intervention. When a reviewer marks a block or line as reviewed, the system automatically updates the status of related blocks and lines through automated propagation rules. This eliminates the need for complex manual tracking mechanisms and reduces the burden on reviewers, as the system handles the bookkeeping automatically. The self-service approach improves productivity by providing real-time visibility into review progress while keeping the added complexity manageable through automated rather than manual operations.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS8694958B1Marking up objects in code generation
Publication Date: 2014.04.08 MATHWORKS INC
  • US8694958B1 patent drawing
  • US8694958B1 patent drawing
  • US8694958B1 patent drawing

AI summary

A system associates at least one review indicator with at least one of multiple elements of a model, where the at least one review indicator indicates whether a corresponding element of the model has or has not been reviewed by a reviewer. The system further displays a status of the at least one review indicator in a user interface.