Experience structured, deterministic refactoring of legacy code

Preview access

How the demo works

Browser-based access

The demo is provided through your browser once access is released.

No installation

No setup, no configuration required.

Editor simulation

Experience structured refactoring in a controlled environment.

Focused feature scope

Selected capabilities to demonstrate workflow and impact.

New here?

Register for demo access

Fill in the form to register your interest in the ObjectScript^REFACTOR demo. We will contact you by email as soon as access is available.

Prefer to discuss your system first? Contact us

In the Demo

A focused view of the refactoring workflow

The demo shows the core refactoring approach of ObjectScript^REFACTOR. It focuses on understanding structure, applying controlled refactoring steps, and using before-and-after results.

Understand code structure

Explore how ObjectScript^REFACTOR analyzes structure in legacy code.

Apply refactoring steps

See recurring refactoring patterns applied step by step in a controlled and transparent way.

Review before and after

Compare original and refactored code to understand the impact of each transformation.

Secure, self-contained environment

Your code remains within the application and is not transmitted or stored outside the tool.

Proven Practice

From implicit structure to visible logic

Explore three concrete examples of how legacy ObjectScript can be transformed into clearer, more explicit code.

Legacy code.

Process(Id)
    s X=$G(^O(Id,0))
    s A=$P(X,"^",1),B=$P(X,"^",2),C=$P(X,"^",3) 
    s ^R(Id)=B_C q:A="A"    s ^R(Id)=C_B q:A="B" 
    s ^R(Id)=A_B_C q:1

Evolved.

Process(Id)
    set X = $Get(^O(Id, 0))
    set A = $Piece(X, "^", 1)
    set B = $Piece(X, "^", 2)
    set C = $Piece(X, "^", 3)
    set ^R(Id) = B _ C
    if (A = "A") {
        quit
    }
    set ^R(Id) = C _ B
    if (A = "B") {
        quit
    }
    set ^R(Id) = A _ B _ C
    quit