Skip the navigation

New IBM tool analyzes code for mistakes as it's written

Rational Software Analyzer works like grammar checkers, flagging errors to avoid costly fixes

By Heather Havenstein
July 29, 2008 12:00 PM ET

Computerworld - IBM's Rational Software unit today unveiled a development tool that can scan and check code as it's written to uncover errors before they make their way further into the development life cycle where fixes are far more costly.

The IBM Rational Software Analyzer automatically scans the new code up to 700 times before an application is complete. Its operation is similar to the grammar check function in Microsoft Word, according to IBM.

"We unfortunately see a lot of defects in code. You really want to be able to minimize those defects. The earlier you do it in the life cycle, the less expensive it becomes," said Dave Locke, director of product marketing at Rational.

For example, Locke added, if a programmer is writing an application to most likely be used in North America, its code will likely reflect the needs of English-speaking users. But if that application also needs to support Hebrew-speaking users in Israel, changes will need to be made as to how the words are displayed, he noted.

The code's Java underpinnings have "to deal with this difference in how you handle and parse the strings or the language in the code," Locke said. Deploying an application built for English-speaking users in Israel would require spending "hundreds of thousands of dollars to go back to the program I just wrote to fix it. With Software Analyzer, rules are in the tool so errors are flagged in the first development effort vs. having to go back."

When errors are flagged, programmers can click on a box to find out what the errors are and to find suggestions and sample code for fixing the problem, Locke added. The tool can also be used to flag known security weaknesses so that when a programmer mistakenly adds such security shortcomings, they can be eliminated right away, he said.

Developed by IBM Labs and built as an Eclipse plug-in, the new tool is available now. A developer edition is $3,500 per user; an enterprise edition is $50,000 per server with unlimited users.

Read more about App Development in Computerworld's App Development Topic Center.



Our Commenting Policies