
By S G Ganesh | Article Rating: |
|
May 16, 2008 11:45 AM EDT | Reads: |
25,625 |
Testing
As software gets more complex and ubiquitous, it becomes
more difficult to ensure high-quality code. One common method of finding bugs
is testing. But testing can’t cover all paths and possibilities or enforce good programming practices. Expert knowledge in the form of manual code review by
peers is one of the best ways to ensure good code quality. Code review is often
used as a mandatory process step for improving the code and for finding problems
early in the software life cycle.
Since testing and manual code review processes are resource-intensive, it would be helpful to use automated tools to review code. Static analysis tools help considerably in detecting the problems early in the software life cycle and help enhance the quality of the code significantly.
There are many high-quality Java tools available in the open source domain. While it’s true that Java programs don’t suffer from traditional C/C++ problems like memory issues and major portability issues, Java software does suffer quality problems like reliability, efficiency, maintainability, and security. A brief discussion on the benefits of using FOSS Java tools is given in the sidebar.
Before getting into the meat of the matter, let’s discuss why bugs happen. First, it’s important to recognize that everyone makes mistakes, even experts[2]. Second, compilers only check for syntax and semantic violations. Errors in language or API use, which manifest themselves as bugs, aren’t detected by compilers; this is left to static analysis tools and it’s important to use them to detect coding problems. Third, programmers and engineers are under constant pressure to “get-the-work-done” under tight schedules; working under “almost-impossible-to-meet” work schedules results in code that is often substandard and filled with bugs. Because of practical problems, most code developed in the real world has bugs and it’s worthwhile using static analysis tools to find them and fix them.
Published May 16, 2008 Reads 25,625
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By S G Ganesh
S G Ganesh is a research engineer in Siemens (Corporate Technology), Bangalore. Prior to Siemens, he worked in Hewlett-Packard for around five years. His area of interest is programming languages and compilers. His latest book is "60 Tips on Object Oriented Programming" (ISBN-13 978-0-07-065670-3) published by Tata McGraw-Hill, New Delhi.
![]() Apr. 25, 2018 12:00 AM EDT Reads: 3,866 |
By Elizabeth White ![]() Apr. 24, 2018 11:00 PM EDT Reads: 3,646 |
By Pat Romanski Apr. 24, 2018 11:00 PM EDT Reads: 2,872 |
By Liz McMillan ![]() Apr. 24, 2018 09:30 PM EDT Reads: 22,752 |
By Elizabeth White ![]() Apr. 24, 2018 09:15 PM EDT Reads: 1,284 |
By Pat Romanski ![]() Apr. 24, 2018 08:45 PM EDT Reads: 4,048 |
By Elizabeth White ![]() Apr. 24, 2018 08:30 PM EDT Reads: 4,956 |
By Liz McMillan ![]() Apr. 24, 2018 07:00 PM EDT Reads: 13,776 |
By Elizabeth White ![]() Apr. 24, 2018 06:45 PM EDT Reads: 6,005 |
By Elizabeth White Apr. 24, 2018 06:30 PM EDT Reads: 5,625 |
By Liz McMillan ![]() Apr. 24, 2018 05:45 PM EDT Reads: 7,125 |
By Liz McMillan ![]() Apr. 24, 2018 05:15 PM EDT Reads: 5,727 |
By Elizabeth White Apr. 24, 2018 04:45 PM EDT Reads: 6,777 |
By Pat Romanski ![]() Apr. 24, 2018 04:30 PM EDT Reads: 7,157 |
By Pat Romanski Apr. 24, 2018 03:00 PM EDT Reads: 1,527 |
By Elizabeth White ![]() Apr. 24, 2018 03:00 PM EDT Reads: 13,402 |
By Elizabeth White Apr. 24, 2018 02:45 PM EDT Reads: 1,872 |
By Elizabeth White ![]() Apr. 24, 2018 01:30 PM EDT Reads: 4,251 |
By Elizabeth White Apr. 24, 2018 01:00 PM EDT Reads: 7,699 |
By Pat Romanski Apr. 24, 2018 01:00 PM EDT Reads: 2,498 |