Over a million developers have joined DZone.

Technical Debt and Collateral Damage

The idea behind keeping code clean and having automation is about getting to market in the shortest way possible. If the journey is longer, a lot of things can happen.

· DevOps Zone

The DevOps Zone is brought to you in partnership with Sonatype Nexus. The Nexus Suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

TheDonFor the record, I still don’t like the technical debt metaphor; I feel that it encourages taking on the debt. We don’t know what will happen, so it makes sense to do things now, even badly, and forget the price we’ll need to pay.

Metaphors aside, the price we pay is real. It cannot be quantified easily, but it is there.

This Is Where You Start Paying

Let’s think about it this way. If we examine our path of development until we have a “good product” (your definition may vary), then the road is already winding like a path in a garden maze. We don’t know if what we build works, if the technology is right, or even if there’s a customer.

So, it’s never a direct line. We take turns, stumble a bit. But let’s assume we’ve done it. That’s the shortest route possible. Ideal time.

Now, let’s add repaying the technical debt into the equation. Think of our maze structure. They’ve grown without trimming, they block our way, they block our view, and there are no signs telling us where to go.

So, our road becomes longer, with a lot more stumbling around. Now, the first impact (and maybe the most important) is that the time to market is obviously longer. We do all kind of hacks, we shave yaks, we try to understand why the system works like it does, imagine how not to break it, and wonder who the hell wrote it like that.

While being late, and sometimes not even getting there (or getting there in a different route, which may not be optimal) is bad enough, more things can happen on the way too.

For example, as the project gets longer, things have more chance to change in the market, in the team, in our company, etc. Maybe people are fed up with maintaining a crappy code base and leave. Maybe a new technology arrives, and we decide to throw everything we’ve done and replace it. Or, other projects seem more attractive than ours. Not to mention when a wild competing product appears.

Even if we are repaying the debt, the complexity of things can derail our projects just because we don’t get there faster.

(Then again, things don’t have to go bad; they can also go our way. Maybe we didn’t invest in clean code, and it’s easy to throw that code away. Maybe killing the project is the best decision we can make. We can only know about it in hindsight. It may be that we have invested in clean code, in features that the customer doesn’t use.)

The idea behind keeping the code and architecture clean and having automation in place is about getting to market in the shortest way possible because we’ve already done the work. If the journey is longer, a lot of things can happen.

That’s why you don’t want to get into debt in the first place.

The DevOps Zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

Topics:
devops ,technical debt ,software development

Published at DZone with permission of Gil Zilberfeld, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}