Analyzers: What’s the Business Value?" Jan. 15] raises a very important issue, one... " />
 

WHAT PRICE PREVENTION?



Email    print   
March 4, 2004 —  Michael Lutz’s recent Guest View ["Analyzers: What’s the Business Value?" Jan. 15] raises a very important issue, one that lies at the core of the problems we face in the software industry: What value do we place on error prevention?

Modern static code analyzers are not designed to detect errors, but rather to prevent errors by warning developers about dangerous constructs that can lead to errors.

For an example of how static code analyzers provide value by preventing errors, consider the first warnings that Mr. Lutz received when he applied CodeWizard, Parasoft’s C/C++ static code analyzer, to his own code—warnings about a few parameters where const might be used. Mr. Lutz analyzed a relatively small piece of code (about 3,000 lines), but assume that this code is later extended to the point where many people are working on the code and no single person understands the entire piece of code. Then, if the members of the class are not explicitly constant, there is a possibility that other developers will modify them. This can lead to an error that will have to be identified and removed, costing the team time, effort and money.

For another example, consider the warnings Mr. Lutz received about classes with dynamically allocated memory that did not explicitly define a copy constructor or assignment operator. If one of Mr. Lutz’s colleagues takes over his code or tries to extend it, that developer might decide to use the class to create new objects. At that time, the developer is going to get a default copy constructor. Will this be the right copy constructor for this class? Maybe, or maybe not. This problem will not lead to memory corruption, but it can lead to a serious functional error when the code is writing to the same piece of memory. This could lead to a very infrequently occurring error, which could take weeks to diagnose.

I could go on and on with each violation that CodeWizard reported. Yes, there is a great business value in this. Each time you prevent an error, you save yourself (and your team) the time, money and effort it would otherwise cost to chase and repair that error. Of course, prevention is not free. But is error prevention more economical than the industry’s current strategy of trying to find and remove all the bugs in the code? I believe so.

CEO Parasoft Corp.




Share this link: http://sdt.bz/27723
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
Business Briefs: September 1, 2008
IBM spends US$360 million on building a cloud computing center in North Carolina, a trio of acquisitions are made, and CA and Sun post fiscal year 2008 earnings Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb