loading...
Cover image for The $85 Billion Cost of Bad Code
PullRequest

The $85 Billion Cost of Bad Code

bangel profile image Brennan Originally published at pullrequest.com on ・2 min read

A recent study from Stripe and Harris Poll found the average developer spends 42% of their time dealing with technical debt and maintenance issues, of which 3.8 hours are spent just on debugging "bad code," or poor quality code that's difficult to maintain. The opportunity cost of bad code comes to $85 billion annually — resources that could otherwise be used to build better software.

Average Dev Week

Establishing a healthy code review process can help address these issues by reinforcing the need to write readable, maintainable code. We've talked about some of the benefits of code review on our blog, but Stripe's study brings into focus the economic impact of bad code.

Cost of bad code

Companies can help their development teams by considering the following:

  1. Understand your total costs. 59% of developers strongly agreed their companies spend an excessive amount of time fighting with bad code. Tech debt needs to be addressed, and you can leverage a code review as a service or outsource support to complement your development teams. When evaluating the costs and benefits of bringing on added support, remember to account for the opportunity cost of tech debt and maintenance issues, as well as the negative impact on team and personal morale.

  2. Hire additional development support. The Stripe study isn't asking if you can afford to hire more developers — it's asking if you think you can afford not to. Writing high-quality code takes time, and with upcoming deadlines and competing priorities, 79% of developers felt they weren't given sufficient time to fix poor quality code. One way to responsibly scale your development resources is to use our network of on-demand reviewers.

  3. Prioritize your developers' time. Lastly, not all developers enjoy or excel at maintenance tasks. Specialization can help teams become more efficient, and it can also lead to happier, more productive developers. Work with your development team to identify the right mix of time spent writing new code and time spent maintaining it.

This was originally posted on PullRequest's blog. Get your code reviewed by professional reviewers: Sign up today for PullRequest

Posted on by:

bangel profile

Brennan

@bangel

Hi DEV Community, I'm passionate about clean code and code review Check out PullRequest.com where professional code reviewers backed by automation help you improve your code

PullRequest

PullRequest is a platform for code review, built for teams of all sizes. We have the world's largest network of on-demand reviewers, backed by best-in-class automation tools. Because code quality is important.

Discussion

markdown guide