{"id":1080,"date":"2026-11-27T18:04:00","date_gmt":"2026-11-27T17:04:00","guid":{"rendered":"https:\/\/grindloop.ai\/blog\/?p=1080"},"modified":"2026-11-26T12:18:34","modified_gmt":"2026-11-26T11:18:34","slug":"paid-down-technical-debt-interview","status":"publish","type":"post","link":"https:\/\/grindloop.ai\/blog\/paid-down-technical-debt-interview\/","title":{"rendered":"Tell Me About a Time You Paid Down Technical Debt While Features Kept Shipping"},"content":{"rendered":"<p>An interviewer who asks when you paid down technical debt wants to know one thing. Why did the business agree to it then? A story about messy code you finally cleaned up doesn&#8217;t answer that. Every team has messy code. Most of it never gets fixed. The answer that scores shows three things. The debt was slowing work already on the roadmap. You paid it down inside a feature that needed the change. And you counted the cost before and after, in a unit your product manager already tracked. Days per feature works. So do regressions per release. Then the timing needs no extra defense. The cleanup paid for itself on work the team was doing anyway. This post follows Kofi, a made-up Android engineer, through one quarter of notification work. It ends with the case where the right call was to leave the debt alone.<\/p>\n<h2>Interviewers who ask when you paid down technical debt want the timing<\/h2>\n<p>The question usually arrives with a second half. One common version asks how you picked the moment and how you measured the impact. Most candidates answer the first half only. They describe the mess, the pitch and the cleanup. Then the interviewer asks &#8220;why then?&#8221; and the story has no answer.<\/p>\n<p>Martin Fowler gives the reasoning behind that follow-up. His <a href=\"https:\/\/martinfowler.com\/bliki\/TechnicalDebt.html\" target=\"_blank\" rel=\"noopener\">technical debt page<\/a> was last rewritten in 2019. Messy code makes every new feature take longer. Fowler calls that extra effort &#8220;the interest paid on the debt.&#8221; In his worked example, cleanup only pays off if more similar features follow. For a single feature, cleaning up costs more than it saves. He also says to focus on code that changes often. Messy code that nobody touches can stay messy.<\/p>\n<p>So &#8220;why then?&#8221; has a clean answer. The roadmap was about to send several features through that code. Lou Franco makes a similar point in <a href=\"https:\/\/newsletter.pragmaticengineer.com\/p\/paying-down-tech-debt\" target=\"_blank\" rel=\"noopener\">a September 2024 guest post<\/a> in The Pragmatic Engineer. He advises paying down debt when it helps developers and delivers business value now. Franco was selling a book on tech debt at the time. His advice is still a fair test for your story. Did the payment buy something the team needed that quarter?<\/p>\n<h2>Kofi&#8217;s notification router cost six days per new type<\/h2>\n<p>Kofi is a mid-level Android engineer on a travel booking app. We invented him, his team and every number below. All push notifications went through one class, a router of about 1,600 lines. Each notification type was another branch in one long conditional. Adding a type meant touching shared parsing, shared display code and shared tests.<\/p>\n<p>Kofi pulled the last three notification tickets from the team&#8217;s tracker. Each took about six working days from start to merge. Two of them had caused a regression in an older notification type. One shipped a check-in reminder with the wrong flight time.<\/p>\n<p>Then Hana, the product manager, shared next quarter&#8217;s plan. It had four new notification types. They were gate changes, flight delays, check-in opening and seat upgrades. At six days each, that was about a month of one engineer&#8217;s time. All four would run through the router, so the cost was about to repeat.<\/p>\n<h2>Put the cleanup inside the feature that needed it<\/h2>\n<p>Kofi asked for more time on the first feature, gate changes. A refactoring sprint with no feature in it is easy to postpone.<\/p>\n<p>Fowler calls this preparatory refactoring. His <a href=\"https:\/\/martinfowler.com\/articles\/preparatory-refactoring-example.html\" target=\"_blank\" rel=\"noopener\">January 2015 example<\/a> restructures code first, so the new feature becomes easy to add. He credits the idea to Kent Beck. Beck&#8217;s version is &#8220;make the change easy, then make the easy change.&#8221;<\/p>\n<p>Kofi&#8217;s estimate for gate changes had two lines. The first was six days for the feature as things stood. The second was three more days to split the router into one small handler per type. He showed Hana the six-day history and the two regressions. He also showed the arithmetic. Suppose each later type dropped to about three days. Then the extra three days came back on the second feature.<\/p>\n<p>In your answer, say how you made the ask. Name what you showed and who decided. The interviewer is checking whether you can win time from a product owner without going around them. Maybe your story is a shortcut you took and paid back later. Then see <a href=\"https:\/\/grindloop.ai\/blog\/speed-vs-quality-interview-question\/\">the speed vs quality interview question<\/a>.<\/p>\n<h2>Count the interest again after the next features ship<\/h2>\n<p>Gate changes took nine days, as estimated. The next three types took two, three and two days. The four types together took sixteen days. At the old rate they would have taken about twenty-four. No older notification type broke that quarter.<\/p>\n<p>Use the same unit before and after. Kofi measured days from start to merge, because the tracker already held that number for past tickets. A new measure introduced after the work invites the question of whether you picked it to look good.<\/p>\n<p>Say how rough the number is. Fowler notes that productivity can&#8217;t be measured objectively. So the day counts are estimates. The interviewer knows that. Name what else changed, too. If a senior engineer joined that quarter, say so. Franco suggests counting nearby gains as well. Faster reviews and fewer bugs found in testing both count. For Kofi, that was the regression count. It went from two in three tickets to zero in four.<\/p>\n<p>Franco also writes, &#8220;Size tech debt payment to be proportional to value.&#8221; Kofi&#8217;s three extra days were small next to a month of notification work. If your cleanup took longer than the features it sped up, say how you justified that size. If it simply ran long, say what you would cut.<\/p>\n<h2>Kofi tells it in under two minutes<\/h2>\n<p>Kofi, Hana and the travel app are made up for this article, down to the day counts. Keep the order. Bring your own code, your own product manager and your own numbers.<\/p>\n<blockquote>\n<p>On our travel app, every push notification ran through one router class of about 1,600 lines. I pulled our last three notification tickets. Each took about six days. Two had broken an older notification on the way.<\/p>\n<p>Then our product manager planned four new notification types for the next quarter. That was the moment, because all four would go through that router. I asked for three extra days on the first type, gate changes. I&#8217;d use them to split the router into one handler per type. I showed her the six-day history and the two regressions. If later types dropped to three days, the time would come back on the second feature. She agreed.<\/p>\n<p>Gate changes took nine days. The next three took two, three and two. So four types took sixteen days instead of about twenty-four. Nothing older broke that quarter. The day counts are rough. I measured start to merge, the same way as the old tickets.<\/p>\n<\/blockquote>\n<h2>When the messy code is off the roadmap, the strong story is that you left it<\/h2>\n<p>Some interviewers flip the question. They ask about debt you decided not to pay. Fowler&#8217;s page supports that decision too. Code that rarely changes charges little interest, however messy it looks.<\/p>\n<p>Kofi&#8217;s app had one such class. It formatted prices in about 40 currencies, with special cases going back years. A new engineer proposed a rewrite in their first month. Kofi checked the history. Nobody had changed the class in eighteen months. Nothing on the roadmap needed it either. He argued against the rewrite in the planning meeting. Instead he added a short comment block listing the three currencies with rounding quirks. He also wrote a test for each one.<\/p>\n<p>That story answers the timing question from the other side. You can say the same thing in one line of the interview. &#8220;I&#8217;d pay it down when a feature needs that code. The tests I wrote will flag the risky cases.&#8221; When the question is about debt left alone, describe the trigger you set for coming back to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Asked when you paid down technical debt? Explain why then. The roadmap was about to hit that code, so you paid it inside a feature. Full sample answer.<\/p>\n","protected":false},"author":4,"featured_media":1081,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Tell Me About a Time You Paid Down Technical Debt While Features Kept Shipping","rank_math_description":"Asked when you paid down technical debt? Explain why then. The roadmap was about to hit that code, so you paid it inside a feature. Full sample answer.","rank_math_focus_keyword":"paid down technical debt","footnotes":""},"categories":[10],"tags":[35,16,19,122],"class_list":["post-1080","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-behavioral","tag-behavioral-interview","tag-interview-prep","tag-soft-skills","tag-technical-debt"],"_links":{"self":[{"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts\/1080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/comments?post=1080"}],"version-history":[{"count":1,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts\/1080\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts\/1080\/revisions\/1082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/media\/1081"}],"wp:attachment":[{"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/media?parent=1080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/categories?post=1080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/tags?post=1080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}