In aÂ previous post, I talked about the need to hire programmers who write good code. Â A recent report shows the costs of poorly written code.
TheÂ 2010 CAST Worldwide Application Software Quality Study summary can beÂ downloaded here.
In the report, “good code” or “structural quality” as they term it, is not about syntax or non-functional properties. Â Rather, it is about how wellÂ architectedÂ the application is. Â In other words, an application may function, but the code and architecture underneath it is a mess.
According to the study, each line of code has $2.82 of Technical Debt and the average sized application has $1,000,000 of Technical Debt.
In my experience the sources of Technical Debt are a mix of two factors. Â The first one is managerial. Â The manager is either unaware or does not care about Technical Debt. Â Sometimes, there is pressure from above to get an application out no matter how ugly it is. Â Often, it is rationalized that the customer will never know or see how ugly the code is. Â The second factor is the programmer themself. Â A poor programmer will simply not know or realize that their code is of poor quality. Â A more rare case is a good, but lazy, programmer not wanting to put the effort in to write good code.
This report gives more validity to the programmer or manager making an argument to have good “structural quality” initially. Â Most often, the coding issues will never be revisited and will rear their head at the most inopportune time.