You Can Program Bug Free
Join the DZone community and get the full member experience.Join For Free
you can not. this is a lie, just like the cake. you can lower the number of bugs. the more you spend wisely on qa the less bugs you will have. the magic word is “wisely”. you can spend unlimited amount without increasing the quality. old truth in just any area: you can waste money if you are not wise.
on the other side of the line there is no free lunch. if you do not spend enough on qa you can only dream about properly working software. you won’t have less bugs if you do not spend on qa. and you will never be bug free.
bug free software is contradiction. we have bugs, and we do not like them. we have to zap them.
ad-hoc bug zap
most of the bugs are zapped in an ad-hoc manner. the developer writes some test, develops some code. the code does not work, has bugs and the developer fixes the code until it runs fine with the unit tests crafted beforehand. integration tests and end-to-end tests may also discover some bugs. these are usually reported in a bug tracking system and the developers fix them and they are eliminated in the next release.
sometimes, however bugs are not that easy to handle.
sometimes bugs are not that simple to handle. sometimes it takes a lot of time to fix a bug. it may need analysis how and when the bug manifests. sometimes bugs magically disappear like if computers were non deterministic. other times fixing a bug requires significant code modification. this is, by the way, a clear sign of design shortage on the technical or business level (or both).
if a bug is difficult developers may be reluctant to hunt for it and fix it. if it needs alteration of lot of code they may tend to declare the behavior to be a feature rather than a bug. fortunately we know who has the last word in such a debate: money. feature is what business uses to make value. everything else is just behavior. and here comes the other aspect of bug classification: does business care about a certain behavior? if yes, the behavior is a bug and is a target for fix. if not then this is just a behavior.
- there are bugs that are easy to fix and have high impact on the business. they are the easy picks. developers are usually eager to fix those bugs and become the hero of the project.
- bugs hard to fix and having no business impact will never be fixed. there is no point.
- bugs easy to fix and low impact on business are fixed many times when a developer has some time (minutes) to do the fix. this is the hobby area.
- there are bugs that are hard to fix and have high impact on the business. these are the critical bugs that get most of the attention. these bugs will not be fixed from one day to the other and therefore they have to be assessed, budgeted, scheduled and eventually fixed.
cost of bug fix
business needs these bugs fixed and many times the cost to fix them does not represent any extra value. usually business feels that these bugs just have to be fixed but not on their costs. they have already paid for the feature, which eventually fails. if the development organization is separate company then the vendor should have the budget to do the fix. it had to be included in the contractual price. if the development is in-house the cost may not be discussed or may be t&m based. in that latter case the developers “charge” only the hours they spent developing the feature instead of project fixed price but when there is some bug the hours to fix are also charged. this is something not clarified well enough among the players and is a source of interdepartmental stress in many times.
“easy picks” are fixed without budgeting and business people press the developers to fix the bugs “in their free time” without separate budget. the driver for this may be to lessen the burden of costs that business people are usually measured on and also many times to hide the errors that were in the specification, communication on the business side. on the other hand developers want even easier to fix bugs to be assessed since they are usually measured on billable time. they are also reluctant to burn their so called “free time”. this time is not really “free time”. this time is covered by work hours and is usually used for self education. and developers (at least those that deserve the title) love to educate themselves (for example reading blogs like this).
for this reason there is no clear and precise border between the “easy pick” and the “assess, budget, schedule, fix” areas. business people want to pull the border to east leaving more and more bugs in the easy pick area, while developers want the border more to the west, and the fight area is in between. and the real problem is when the project members spend significant amount and effort in that area.
when you find yourself in a debate about bugs and features with the business people, try to bring up this quadrant in your mind. many times the cost/value coordinates of the bugs are not discovered. think about it even qualitatively.
Published at DZone with permission of Peter Verhas, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.