Displaying items by tag: Refactoring

Monday, 27 June 2022 13:10

Modernize the code. Keep the brilliance.

 

How long would it take you to complete 25,000 tasks that take thirty minutes each?

Before you drag out your calculator, that’s 12,500 hours, or about 1,562 working days. Wouldn’t it be better to have it all done in under an hour? That gives you an idea of how refactoring—when done correctly—can accelerate modernization process and deliver accuracy in the range of just one error among 20,000 lines of code. That’s the kind of accuracy that’s needed for critical systems. Let’s talk about how refactoring achieves it so fast.

The refactoring phase of modernization at TSRI takes a project beyond updating the code and database to modern standards and system architecture. Sure, the planning, assessment, transformation, and integration phases of a modernization process get the mass of the work done. But more is needed. Imagine if a great painter only took a portrait to the point of getting the features in the right places. For functional equivalency, high performance, and future-readiness you need to dive into the details to get them as right as the original—and ready for future enhancements and needs.

That’s where refactoring can be hugely beneficial. If, after the transformation and integration phases you have to find and address each issue manually over hundreds of thousands or millions of lines of code, you may as well add those 12,500 or more hours back in. That’s why refactoring is key. By including an iterative code scanning and refactoring phase to the modernization process, TSRI automatically and semi-automatically remedies a host of issues at scale that would make developers run for the hills, including:

  • Pinpointing and getting rid of dead or non-functional code
  • Merging and consolidating duplicate code and data
  • Improving design of code and data
  • Eliminating system flaws from transformed software
     

"TSRI's refactoring process creates reusable components that can be applied to future projects"


And beyond those cleaning and refining functions, a well-designed refactoring process also provides forward-looking advantages. TSRI’s refactoring process improves maintainability, remediates security vulnerabilities, increases performance, and modularizes functionality. It also creates reusable components that can be applied to future projects for optimization, packaging, and redistribution.

When you’re able to reuse some or all of the outputs of automated or semi-automated refactoring, you don’t have to recreate the mechanisms for modern microservices, REST calls, and other reusable elements. They’re at your fingertips and ready for integration in modern environments or databases for future projects. It gives you the best of modularity, but customized and created specifically for your systems’ needs such as data-dictionaries, code and record consolidation, introduction of logging or comments, and more.

 

"It gives you the best of modularity, but customized and created specifically for your systems' needs."

 

One scan, one rule, and thousands of fixes

A key part of the refactoring process is scanning the newly modernized code to find issues for remediation. To do this, we use the SonarQube scanning tool. SonarQube is an open-source platform that executes continuous inspection of code quality in modernized code. It provides a detailed report of bugs, code smells, vulnerabilities, code duplications, and more. Once SonarQube has identified problems in the code the TSRI team can use the results to resolve the issues and improve code maintainability issues and security vulnerabilities.

This is where the economy of rules comes in. Once SonarQube has pointed out issues across thousands of lines of code, TSRI uses that intel to identify the types of issues that need to be addressed. When an issue appears once in an application, it often appears hundreds or thousands of times, and a single rule applied across all code can eliminate a host of individual instances.

 

So how did we get to those 12,500 hours we started with? We didn’t just make it up. In a TSRI project for Deutsche Bank, a single rule created based on a scan of the code fixed about 25,000 instances that issue. SonarQube estimated it would take 30 minutes to fix each instance. That means refactoring automated the remediation process and saved them about 12,500 hours of software development time. That’s a lot of Marks.

 

 

The proof is in the work. Refactoring can not only save thousands of coder hours, but a combination of code scanning and refactoring can also uplevel your modernization with:

  • Maintainability making it easier to update and manage code going forward
  • Readability for modern developers to find and improve the functions they need more easily
  • Security by increasing the speed with which security issues can be found and remediated either manually or through refactoring rules
  • Performance greatly increasing the efficiency of the application—for instance, enabling multiple services to run in parallel rather than sequentially.

 

Find out what refactoring done right can do for you, contact TSRI now

 

----

Proven by decades of results. Prove it for yourself.
For decades, TSRI clients have been discovering a dramatically faster, more accurate, and less expensive AI-based and automated modernization process. We’ve earned a place as the go-to resource for enterprise corporations, government, military, healthcare, and more. Now prove it for yourself. Find out how the proprietary TSRI modernization process delivers future-ready, cloud-based code in any modern language in a fraction of the time.

See Case Studies 
Learn About Our Technology 
Get Started on Your Modernization Journey Today! 

Published in Best Practices

 

  • Customer: US Department of Defense & Northrup Grumman
  • Source & Target Language: Ada to Java  
  • Lines of Code: 981,337
  • Duration:  9 months
  • Services: Automated Code Transformation, New Language Gateway TransformationAutomated Refactoring, Semi-automated Refactoring, Engineering Support, Application Blueprint®, Transformation Blueprint®

    

Published in Case-Studies
Thursday, 05 May 2022 11:44

VAX Basic to C# - Shaw CBS System

Shaw Cable Systems, one of TSRI's Candian customers, engaged TSRI to modernize their CBS system, which involved 772,684 lines of VMS VAX BASIC source code and 275,707 of VAX Basic comments.  The system modernization called for code conversion to C#, along with other services. 

Customer: Shaw Cable System

Source & Target Language: VMS VAX BASIC to C#

Lines of Code: 1.1 Million

Duration:  5 months

Services: Automated Code Transformation, Automated Refactoring, Separation of the business and data logic into tiers, Integration and Testing Support,  Engineering Support, Transformation Blueprint®

 

 

