<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Understanding Tech Debt - Medium]]></title>
        <description><![CDATA[How to measure, prioritise, and tackle technical debt - Medium]]></description>
        <link>https://medium.com/understanding-tech-debt?source=rss----ae69cfbf4fdf---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Understanding Tech Debt - Medium</title>
            <link>https://medium.com/understanding-tech-debt?source=rss----ae69cfbf4fdf---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:38:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/understanding-tech-debt" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tools to Improve Code Quality]]></title>
            <link>https://medium.com/understanding-tech-debt/tools-to-improve-code-quality-d36e18780911?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/d36e18780911</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[code-quality]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Mon, 13 Sep 2021 12:02:28 GMT</pubDate>
            <atom:updated>2021-09-13T12:02:11.852Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrIxzlhA2ZeGqemiHa2Ghg.png" /></figure><p>Maintaining a healthy codebase is extremely important for any team that wants to ship quality products at a high pace.</p><p>If you want to improve your codebase health and look for the right tooling, this article will give you some ideas on where to start.</p><h3>Automatic scans vs User reporting</h3><p>Let’s first look at the difference between static code analysis tools and user-input-based tools.</p><p><a href="https://www.perforce.com/blog/sca/what-static-analysis">Static code analysis</a> or source code analysis tools help dev teams analyse the code to detect defects and vulnerabilities. These tools run an automatic analysis of your legacy code or raise issues during the development process.</p><p>Some of these tools include CodeScene, SonarQube, and CodeClimate, and each of them has different functionalities. If you’re looking for an automatic code analysis tool, have a look at <a href="https://www.softwaretestinghelp.com/tools/top-40-static-code-analysis-tools/">this overview</a>.</p><p>The user-input-based tool, such as <a href="https://www.stepsize.com/?utm_medium=dev.to&amp;utm_source=referral&amp;utm_campaign=code%20quality">Stepsize</a>, is designed to fill the gaps left unaddressed by automatic code analysis tools.</p><p>I believe that the best way to learn about technical debt and other code issues is to make them visible to your team.</p><p>Automatic code quality tools, such as SonarqQube, are great at catching small pieces of debt related to code quality standards.</p><p>Automatic git analysis tools, such as CodeScene, are good at spotting indicators of tech debt in git data.</p><p>Stepsize is the best for codebase issues neither of these tools can catch. For example, the code that has a high risk of breaking, poor codebase standards, and all other tech debt that goes beyond code quality standards and git patterns.</p><p>Other popular tools teams use to track maintenance issues are:</p><ul><li>Project management tools, like Jira</li><li>List tracking apps, like Trello</li><li>Excel spreadsheet</li></ul><p>Each of them has its own advantages and you can find a more detailed comparison of these tools <a href="https://www.stepsize.com/blog/tools-to-track-and-manage-technical-debt">here</a>. But the main disadvantage of these tools is that it makes Engineers leave their workflow and switch context which leads to productivity loss.</p><h3>What is the right tool for my team?</h3><p>You might be thinking: great, now I know about a huge variety of tools that help with the codebase health and they all seem very helpful — but how to choose the right tools for my team?</p><p>Answer these 3 questions to decide whether you need to adopt a new tool:</p><ul><li><strong>What is the stage of our product?</strong></li></ul><p>Teams who are building the pre-market fit products usually focus on shipping new features as fast as possible.</p><p>But once you find the market fit, you need to take care of your codebase to have a long-term plan and maximise velocity.</p><p>If you’re not sure about adopting a new tool, start tracking technical debt in a spreadsheet. Here’s a <a href="https://stepsize.hubspotpagebuilder.com/free-spreadsheet-to-manage-technical-debt">free template</a> you can use to start documenting technical issues.</p><p>This activity will give you an idea of how much time and effort you need to spend on technical issues and if it makes sense for you to adopt a new tool such as Stepsize to speed up the process.</p><ul><li><strong>How many people work on the project?</strong></li></ul><p>If you’re the only person working on your project, you probably know most of your codebase and don’t need a special tool to start fixing your debt.</p><p>But if you have a team and you often onboard new members, the best thing you can do is to give context to your code.</p><p>Stepsize VSCode and JetBrains extensions will help you add relevant comments and collaborate with your team on the maintenance issues without having to leave your workflow.</p><ul><li><strong>Do we have small, medium, or large technical debt?</strong></li></ul><p><strong>Small</strong>: the type of tech debt that can be addressed as soon as the engineer spots it in the code and it’s within the scope of the ticket they’re working on.</p><p>Tip: You don’t need any specific tools to fix this debt but rather an engineering culture that supports the idea of boy/girl-scout rule and clean code.</p><p><strong>Medium</strong>: the type of debt that can be addressed within a sprint. It should go through the same sprint planning process as any feature work and be considered just as rigorously.</p><p>Tip: To build a habit of spending 10–20% of your sprint on code maintenance, make technical debt visible and track your progress. Stepsize is the best tool for it because it helps you easily track, prioritise and fix technical issues.</p><p><strong>Large</strong>: the tech debt that cannot be addressed immediately or even in one sprint.</p><p>Tip: if your team is drowning in tech debt, start by bringing up this issue with your PM and other managers. The best engineering teams we’ve spoken to have quarterly technical planning sessions in which all engineering leaders participate.</p><p>If your codebase is old and most of the Engineers who contributed to this code are not around, you might need to use both automatic and user input tools to reduce technical debt.</p><ul><li>Run the automatic analysis to identify hotspots in the codebase likely to have technical debt. Chances are high that automatic code analysis tools will show you a lot of tech debt, and you’d report it to decide whether the debt is worth fixing.</li><li>Use the Stepsize extension for <a href="https://www.stepsize.com/r/vscode?utm_medium=dev.to&amp;utm_source=referral&amp;utm_campaign=code%20quality">VS Code</a> and <a href="https://www.stepsize.com/r/jetbrains?utm_medium=dev.to&amp;utm_source=referral&amp;utm_campaign=code%20quality">JetBrains</a> that will help you make codebase issues visible and address them without leaving your workflow.</li></ul><p><strong>What are some other methods that your team uses to improve codebase health? Share in the comments!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d36e18780911" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/tools-to-improve-code-quality-d36e18780911">Tools to Improve Code Quality</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineers Can Now Use Free Software to Track Technical Debt Easily]]></title>
            <link>https://medium.com/understanding-tech-debt/engineers-can-now-use-free-software-to-track-technical-debt-easily-86ff576416fe?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/86ff576416fe</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[technical-debt]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Tue, 30 Mar 2021 12:49:24 GMT</pubDate>
            <atom:updated>2021-03-30T12:48:52.400Z</atom:updated>
            <content:encoded><![CDATA[<h3>Engineers Can Now Use Free Software to Track Technical Debt</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*SV0LRcEj_EEFF5HpZNiSzA.jpeg" /></figure><p><a href="https://www.stepsize.com/">Stepsize</a> helps Engineering teams track and prioritise technical debt. Now, all of our product’s core features are <a href="https://www.stepsize.com/pricing">available for free to all teams</a>. In this article, you’ll learn about our journey and why we chose to go freemium.</p><h3>Why freemium?</h3><p>Our team has spent the last year building a powerful tool to help Engineering teams track and prioritise technical debt. We were getting a stable number of users each month and onboarded most of our customers by doing personalised demos and regular check-ins.</p><p>Along the way, we’ve learned a lot from the fast-growing companies we served, and gradually, the product was ready to be adopted by the teams without our in-person guidance.</p><blockquote><strong><em>When we asked ourselves: should every company in the world have a good way to track and prioritise tech debt — the answer was “100% yes!”</em></strong></blockquote><p>It became our mission to enable every company to manage technical debt effortlessly.</p><p>Having an inspiring mission in mind and a powerful product at hand, we decided to eliminate all the usage barriers and add a free plan.</p><h3>New category of tools = new habit</h3><p>Stepsize falls into a completely new category of tools — technical debt management.</p><p><a href="https://www.stepsize.com/blog/cost-of-technical-debt">Numerous pieces of research</a> have shown that companies who manage technical debt ship up to 50% faster, have happier engineers, and higher product quality. This is significant enough to conclude that proper tech debt management could be the difference between winning and losing for any software company. But today, even despite their best efforts and processes, companies don’t have the right tools to manage tech debt adequately.</p><p>A lot of companies we’ve spoken to try to manage their tech debt by creating a backlog in their project management tool or in a spreadsheet. It’s a great way to start, but here’s the problem: these issues will not contain the context necessary for you to prioritise them effectively.</p><p>Here’s the vicious cycle that ensues:</p><blockquote><strong>the team tracks debt =&gt; can’t prioritise it =&gt; can’t fix it =&gt; the backlog grows =&gt; it gets harder to prioritise =&gt; tech debt is not managed effectively =&gt; the team stops tracking it</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*PAo5OsnKP6nIfKWd8SNQow.jpeg" /></figure><p>Stepsize solves this exact problem. With our product, engineers can track debt directly from their workflow (code editor, pull request, Slack, and more) so that you can have visibility into your debt. Stepsize automatically picks up important context like the code the debt relates to, and engineers get to quantify the impact the debt is having on the business and the risks it presents (e.g. time lost, customer risk, and more) so that you can prioritise it easily.</p><p>By going freemium, we give companies time to adopt new habits of tracking and prioritising technical debt and boosting their chances to succeed in managing it.</p><h3>How does Stepsize freemium plan work?</h3><p>We decided to go with three simple plans. The free plan includes an unlimited number of tech debt reports, unlimited users and teams as well as all workflow integrations (wow!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*TG6y-h4IkMuaRuEx.jpeg" /></figure><h3>What’s next?</h3><p>We designed this freemium product thanks to insights from 300+ interviews with some of the best software engineering teams in the world. One thing is clear: dealing with tech debt is a continuous process, not a project.</p><blockquote><strong>“Stepsize is our source of truth for tech debt. The way it allows me to report debt, straight from my editor is just superb. The best thing is that my team is actually using it to report debt on an ongoing basis.”<em><br></em></strong>Danylo, Team Lead at Neocles</blockquote><p>We continue having these conversations every day, so if you’d like to share your experience, reach out any time.</p><p>Our team is excited to share this journey with you, and we hope to <a href="https://app.stepsize.com/login?_ga=2.227097181.1793889806.1617006082-172098562.1608199334&amp;_gac=1.188525274.1614178794.CjwKCAiAi_D_BRApEiwASslbJwX6I2EQpf2cWReO_JaPTIpn77rizFwYudk4nEltjr2eDGBl7-YrOBoCIDMQAvD_BwE">see you all on board</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86ff576416fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/engineers-can-now-use-free-software-to-track-technical-debt-easily-86ff576416fe">Engineers Can Now Use Free Software to Track Technical Debt Easily</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deal with tech debt — Lessons learned from the best engineering teams]]></title>
            <link>https://medium.com/understanding-tech-debt/how-to-deal-with-tech-debt-lessons-learned-from-the-best-engineering-teams-a2b37f570937?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/a2b37f570937</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Sun, 24 Jan 2021 18:25:36 GMT</pubDate>
            <atom:updated>2020-09-30T16:06:45.509Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to deal with tech debt — Lessons learned from the best engineering teams</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xWzBd4yiOolpMBRWPvVdiQ.jpeg" /></figure><p>A few months ago, a random Twitter encounter led to me meeting the fantastic Janna Bastow as she was preparing her new talk: <a href="https://www.prodpad.com/blog/decisions-debt-and-other-dilemmas/">Decisions, Debt, and other Dilemmas</a>.</p><p>I was in the middle of my quest to interview as many top software engineering teams as was necessary to nail <a href="https://blog.stepsize.com/the-perfect-process-to-manage-tech-debt/">the perfect process to manage tech debt</a>.</p><p>Needless to say, we blew right past the time we’d allocated for our introductory call as we were riffing about technical debt and how big a role it plays in the daily decisions of Agile software development teams.</p><p>Janna and the <a href="https://www.prodpad.com/">ProdPad</a> team were incredibly kind to organise a webinar for me to talk about what I’d learned from the 200 top engineering teams I’d interviewed about tech debt.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQnizCRe-sV8%3Fstart%3D1869%26feature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQnizCRe-sV8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQnizCRe-sV8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec0187cb58d877e94571658f260bfee9/href">https://medium.com/media/ec0187cb58d877e94571658f260bfee9/href</a></iframe><p>In this talk, you will learn:</p><ul><li>How to define and understand tech debt.</li><li>The tactics for dealing with tech debt head on.</li><li>Processes and tools to use when dealing with small, medium, and large pieces of tech debt.</li><li>How to think and approach tech debt depending on your company’s stage, size, business priorities, culture, and more.</li></ul><h3>Timestamps</h3><p><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=158">2:38</a> — What is tech debt?<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=211">3:31</a> — Why is tech debt a thing?<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=309">5:09</a> — Martin Fowler’s Technical Debt Quadrant.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=382">6:22</a> — Tech debt myths to debunk.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=492">8:12</a> — Why bother managing technical debt properly?<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=620">10:20</a> — Creating your tech debt management strategy.<br>To get you started with this, you can take our 1 minute ‘tech debt credit score’ test to find out how much debt you can take on and why.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=942">15:42</a> — The one cultural characteristic for a healthy codebase.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1121">18:41</a> — How to create &amp; think about your tech debt budget.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1300">21:40</a> — How to deal with ‘small’ debt.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1360">22:40</a> — How to deal with ‘medium-sized’ debt.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1621">27:01</a> — How to deal with ‘large’ debt.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1752">29:12</a> — High level takeaways.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1802">30:02</a> — A SaaS product to help you manage tech debt.<br><a href="https://www.youtube.com/watch?v=QnizCRe-sV8&amp;feature=youtu.be&amp;t=1853">30:53</a> — Q&amp;A.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2b37f570937" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/how-to-deal-with-tech-debt-lessons-learned-from-the-best-engineering-teams-a2b37f570937">How to deal with tech debt — Lessons learned from the best engineering teams</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 examples of sneaky tech debt and how to spot them]]></title>
            <link>https://medium.com/understanding-tech-debt/7-examples-of-sneaky-tech-debt-and-how-to-spot-them-2c43f44da97d?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/2c43f44da97d</guid>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Sun, 24 Jan 2021 18:25:24 GMT</pubDate>
            <atom:updated>2019-10-07T09:01:48.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLwcEmYzqU0kV8jCFlmYdA.jpeg" /></figure><p>At <a href="https://stepsize.com/">Stepsize</a>, helping high-growth software companies measure and manage technical debt is our business. And this means we get to spend our days with some of the best engineering minds out there.</p><p>We’ve listened to their stories, and analysed hundreds of thousands of lines of their code and contextual data, to identify the signals of technical debt in all the noise. Following on from our <a href="https://blog.stepsize.com/broader-definition-of-technical-debt/">broader definition of tech debt</a>, in this article we’ll share some examples of technical debt that we’ve spotted in the wild, to help you identify it in your own codebase — before it catches you off-guard.</p><h3>’We ran out of integers’</h3><p>Let’s imagine we have a company that’s developing a new product. Because we’re sensible people, we don’t over-engineer anything, and we stick with tried and tested tech that we know well. After all, we need a prototype quickly, to test our product and business idea.</p><p>We build simple models in a simple SQL database and decide to use integers as IDs. We use <a href="https://dev.mysql.com/doc/refman/8.0/en/example-auto-increment.html">AUTO_INCREMENT</a> to create a new ID — so far, it’s all straightforward enough.</p><p>Now, fast-forward a few years. Our MVP has become outrageously successful and business is booming. We extended the SQL database so that it could handle all the amazing features our users requested, and we still use AUTO_INCREMENT. We don’t really have the time to rebuild anything, or do anything fancy, because we’re growing like crazy and, like the man said, if it ain’t broke, don’t fiddle with it.</p><p>But one day, after we’ve poured hundreds of thousands of dollars into our marketing engine, new user registration takes a nosedive. The team scrambles to figure out what went wrong and there’s total panic.</p><p>Then, one of our engineers comes along and sheepishly says, ‘We ran out of integers.’</p><p>‘Excuse me?’ we say, incredulous. ‘We ran out of <em>integers</em>?’</p><p>It turns out <a href="https://stackoverflow.com/questions/2615417/what-happens-when-auto-increment-on-integer-column-reaches-the-max-value-in-data">that this is what happens when AUTO_INCREMENT reaches the MAX_VALUE in SQL databases</a>.</p><p>We’ve seen this play out in real life. It’s true that had this tech debt been properly managed (i.e., consciously taken on and tracked), it would’ve been caught before it caused such mayhem. But what makes this an example of ‘good’ technical debt is the fact that we did not over-engineer the initial MVP by trying to accommodate for a highly-uncertain future.</p><h3>When the requirements of the business change</h3><p>Back at our hypothetical company, a customer of our system submits a feature request: they would like to see sales figures for <em>regions</em> within the countries we display in our dashboard. Easy enough, right?</p><p>So that we can ship something quickly, we decide to use a convention to represent regions as countries with their internal short code</p><pre>const regionShortCode = `${country}-R-${region}`;</pre><p>This does the trick. All we have to do is understand this convention in one place in the UI and we can display regions under countries.</p><p>After a couple of months, our customers tell us they’d like to see sales <em>commission</em> data broken down by countries and regions across our UI and the reports we put together for them. Suddenly, this simple conceptual change requires us to restructure the domain model in the database, code, and UI, which takes a significant amount of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5bDpQjmnWwC3krjSlvfOw.jpeg" /></figure><p>Business requirements change and we often can’t predict exactly how they will do so. This is a frequent cause of tech debt: <a href="https://blog.stepsize.com/broader-definition-of-technical-debt/">code written yesterday can become a burden today</a></p><p>Again, there’s a right way to manage this technical debt — expectations need to be set clearly with all stakeholders, and we simply need to put in the work to restructure the domain model. But taking it on in the first place was not a mistake. The system we’d designed matched the requirements <em>at the time</em>,<em> </em>which were based on our understanding of the problem at hand <em>at the time</em>. That’s the best anyone can do.</p><h3>Dependencies can go bad</h3><p>At our imaginary company, we’ve decided to refactor our codebase into a highly-distributed architecture (the reasons for this need not concern us here). We have microservices everywhere, neatly split up, each with a single responsibility, and their own set of dependencies.</p><p>Our company has grown even more and we’ve gone international. Our system now has to accommodate multiple currencies and we’ve been tasked with shipping this feature. It seems like the job will be isolated to a specific microservice. The feature is easy to build, and we ship it. Victory!</p><p>Or so we think. Alarm bells start going off; PagerDuty is desperately trying to get our attention. The system is down and the on-call engineers scramble to fix the issue. They collectively raise their palms to their faces when we tell them about the cause of the outage.</p><p>As it turns out, the microservice we modified hadn’t been deployed in almost a year, so no one realised that it wouldn’t be backwards compatible with a few other microservices which depend on it. We simply added an extra value (to specify the currency) and modified a few parameters in the data returned by the API. Some of the other microservices which interacted with this API didn’t handle this exception, so they just keeled over. Welcome to ‘dependency hell’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ruqXj_2294ZoY-QE5mjd3g.jpeg" /></figure><p>Kellan Elliott-McCrea expands on this in his piece, ‘<a href="https://kellanem.com/notes/towards-an-understanding-of-technical-debt">Towards an Understanding of Technical Debt</a>’ and <a href="https://medium.com/systems-architectures/walking-the-microservices-path-towards-loose-coupling-few-pitfalls-4067bf5e497a">Srinath Perera explains how to avoid dependency hell</a>. Give them a read — they’re well worth it.</p><h3>Outgrowing database models</h3><p>Let’s now suppose we’re working on a codebase using the good old <a href="https://www.codecademy.com/articles/mvc">MVC</a> approach. We’ve followed the ‘<a href="https://www.codementor.io/pardeepkumar905/working-with-thin-controller-and-fat-model-concept-in-laravel-nwl7ljsst">thin controller and fat model</a>’ paradigm. Our original team of seven engineers has now grown into <em>ten</em> teams of seven and it’s sometimes hard to know exactly what everyone is working on, so the codebase has started evolving in different directions without us knowing it.</p><p>Growth means more entropy in our codebase, which in turn implies more technical debt. You can take a deep dive into this topic with <a href="https://blog.stepsize.com/laws-of-tech-debt-part-i-macro-trends-that-make-tech-debt-inevitable/">the simple reasons tech debt is inevitable</a> but in this MVC example, we’ll end up with huge models that should be split up — or even with, say, eleven models that should be combined into one.</p><p>This is an extremely painful kind of technical debt, as the rest of our system will often heavily rely on the structure of our models. Changing the very foundation of our architecture will have ripple effects across our entire system — and tackling this is rarely just about refactoring models.</p><h3>Too few, or too many automated tests</h3><p>Not having enough test coverage is a classic problem. Complex code is hard to change or refactor — and problems are tougher to identify and fix — without automated test coverage all the way up from integration level. The code becomes resistant to change, as Kellan Elliott-McCrea writes in ‘<a href="https://kellanem.com/notes/towards-an-understanding-of-technical-debt">Towards an understanding of technical debt</a>’.</p><p>What we often fail to consider is that having too many fragile tests that break on every change, and require more maintenance than the application code itself, is also a form of technical debt.</p><h3>Changing system design without changing the org structure</h3><p>‘Conway’s Law’ drives this type of tech debt, and we discussed it in the <a href="https://blog.stepsize.com/laws-of-tech-debt-part-ii-micro-trends-pushing-us-towards-technical-bankruptcy/">second part of our series about the laws of technical debt</a>. Put simply, engineering teams are constrained to designing systems that copy the communication structures of their organisations. This means that, if we change our system’s design without also changing our org structure, we’ll be creating technical debt.</p><p>As Ankit Sobti explains in his article detailing <a href="https://medium.com/better-practices/conquering-the-microservices-dependency-hell-at-postman-with-postman-part-2-7c825d576947">how Postman worked their way out of dependency debt</a>, splitting teams into Product, Service, and Platform teams was no longer appropriate for them, given their new heavily-distributed system. They had to divide each of these units into sub-units with clear ownership of the microservices within their respective realms of responsibility. <a href="https://blog.stepsize.com/the-one-cultural-characteristic-you-need-for-a-healthy-codebase/">Code ownership is the most important cultural characteristic in maintaining a healthy codebase</a> and it’s only achievable if our system and org structure are compatible.</p><h3>Siloed institutional knowledge</h3><p>When an engineer leaves our company or is reassigned, if our code isn’t properly documented, or the handover isn’t done properly, all the knowledge they’ve accumulated about the code leaves with them.</p><p>When this happens, the <a href="https://blog.stepsize.com/the-one-cultural-characteristic-you-need-for-a-healthy-codebase/">code in question is orphaned</a>, which will make it hard for engineers who adopt the code to understand it. This slows them down and leads ultimately to . . . you guessed it: technical debt.</p><p>This kind of tech debt often means having to rewrite entire services, or even delete features that we assumed were bugs when browsing the code.</p><p>To illustrate this, imagine working on a pizza delivery product. Users can order pizza online, and a delivery person will cycle across the city to pick it up for them. You come across code that allows an operator to manually override the system and send several delivery people to pick up the same order. Surely that’s a bug — why would you ever need to send several people to pick up the same order? So you delete it.</p><p>But again, alarm bells go off. This time, it’s the company’s Head of Operations, whose voice has reached a pitch only dogs can properly hear. It turns out that several delivery people isn’t <em>always</em> a bad idea — if a big customer orders fifty pizzas for an office party, one guy on a bicycle won’t cut it. You’ll need a small army of delivery people to fulfil the order.</p><p>Orders from your biggest customers will be lost until you’ve fixed this, all because a quirk of the code wasn’t properly documented and your departing ex-colleague never mentioned it when you took over.</p><h3>‘Bad’ types of technical debt</h3><p>You’ll notice that none of the examples above is an excuse for bad code, or for being unaware of best practices at the time the code was written, or indeed for any form of incompetence. As we discussed in our <a href="https://blog.stepsize.com/broader-definition-of-technical-debt/">broader definition of technical debt</a> article, even the best engineers in the business can’t avoid tech debt, but they do know how to handle the fact that ‘<a href="https://martinfowler.com/articles/is-quality-worth-cost.html">software exists in a world of uncertainty</a>’.</p><blockquote>A mess is not a technical tebt.</blockquote><p><a href="https://sites.google.com/site/unclebobconsultingllc/a-mess-is-not-a-technical-debt">Bob C. Martin</a></p><p>We do not want to accept a mess as technical debt. Ignoring good design practices and current coding patterns is unacceptable, and we must concede that the code we write today will need to be modified tomorrow. It is important that we make this distinction, because bad tech debt will spread like a virus — and we can’t have that. We built a <a href="http://bit.ly/VSCode-marketplace-Stepsize">free VSCode extension</a> to help you avoid this.</p><p>For a meta-framework to help you think about all these different types of tech debt, I invite you to read about <a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html">Martin Fowler’s ‘Technical Debt Quadrant’</a>. He makes the distinction between <strong>prudent</strong> and <strong>reckless</strong> tech debt which can each be split into <strong>deliberate</strong> and <strong>inadvertent</strong> tech debt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*hXmv8QJidP3gqcqw" /></figure><p><a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html">Martin Fowler ‘Technical Debt Quadrant’</a></p><p>What other examples of tech debt have you come across? If you had to separate them into ‘buckets’, what would you call these buckets? I’d love to hear about your experiences with tech debt, so please hit me up in comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c43f44da97d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/7-examples-of-sneaky-tech-debt-and-how-to-spot-them-2c43f44da97d">7 examples of sneaky tech debt and how to spot them</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The simple reasons tech debt is inevitable]]></title>
            <link>https://medium.com/understanding-tech-debt/the-simple-reasons-tech-debt-is-inevitable-ffca7b70a804?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/ffca7b70a804</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Sun, 24 Jan 2021 18:25:13 GMT</pubDate>
            <atom:updated>2019-10-07T09:03:34.006Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvLL3IBUz67eEEucBe54HA.jpeg" /></figure><p>Have you ever heard of a software development team that <em>didn’t</em> have to deal with technical debt?</p><p>Me neither. In fact:</p><blockquote><em>Engineers spend ~33% of their time dealing with technical debt which crushes team morale and costs companies ~$85Bn/year.</em></blockquote><p><a href="https://stripe.com/files/reports/the-developer-coefficient.pdf"><em>Research by Stripe</em></a></p><p>Let that sink in. That’s $85 <em>billion.</em></p><p>A third of all engineering time is spent dealing with technical debt. It fills software engineers with dread. It truly is the worst thing about their job — and to add insult to injury, the rest of the business often fails to empathise with them. It’s no-one’s fault, but technical debt is widely misunderstood. It slowly ossifies software companies until they can no longer grow without taking months or years to rewrite their application . . . which is a lifetime in today’s market.</p><p>Tech debt is just a thing that happens, right? We start writing code, tech debt accumulates, and <em>bam</em>, there’s suddenly too much of it. Our codebase becomes mired in debt, and we reach technical bankruptcy. So we fight it. We embrace the grind and repay some of that debt. Maybe we’ll make it, maybe we won’t. That’s just the nature of software businesses. It’s how we roll.</p><p>But does it have to be like this? Are there some fundamental laws of software development that make it so? And if there are, can we bend these laws to our advantage? Technical debt is a fact of life, but technical bankruptcy doesn’t have to be.</p><p>Let’s look to at a different science for some clues, because the laws of thermodynamics can give us key insights into why technical debt is inevitable.</p><h3>The macro-trends that make technical debt inevitable</h3><h4>The First Law of Thermodynamics</h4><p>Also known as the <a href="https://www.britannica.com/science/thermodynamics/The-first-law-of-thermodynamics">law of conservation of energy</a>, this states that:</p><blockquote><em>The total energy of an isolated system remains constant; it is said to be conserved over time.</em></blockquote><p>In other words, energy cannot be created or destroyed, though it can be changed from one form to another.</p><p>To keep things simple, let’s think of our codebase as an <a href="https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Thermodynamics/Fundamentals_of_Thermodynamics/A_System_and_Its_Surroundings#Isolated_System">isolated system</a>. Ignore third-party dependencies and anything else that lives outside of our codebase. Under these conditions — a stable number of engineers, shipping features at a high, yet steady pace — the amount of entropy (<a href="https://www.britannica.com/science/entropy-physics">a measure of the disorder and randomness in a system</a>) in our codebase remains constant.</p><p>Our engineers can’t become superhuman overnight, so we can’t increase their efficiency if they’re already at maximum capacity. But we can hire more engineers, and this increases the energy in our system. It’s why <a href="https://en.wikipedia.org/wiki/Brooks%27s_law">Brook’s law</a> is a thing: ‘Adding people to a late software project makes it later’ because it increases energy — or chaos — in a system where chaos is already high.</p><p>High-growth software companies constantly battle with this force. They raise a round of funding, double the size of their engineering team as quickly as the labour market will allow, and then have to deal with the massive increase of ‘energy’ in their codebase. It’s often overwhelming and it can lead to a sharp increase in technical debt if they fail to implement countermeasures.</p><p>But wait. Why should it lead to an increase in technical debt?</p><h4>The Second Law of Thermodynamics</h4><blockquote><em>A closed system’s disorder cannot be reduced, it can only remain unchanged or increase.</em></blockquote><p>Essentially, isolated systems naturally degenerate into a more disordered state. This ‘disorder’ — which we called ‘energy’ or ‘chaos’ above — is called entropy. <a href="https://en.wikipedia.org/wiki/Ivar_Jacobson">Ivar Jacobson</a> and friends have researched the phenomenon of entropy in codebases and coined the term <a href="https://en.wikipedia.org/wiki/Software_entropy">software entropy</a>. As a codebase is modified, it’s entropy increases. This growing chaos is the cause of technical debt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zfAHNhalrERGBNAu.jpg" /></figure><p>Back at our high-growth software company, their customer base keeps expanding, and the market is heating up. Their expanding engineering team ships day and night to keep up with the growth. If nothing is done, the codebase will become ever more complex. The pressure is on.</p><blockquote><em>I look at technical debt as entropy in the codebase. I don’t think it ever ends, it’s a constant struggle.</em></blockquote><p><a href="https://twitter.com/mrp"><em>Ron Paridges</em></a><em>, VP of Engineering at Carta</em></p><p>When planning every sprint, our company gets to choose: should they do something to tackle the growing complexity? Or should they just ship new features?</p><p>The third and final law of thermodynamics makes it clear why this trade-off is nowhere close to obvious.</p><h4>The Third Law of Thermodynamics</h4><blockquote><em>The entropy of a system approaches a constant value as the temperature approaches absolute zero.</em></blockquote><p>This complex-sounding statement is, in fact, quite simple in essence, and while the laws of thermodynamics have far-reaching — and sometimes mind-boggling — implications, their principles are easily grasped. For example, when water takes the form of vapour, its molecules are “free” to behave in a totally chaotic way. Entropy is all over the place. However, when water freezes, its molecules are “trapped” and stay in place (more or less). Entropy decreases and approaches a constant value.</p><p>So, what can we do to control software entropy?</p><p>Well, we could stop shipping code. That’s why some teams like to have a ‘code freeze’ to properly QA their system before it’s released to customers. If the codebase isn’t modified anymore, there’s no more entropy, no more chaos, no more unintended consequences, and no increase in tech debt.</p><p>It’s nonsensical to try and instigate a permanent code freeze — we’ve got to ship. So our only other option is to refactor.</p><blockquote><em>The process of code refactoring can result in stepwise reductions in software entropy.</em></blockquote><p><a href="https://en.wikipedia.org/wiki/Software_entropy"><em>Wikipedia</em></a></p><p><a href="http://bit.ly/VSCode-marketplace-Stepsize">Here’s a free VSCode extension to help you do just that</a>. Get started now before things get out of hand!</p><h3>Reducing software entropy isn’t that simple</h3><p>So far so good. In fact, this all seems a bit like stating the obvious; anyone who knows anything about building software knows this stuff, at least intuitively.</p><p>So why are we still being caught off-guard by technical debt?</p><p>It’s because even though we know we should refactor to reduce complexity, there is a myriad of other pressure-inducing forces that prevent us from allocating the time and resources needed to do it properly and often enough. This means that — in our codebase, and all other codebases out there — software entropy is constantly increasing.</p><p>We all know Moore’s Law, but, consider Bill Gates’ variant on <a href="https://en.wikipedia.org/wiki/Wirth%27s_law">Wirth’s law</a>:</p><blockquote><em>The speed of software halves every 18 months.</em></blockquote><p><em>Bill Gates</em></p><p>I’m convinced that the growing entropy in our codebases is the main driver behind this law.</p><p>The growth rate of software entropy is directly correlated to the growth rates of things like technology, software markets and companies, and coding literacy — all of which are growing pretty damn fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/0*k4S8uUeunGxfUDp2" /></figure><p>Imagine the pressure this expectation puts on software product development teams. These are daunting global trends, and they can feel crushing to a relatively small group of people. It’s almost like asking them to fight gravity and take flight by flapping their arms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*2ZIBzGHXZ7FtRQJs" /></figure><p>For more reading on this topic, in <a href="https://blog.stepsize.com/laws-of-tech-debt-part-ii-micro-trends-pushing-us-towards-technical-bankruptcy/">4 habits every engineering team needs to beat tech debt</a> I looked at the micro-trends constantly pushing us towards technical bankruptcy, and how high-growth software organisations can combat them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffca7b70a804" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/the-simple-reasons-tech-debt-is-inevitable-ffca7b70a804">The simple reasons tech debt is inevitable</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Cost of Technical Debt]]></title>
            <link>https://medium.com/understanding-tech-debt/the-cost-of-technical-debt-5250f1f8a24e?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/5250f1f8a24e</guid>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[legacy-code]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 14:06:45 GMT</pubDate>
            <atom:updated>2020-11-27T14:49:54.269Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*trKumC7tDV-FxAJ05oxrog.png" /></figure><p>There are many ways in which technical debt costs us money: lost deals, customer churn, employee churn, lawsuits, and more. However, there are a couple of issues that are more important than others: engineering time, morale, and the missed revenue from software delays.</p><p><strong>Engineering time</strong></p><p>The cost of engineering time is quite simple:</p><blockquote><em>Engineers spend 33% of their time dealing with technical debt.</em></blockquote><p><a href="https://stripe.com/files/reports/the-developer-coefficient.pdf"><em>The Developer Coefficient</em></a><em> (Stripe)</em></p><p>On average, developers spend 41.1 hours at work each week, 13.4 hours of which they spend on technical debt. Maintenance of legacy systems and technical debt is the number one cause for productivity loss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bILI-aV4Ej8AYubY" /></figure><p><em>Image from </em><a href="https://stripe.com/files/reports/the-developer-coefficient.pdf"><em>The Developer Coefficient</em></a><em> (Stripe)</em></p><p>Think of it like this: if you pay your software engineers $100k, 33% of that goes towards dealing with technical debt. For a 50-person engineering team, that 33% is $1.65M/year.</p><p>Stripe estimates technical debt alone has a $3 trillion impact on global GDP.</p><p><strong>Delayed software product releases</strong></p><p>The effect of delayed product releases on monthly recurring revenue (MRR) is another aspect that is worth diving into. Let’s quickly run through two scenarios where the monthly revenue growth rate remains constant at 15%, and the MRR secured on launch is $5k:</p><ol><li>The product launches in February (month 2 in the chart below)</li><li>The product launches in April (month 4 in the chart below)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*JxO3S39pYOwsB9cl" /></figure><p>Shipping a mere two months later will cost our business 25% of the revenue we could’ve made over this selected period. MRR on month 24 would’ve been over 30% higher if we’d shipped just two months earlier and managed to maintain that shipping pace.</p><p>These figures are make-or-break for high-growth SaaS companies.</p><p>As Martin Fowler explains, a healthy codebase results in features being shipped faster, so it is crucial for engineering teams to have the purview to continuously manage technical debt as they build the product.</p><p><strong>Key takeaways</strong></p><p>Companies need to identify key pieces of tech debt that get in the way of key goals, cost countless engineering hours in productivity losses, or are the root cause for bugs and other issues that impact the customer experience. But most companies remain blissfully unaware of that and bear the enormous costs of tech debt without even realising it.</p><p>To fix that, engineering teams need a clear understanding of the strategy and metrics for technical debt.</p><blockquote><em>By 2023, I&amp;O leaders who actively manage and reduce technical debt will achieve at least 50% faster service delivery times to the business.</em></blockquote><p><a href="https://www.gartner.com/en/publications/how-to-assess-infrastructure-technical-debt-to-prioritize-legacy-modernization-investments">Gartner’s research</a> basically says that companies who have a strategy for technical debt will ship 50% faster.</p><p>Luckily, Stepsize can help you out. We’ve built a SaaS product that applies a simple step by step methodology to track, prioritise, fix, and measure technical debt, and you can <a href="https://www.stepsize.com/">try it for free!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5250f1f8a24e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/the-cost-of-technical-debt-5250f1f8a24e">The Cost of Technical Debt</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A broader definition of technical debt]]></title>
            <link>https://medium.com/understanding-tech-debt/a-broader-definition-of-technical-debt-188d140fcf4?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/188d140fcf4</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Wed, 21 Aug 2019 16:53:23 GMT</pubDate>
            <atom:updated>2020-10-20T19:44:46.921Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*FXeWoMKJgxXgsi9NGV6Cgg.jpeg" /></figure><p>‘Technical debt’ is a term we throw around constantly in the software development industry. You might also hear it referred to as “code debt” or the shorthanded and catchier “tech debt.” Whatever you call it, though, it’s part of our daily lives.</p><p>Despite its frequency, what we mean when we say ‘technical debt’ has, in some instances, extended beyond the original metaphor. That’s not a bad thing. The initial definition is immensely useful, and we don’t intend to open yet another debate about whether it’s appropriate.</p><p>However, we do think it’s important that engineers, programmers, stakeholders, and anyone else involved in the development process has a shared understanding of the term. That’s why we want to extend the definition to encompass every aspect of what we mean by ‘technical debt’. We can then implement the right tactics to manage it effectively for unique business needs — even if we risk a broader definition over-stretching the original technical debt metaphor.</p><p>We’re going to offer the simple, yet (we think) complete, definition of technical debt that we’ve been working with at Stepsize. We help high-growth software companies with measuring and managing technical debt, so we’ve found that we need a bit more of a concrete tech debt methodology, one that encompasses what metrics we’re looking at and how we’re measuring them.</p><h3>Unpacking this definition of technical debt</h3><blockquote><em>Technical debt is code written yesterday that’s a burden today.</em></blockquote><p>At first glance, this might sound as if code becomes technical debt the moment it’s pushed to production, as if everything in your codebase is technical debt.</p><p>That’s because it kind of is.</p><h3>The role of uncertainty and change</h3><p>The code that engineers or programmers write to solve a problem is based on their current understanding of that problem. It sounds obvious, but it has profound implications. Even if the perfect engineers found the perfect solution to a problem and coded it perfectly, their understanding of the problem will evolve — and quickly.</p><p>But left unattended, their code won’t.</p><p>That’s a bad thing. All that hard work in the first place, can easily become bad code after just a few short days. Their code is then no longer appropriate. Its functionality has been compromised in some way. Much like financial debt, this type of debt happens all the time, especially with legacy code. It also happens much faster than you might think in a high-growth environment.</p><p>In his book ‘Is High Quality Software Worth the Cost?’, Martin Fowler explains that ‘software exists in a world of uncertainty.’ Because of this, you’ll ship your Minimal Viable Product (MVP) or feature quickly, to learn from your users as soon as possible. And if they request a new feature that you didn’t quite see coming, that could raise uncomfortable questions about the entire framework you used to solve the problem you thought you were tackling.</p><p>Sometimes, you can simply clean up and rework or pull some refactoring magic to match your new understanding of the problem. But such short-term solutions make your code accumulate cruft. This just increases your amount of technical debt.</p><h3>Tech debt slows down the whole engineering team</h3><blockquote><em>Developers find poor quality code significantly slows them down within a few weeks.</em></blockquote><p><a href="https://martinfowler.com/articles/is-quality-worth-cost.html"><em>‘Is High Quality Software Worth the Cost?</em></a><em>’ by Martin Fowler</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*0eirw7qUT-vtjHP4.png" /></figure><p>That’s why it’s important for high-growth organizations to have a plan for managing technical debt.</p><p>Martin Fowler argues that it’s worth investing in code quality since it will speed up new feature development. If a new understanding of the problem at hand has changed significantly, we need to take action, or the rest of the programmers on the development team will have a hard time understanding our code and productivity will suffer. In that sense, if it isn’t well maintained or thrown away, code we wrote yesterday will inevitably become technical debt and slow the whole team down.</p><p>However, not all tech debt is at the same stage of maturity — and that’s where the second half of our definition comes into play.</p><h3>No one can predict the future</h3><p>No matter how incredible our development team is, no one can accurately predict the future. This is true in startups, SMBs, and it’s especially true in a high-growth environment. That’s why we’ve replaced the waterfall method with Agile development; software isn’t built like cathedrals.</p><blockquote><em>It’s often the case that it can take a year of programming on a project before you understand what the best design approach should have been.</em></blockquote><p><a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html"><em>Technical debt quadrant</em></a><em>, by Martin Fowler</em></p><p>But the best in the business do know how to handle such high uncertainty. They use unit tests when appropriate, continuously refactor code that has accumulated too much cruft, and won’t accept bad code as technical debt. Here’s a free VSCode extension to help you do all that directly in your editor.</p><p>Often, the very real restrictions we face — project deadlines, budget constraints, and more — mean that we can only afford to pay back the most pressing technical debt that’s getting in the way of our most immediate and predictable goals — the code that’s a burden today. This is what drove us to write about how to stop wasting engineering time on technical debt.</p><h3>Takeaway</h3><p>In such uncertain conditions, the only tech debt that we can really do anything about is that which gets in the way of our most immediate and predictable goals.</p><p>Given our broader definition of tech debt, the only real solution is to continuously address the most pressing technical debt as we continue to deliver new features at pace for our customers. That’s the tech debt that we know for sure will slow us down today, or soon.</p><p>Distinguishing between different types of technical debt — most notably the reckless and prudent kinds — is another important factor in doing this successfully. We have an article in the works on this very topic, so stay tuned!I’d love to read your thoughts on this definition. Do you have a different one you use? Let me know in comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=188d140fcf4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/a-broader-definition-of-technical-debt-188d140fcf4">A broader definition of technical debt</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to stop wasting engineering time on technical debt]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/understanding-tech-debt/how-to-stop-wasting-engineering-time-on-technical-debt-9404e5907273?source=rss----ae69cfbf4fdf---4"><img src="https://cdn-images-1.medium.com/max/2600/1*EHbivZiL2ZGT5OgKh9D5Iw.jpeg" width="8240"></a></p><p class="medium-feed-snippet">You know how it is. It&#x2019;s already hard enough to squeeze everything you need into a sprint without trying to find an extra 10%&#x2013;20% of&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/understanding-tech-debt/how-to-stop-wasting-engineering-time-on-technical-debt-9404e5907273?source=rss----ae69cfbf4fdf---4">Continue reading on Understanding Tech Debt »</a></p></div>]]></description>
            <link>https://medium.com/understanding-tech-debt/how-to-stop-wasting-engineering-time-on-technical-debt-9404e5907273?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/9404e5907273</guid>
            <category><![CDATA[technical-debt]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Wed, 31 Jul 2019 13:05:18 GMT</pubDate>
            <atom:updated>2021-04-06T15:01:17.559Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The one cultural characteristic you need for a healthy codebase]]></title>
            <link>https://medium.com/understanding-tech-debt/the-one-cultural-characteristic-you-need-for-a-healthy-codebase-fe0a33819077?source=rss----ae69cfbf4fdf---4</link>
            <guid isPermaLink="false">https://medium.com/p/fe0a33819077</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Alex Omeyer]]></dc:creator>
            <pubDate>Wed, 31 Jul 2019 13:04:58 GMT</pubDate>
            <atom:updated>2019-10-07T09:06:18.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdnL2t4ZI4W2Obz--p_Sdw.jpeg" /></figure><p>It’s easy to pay lip service to company culture. But few companies actively consider those few cultural characteristics that make a meaningful difference to performance — because that’s the hard part.</p><p>For software teams, by far the biggest predictor of engineering health is ownership. In this practical guide, we’ll examine exactly how you can incorporate this principle in your engineering team’s day-to-day work, so that your codebase’s health can take care of itself.</p><p>I’m lucky enough to meet some of the best engineers in the world as part of Stepsize’s daily work. When discussing how technical debt is created with top engineers from the likes of Skyscanner, Spotify, Palantir, etc., one theme came up consistently: ownership.</p><p>In highly-collaborative, fast-moving engineering teams (i.e., modern ones) where engineers can commit to any part of the codebase, it’s easy for the code to accumulate cruft and become a monster of Frankenstein-like proportions. And when things become bad enough, someone has to swoop in like Captain Marvel and fix them with a big refactoring.</p><p>To avoid this, engineering teams try to adhere to one of Robert C. Martin’s (‘Uncle Bob’s’) many brilliant pieces of advice, ’<a href="https://www.oreilly.com/library/view/97-things-every/9780596809515/ch08.html">the boy scout rule</a>’: <em>leave the code better than you found it</em>. <a href="http://bit.ly/VSCode-marketplace-Stepsize">Here’s a free VSCode extension to make this <em>a lot easier</em> for you</a>.</p><p>Nevertheless, despite the skill and best intentions of engineers, it seems that an immutable law of software development is that technical debt accumulates until it becomes too much to bear and we have to carve out time for a big refactoring. We’ve begrudgingly accepted this as part of the software development lifecycle.</p><p>Is it simply down to a lack of discipline?I used to think so. Then I met <a href="https://twitter.com/gjvis">Gareth Visagie</a>, Chief Architect at <a href="http://snyk.io/">Snyk.io</a>, who hit me with:</p><blockquote><em>Ownership is a leading indicator of engineering health.</em></blockquote><p><em>What did he mean? And how could he make this claim?</em></p><p>There is an <a href="https://scholar.google.co.uk/scholar?hl=en&amp;as_sdt=0%2C5&amp;as_vis=1&amp;q=employee+accountability+and+ownership&amp;btnG=">enormous amount of research</a> showing that when team members own their work, are held accountable for it by managers, and take responsibility for successes and failures, all kinds of good stuff happens.</p><p>Unfortunately, it’s hard to make this work in practice. This is partly due to the fact that, arguably, <a href="https://martinfowler.com/bliki/CannotMeasureProductivity.html">engineering productivity can’t be measured</a>, and that modern engineering practices can be interpreted as favouring weak code ownership in all situations. The truth is that, until now, it’s been incredibly hard to properly measure ownership in engineering teams . . . so we didn’t even know what ‘good’ looked like.</p><p>Luckily, <a href="https://docs.microsoft.com/en-us/azure/devops/learn/devops-at-microsoft/code-ownership-software-quality">recent academic research</a> has shown that code ownership — the best proxy for the fuzzy concept that is ’ownership’ in engineering teams — can be measured from Git commit activity. And it’s a great leading indicator of your codebase’s health.</p><p>Those parts of the codebase that receive contributions from many people accumulate cruft over time, while those receiving contributions from fewer people tend to be in a better state. Don’t just take it from me — the good folk of Microsoft looked into this themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*OYzkkNpVRvq1TDnj.png" /></figure><p><em>Credit: Microsoft research</em></p><p>I can already hear some of you screaming that you don’t want just one developer being the only person allowed to touch a piece of code — there are nasty downsides to this. I hear you, and that’s not what we’re proposing.</p><p>Hear me out.</p><h3>Types of code ownership</h3><p>There are different types of code ownership, suitable for different situations.</p><h4>Collaborative ownership vs. Non-ownership</h4><p><strong><em>Colaborative ownership</em></strong><em> — [ . . . ] an ownership where code is collectively owned, but responsibilities and schedules are clear. Each team member can work across subsystems or services as needed.</em></p><p><strong><em>Non-ownership </em></strong><em>— [. . . ] a situation in which several developers make changes to the same subsystem but with minimal coordination or accountability for quality or team communication. In such systems, one might expect the quality to be low.</em></p><p><em>Source: </em><a href="https://docs.microsoft.com/en-us/azure/devops/learn/devops-at-microsoft/code-ownership-software-quality"><em>Microsoft research</em></a></p><p>We can break this down further, adding orphaned code and absolute ownership to the mix, but I don’t want to bury the lede, so here’s a graph illustrating the code ownership spectrum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_FAqHPU92FKx1_p0.png" /></figure><p><strong>Collaborative ownership</strong> should be your default for most situations and what you strive for. Note that this doesn’t mean only one engineer on your team has permission to modify the code, or that their approval is mandatory for any modification. It simply means that every engineer is absolutely clear on who they should speak to if they have any questions, and that the owner is probably the best person to review the code. In this way, they can enforce coding standards and be aware of how the code they own has been modified.</p><p>The code owner is responsible for the state of their code and managers should hold them accountable for it. This doesn’t mean that they should get bashed on the head for every bug that creeps in, but it does mean that the code owner is empowered to make decisions relating to code quality and technical debt; they will be held accountable for these decisions using additional supporting metrics such as cohesion and churn (see more in my co-founder’s article <a href="https://blog.stepsize.com/use-research-from-industry-leaders-to-measure-technical-debt/">about technical debt metrics</a>).</p><p>Non-ownership, or weak ownership, is the opposite of collaborative ownership and should be avoided in most situations. That being said — and this might be stating the obvious — it’s fine if files like package.json don’t have a clear owner. There’s no need to be overzealous.</p><p><strong>Orphaned code<br></strong>This is the nasty type of non-ownership, one of the extremes on the code ownership spectrum. It’s the one you really don’t want. Avoid it at all cost . . . unless it’s code you’ll never touch again. But that’s pretty rare.</p><p>Code is considered orphaned when the main contributor has ceased contributing to the codebase. They may have left the organisation, or moved from coding to management. Either way, you — and your codebase — are in trouble.</p><p>But there’s a solution for this too. You need to transition the orphaned code to whichever other type of ownership is most appropriate for it. To avoid having any orphaned code in your codebase, make sure that your off-boarding and handover plans include the main owner bringing the new code owners up to speed. Ease them in by automatically assigning them to review pull requests that modify the code. Failing that, you can simply assign code ownership however you see fit.</p><p>Whichever method you choose, don’t leave orphaned code loitering in your codebase. You never know what might happen when it’s left to its own devices.</p><p><strong>Absolute ownership<br></strong>This is the other extreme on the code ownership spectrum. It can be fantastic. It can also spell trouble.</p><p>Code is considered absolutely owned when the owner is the only engineer who can modify or approve modifications to it, or when the owner is essentially the only engineer who ever modified it in the past.</p><p>Small startups often see this pattern in their data. Each engineer tends to be responsible for the full history of a file and is expected to maintain this ownership. It’s not the end of the world; startups have limited resources after all, and sacrifices need to be made. But if the engineer ever got run over by a bus, this part of the codebase will be orphaned. You should have a contingency plan.</p><p>In larger engineering organisations, a low ‘bus factor’ can be a real problem, especially when it relates to critical parts of the codebase, when employee churn is high, and if the company has taken on too much technical debt. For example, if the engineer who cobbled together your whole custom payments system leaves, you’ve got a big headache if you want to modify your pricing model — or if you realise there’s a bug in the codebase, which has been undercharging your biggest customers for months. Either somebody’s going to have to try and understand the code to modify it, or you’re going to have to declare technical bankruptcy on your payments system and rewrite it (but before you do, <a href="https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/">please consider this</a>).</p><p>Don’t let it happen to you.</p><p>But there are situations where absolute ownership is acceptable and even recommended. You might want absolute ownership on those ‘if this thing fails we can pack our bags because the business won’t be able to pay our salaries or because we’re going to prison’ parts of the codebase.</p><p>In these cases, even though you want to spread knowledge of the critical code among a few engineers to maintain a healthy bus factor, you may want to consider setting up rules to prevent PR being merged without the approval of the absolute owner.</p><h3>Takeaways</h3><p>Aim for collaborative ownership for the vast majority of the files in your codebase (50%–90% code ownership for any given file), and be more disciplined to increase code ownership and reduce technical debt wherever appropriate.</p><h3>Benefits will include:</h3><p><strong>Higher coding standards, properly maintained.</strong> It’s easier to maintain high standards in a small, well-informed group. This applies not just to engineers modifying code they own, but also to reviewing their colleagues’ code when it modifies their ownership areas.</p><p><strong>Easier communication.</strong> Explicit and clear ownership means that every engineer in the team knows who’s best placed to answer their questions.</p><p><strong>More focused and impactful refactoring. </strong>When you decide to pay back some technical debt, strong code owners are best placed for the job. <a href="https://blog.stepsize.com/use-research-from-industry-leaders-to-measure-technical-debt/">Use ownership, cohesion, and code churn metric</a>s to triangulate on problem areas in your codebase. Your engineers will <a href="https://blog.stepsize.com/how-to-stop-wasting-engineering-time-on-technical-debt/">use their technical debt budget wisely</a> and they’ll never waste time paying back the wrong technical debts again.</p><p><strong>The bus factor will never get out of hand. </strong>You can use code ownership to inform knowledge-sharing in the organisation. If ownership is too high, assign other engineers to code reviews and tasks that modify the code in question. You’ll gradually improve your ownership scores, which will lead to increased code quality and less technical debt.</p><p>Like anything that’s worth doing, creating — and sticking to — an engineering culture of code ownership takes time and effort, but it’ll pay back in spades. It directly impacts virtually any engineering health KPI you can imagine. Bake it into your culture, and it’ll become a giant competitive advantage for the long-term.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe0a33819077" width="1" height="1" alt=""><hr><p><a href="https://medium.com/understanding-tech-debt/the-one-cultural-characteristic-you-need-for-a-healthy-codebase-fe0a33819077">The one cultural characteristic you need for a healthy codebase</a> was originally published in <a href="https://medium.com/understanding-tech-debt">Understanding Tech Debt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>