InfoQ

News

A Fresh Look at 'Technical Debt'

Posted by Mike Bria on Aug 27, 2008

Community
Ruby,
Agile,
Java
Topics
Agile Techniques ,
Delivering Quality
Tags
Refactoring ,
Legacy Code
A Technical Debt Workshop was recently held to improve our industry's understanding of and approach to "technical debt", resulting in some interesting ideas. Among them, changing our perception of the problem to focus on "assets" rather than "debt", an idea now receiving quite a bit of attention by people such as Michael Feathers and Brian Marick.

The conference organizers Matt Heusser and Steve Poling presented the vision for the 2-day event as follows:
A successful meeting will identify specific metrics that will bring the discussion of technical debt down to earth. It will also marshal evidence that we're not fooling ourselves when we say that borrowed trouble behaves like borrowed money. (Or better, we prove another dynamic is in play.) It will also state debt management and debt repayment strategies and when they are indicated.
The conference aimed to answer these 3 primary questions:
  1. What is technical debt? And what is not?
  2. How do we measure it? And its impact?
  3. Can we manage technical debt like other forms of debt?
The event surfaced some interesting ideas, as summarized by Heusser:
  • Ignorance: Bad code can birth from either sheer ignorance and/or as a result of a conscious decision. Read more on this from Brian Marick.
  • Bug Fixin': Bugs must always be fixed as soon as discovered; foster a stop-the-line culture.
  • Moral Hazard: When the lack of adequate customer-influence on the team leads to hazardously speedy but lower quality development, a concept introduced by Heusser
  • Impedance Mismatch: The possible negative effect on code quality of mismatching developer skill with difficulty of development task. More on this from Chris McMahon.
  • Liquid Assests: Perhaps the term "technical debt" focuses us on the wrong things; maybe focusing on the converse, on the investment side of things (as McMahon recently put it), might be more effective.
  • Affordances: Prove the team with regular time to reduce technical debt, and thus "increase assets".
Perhaps most interesting, or least fresh, of the ideas above is thinking of technical debt from the other perspective: striving to "increase assets". In other words, speaking in the Accounting 101 sense of "debits & credits": one can focus on reducing debits or on increasing credits, but in the end the ideal goal is simply to increase assets. It's in some ways a matter of perspective.

Just before the event Michael Feathers had written about the "code as an asset" idea. His point largely being that seeing code from an "asset" perspective might tap into more desirable points of people's nature, leading to a better result with respect to code quality and reaction to "technical debt" problems. According to Feathers, this aligns better because people naturally like gaining things ("assets"), not losing things ("debt").

Brian Marick later continued the discussion, using the term "fertile assets" to describe the effect of code quality on sustainable development. He draws an analogy to gardening, explaining that soil must remain fertile for continued harvests, but even so cannot necessarily always be of absolute top-level fertility as that would ultimately prevent harvesting. His observation is that production code behaves in a similar fashion.

One additional brief but rather interesting write-up coming out of the workshop, also by Brian Marick, highlights descriptions from some well-known agilistas of what’s unique about a typical decreasing-debt team.

As always, please do follow the links to get the full story on what's summarized here, then come back and others what your experience has led you to think about these ideas.

Related Sponsor

VersionOne is recognized by Agile practitioners as the leader in Agile project management tools. Companies such as Adobe, BBC, CNN, Dow, HP, IBM, Sony and 3M have turned to VersionOne to help deliver greater value to their customers.

Yeah, I thought it was neat too - by Matthew Heusser Posted Aug 27, 2008 1:55 PM
Technical Debt and Hackitecture by Anthony Lauder Posted Sep 7, 2008 1:37 AM
Cause of Technical debt by kyaw kyaw naing Posted Sep 14, 2008 11:09 AM
technical debt in plain English by kyaw kyaw naing Posted Sep 17, 2008 7:59 AM
  1. Back to top

    Yeah, I thought it was neat too -

    Aug 27, 2008 1:55 PM by Matthew Heusser

    Thanks for the coverage of the workshop.

    Just to add -

    1) Chris Sterling has some (relatively) comprehensive coverage of workshop material listed here:

    chrissterling.gettingagile.com/2008/08/25/the-i...

    Obviously, it's hard to distill two days of conference into two or three pages of text, but he makes a strong attempt.

    Also, we video-recorded the talks (thanks to Agile Alliance Sponsorship) and expect to have them up on youtube within a month. (Volunteer video editors of course). For the latest updates on the workshop, the best place to check is probably my blog:

    xndev.blogspot.com

  2. Back to top

    Technical Debt and Hackitecture

    Sep 7, 2008 1:37 AM by Anthony Lauder

    Technical debt is something I have been looking into for quite a long time. From looking into a whole bunch of software architectures, and unraveling their history, it appears that a lot of it come down to putting the best folks on an unexpected requirement to come up with a "really neat hack". The early payback on this is so great that these developers seem "10 times more productive than the average developer", so we reward hacking, and clap and
    cheer when folks do it again. Eventually, they are the only folks who can understand their own fragile lattice of hacks, and everybody else backs away from the code. Eventually, even the mental ability of these folks is overwhelmed, and you have a bankrupt hackitecture.

    Quite a bit of this is written up in a chapter in a book I am in the middle of writing: anthony.lauder.googlepages.com/legacysystems

  3. Back to top

    Cause of Technical debt

    Sep 14, 2008 11:09 AM by kyaw kyaw naing

    (1) lack of self discpline
    (2) impatience/hurry
    (3) ignorance.

    I have done a good prototype with exciting features. Then, I felt exhausted and even a bit disgusted with my own code. Heavy debts make the product ungly.

    You may read more at ethicminds.blogspot.com/

  4. Back to top

    technical debt in plain English

    Sep 17, 2008 7:59 AM by kyaw kyaw naing

    Technical debt is either (1) "unknown unknown" or (2) bad YAGNI(You Aint Gonna Need It), as opposed to good/official YAGNI, or clear YAGNI.

    See more at

    ethicminds.blogspot.com/2008/09/technical-debt-...

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.