Published in Case-Studies
Thursday, 05 May 2022 11:19

COBOL Refactoring - State of Oregon OPERS

The Oregon's Public Employees Retirement System (OPERS) serves approximately 300,000 employee members, inactive members and retirees from more than 850 public employers. OPERS required a major maintenance action of the OPERS Benefit Estimation Subsystem (BESS) and Benefit Calculation Subsystem (BCSS) to address changes in Oregon State retirement regulations. TSRI's automated refactoring capability was used to consolidate the applications and remove dead and redundant code.

Customer: State of Oregon Public Employees Retirement System    

Source & Target Language: COBOL Refactoring

Lines of Code: 250,000

Duration: 4 Months  

Services:  JANUS Studio® Automated Refactoring, Testing and Implementation Support, Application Blueprint®

 

 

Published in Case-Studies
Thursday, 05 May 2022 08:42

C to MS-SQL/C - Sempra Energy

Sempra Energy needed to move their Microgrid Control System (MCS) application into a more contemporary environment. The challenge that TSRI and mLogica faced was transforming Sempra Energy's existing Sybase OpenServer platform into a more modern .NET/MS-SQL server environment under strict budget and schedule constraints. The project, which included the modernization, documentation, refactoring, testing, and integration of the application, was successfully concluded on-time and within budget constraints.

Customer: Sempra Energy & mLogica

Source & Target Language: C to MS-SQL/C

Lines of Code: 211,000

Duration: 4 Months

Services: Automated Code Transformation, Automated Refactoring, Round-tripping, Unit Testing, Third Party Code Quality Refactoring, Integration and Testing Support, Transformation Blueprint®, Application Blueprint®

 

 

Published in Case-Studies
Wednesday, 30 March 2022 14:17

Ada to C++ US Navy DSR MFIP

The Navy contracted with Digital Systems Resources (DSR), a division of DEC, to modernize the MFIP, so the Mission Computer Upgrade (MCU) program office contacted the U.S. Office of Naval Research (USONR) to identify a viable, cost-effective modernization solution. The USONR recommended that TSRI employ its architecture-driven JANUS Studio® modernization solution. USONR believed this toolset could be the only resource capable of accomplishing the MFIP modernization within schedule, performance, risk management, and cost constraints.

  • Customer & Integrator: US Navy & DSR
  • Source & Target Language: Ada to C++
  • Duration:  5 months
  • Services: Application Blueprint®, Transformation Blueprint®, Engineering Support, Automated Transformation

Published in Case-Studies
Wednesday, 30 March 2022 14:04

COBOL to Java J2SE Telos Corporation

The Defense User Registration System (DURS) of the Defense Technical Information Center (DTIC) consisted of a UNISYS 2200 COBOL application running within the DPS form-based presentation system (DPS 1100). DURS required conversion into a Java/J2SE multi-tiered application to support DTIC modernization requirements.

  • Customer & Integrator: Telos Corporation
  • Source & Target Language: COBOL to Java/J2SE
  • Lines of Code: 80,000
  • Duration: 13 months
  • Services: Developed Web-Enabled User Interface, Code Transformation, Automated Refactoring, Automated Re-Architecting, Database Transformation, Transformation Blueprint®

Published in Case-Studies
Wednesday, 30 March 2022 14:04

Java Refactoring TriGeo Network Security

TriGeo Network Security, Inc. awarded a sole-source contract to TSRI for documentation and Refactoring of TriGeo’s primary product offering. This "Roundtripping" process involves taking in a client's code, applying pattern-based refactorings to change and improve the code without changing the functional equivalency of the application.

  • Customer & Integrator: TriGeo Network Security
  • Source & Target Language: Java Refactoring
  • Lines of Code: 370,000
  • Duration:  6 months
  • Services: Legacy “As-Is” Documentation, Automated Refactoring, Additional Customized Refactoring, Final “To-Be” Documentation

Published in Case-Studies
Wednesday, 30 March 2022 13:57

Ada to C++ Boeing GEMS

GEMS (Geospatial Environmental Mapping Software) , provides the B52, F15 and TX training jet—with mission-critical data to provide air crews with real-time information. TSRI was able to modernize GEMS against the government mandated LDRA compliance tool, with 100% successful unit testing that meet and exceeded the mandated avionics standards.

Customer: Boeing

Source & Target Language: Ada to C++

Lines of Code: 388,896

Duration: 16 Months

Services: Automated Code Transformation, Automated Refactoring, Unit Testing, Third Party Code Quality Refactoring, Integration and Testing, Transformation Blueprint®, Application Blueprint®

 

 

Published in Case-Studies
Wednesday, 30 March 2022 13:57

Assembly to Java - IRS Tax Processing System

TSRI, in partnership with Hewlett-Packard, rapidly adapted its automated JANUS Studio® transformation engine to be ALC-compatible so they could conduct an ALC-to-Java prototype modernization effort for the US IRS. The high levels of automation enabled quick transformation and refactoring iteration, which rapidly and systematically discovered and isolated defects. Allowing TSRI engineers to quickly adjust the automated conversion rules, and quickly regenerate the system at higher output quatlity.

Customer: Hewlett-Packard and The US Internal Revenue Service (IRS)

Source & Target Language: Assembly to Java

Lines of Code: 8,000

Duration:  1 Month

Services: Automated Code Transformation, Automated Refactoring, Integration and Testing Support, Defect Isolation, Transformation Blueprints ®, Application Blueprints ® 

 

 

Published in Case-Studies
Page 1 of 3