{"id":1090,"date":"2026-11-28T17:58:00","date_gmt":"2026-11-28T16:58:00","guid":{"rendered":"https:\/\/grindloop.ai\/blog\/?p=1090"},"modified":"2026-11-27T13:37:22","modified_gmt":"2026-11-27T12:37:22","slug":"unfamiliar-codebase-interview-question","status":"publish","type":"post","link":"https:\/\/grindloop.ai\/blog\/unfamiliar-codebase-interview-question\/","title":{"rendered":"Unfamiliar Codebase Interview Question When the Docs Were Out of Date"},"content":{"rendered":"<p>An unfamiliar codebase interview question asks when you had to change code you didn&#8217;t write, fast. Most candidates answer with a routine. They read the docs, traced a few flows, asked questions and shipped. Nearly every engineer does that, so the routine earns little credit. The interviewer wants to know how you built a working picture of the code. They also want to know how you checked that picture before you trusted it with a real change. The strongest answers name one belief that turned out to be wrong. Then they explain how you found the error before it reached users. They also give dates. When did you merge your first change? When did you make a call without help? A story with a caught mistake shows judgment. A story where everything went smoothly only shows that you were lucky with the docs.<\/p>\n<h2>Most candidates answer an unfamiliar codebase interview question with the same habits<\/h2>\n<p>The habits themselves are sound. In a <a href=\"https:\/\/github.blog\/developer-skills\/application-development\/how-github-engineers-learn-new-codebases\" target=\"_blank\" rel=\"noopener\">March 2025 GitHub blog post<\/a>, engineer Brittany Ellich collected how her colleagues learn new codebases. They start with small issues and pair with teammates. They read production metrics, keep written notes and draw diagrams. GitHub sells Copilot, so the post recommends it too. Apart from that, the list matches what most teams would advise.<\/p>\n<p>That is the problem in an interview. A list of good habits describes what you usually do. A behavioral question asks what you did once. The interviewer can&#8217;t score a routine, because nothing in it could have gone wrong. So build the answer around a moment where your picture of the code and the real code disagreed. A related question asks about <a href=\"https:\/\/grindloop.ai\/blog\/learn-a-new-technology-quickly-interview\/\">learning a new technology quickly<\/a>. There the unknown is a tool. Here it is code other people wrote.<\/p>\n<h2>Ravi had nine days to add a payment method to checkout code he had never opened<\/h2>\n<p>Here is the running example. Ravi is an Android engineer who moved to a new team. The team owned the checkout module of a shopping app. His first task was adding a new payment method. It had to ship in the release nine working days later.<\/p>\n<p>The module had a design doc from two years earlier. It said the server handled every retry of a charge request. The app only showed a spinner and waited. Ravi planned his change around that sentence. If the server owned retries, his new payment method needed no retry logic of its own.<\/p>\n<p>The sentence was out of date. A wrapper class in the app now retried a charge once when the request timed out. Nobody had updated the doc. A new payment method built on the doc&#8217;s version could have charged some customers twice.<\/p>\n<h2>Write down what you believe, then find the code that proves each line<\/h2>\n<p>Ravi&#8217;s first two days produced a short note, not code. He listed what he believed about the checkout flow as plain claims. &#8220;The server retries failed charges.&#8221; &#8220;The app never sends the same charge twice.&#8221; &#8220;Cart totals are recalculated on the server.&#8221; He listed nine claims in all.<\/p>\n<p>Ellich&#8217;s post explains why writing helps. &#8220;Writing things down forces me to structure my thoughts and identify gaps in my understanding,&#8221; she wrote. Ravi went one step further. Next to each claim, he wrote the file and line that confirmed it. Eight claims got a line. The claim about retries didn&#8217;t, because he found the wrapper class instead.<\/p>\n<p>Spend the most interview time on this step. It shows you treated the doc as a set of guesses to check. Amazon&#8217;s <a href=\"https:\/\/www.amazon.jobs\/content\/en\/our-workplace\/leadership-principles\" target=\"_blank\" rel=\"noopener\">Leadership Principles page<\/a> describes the same habit under Dive Deep. The page shows no date. It asks leaders to stay skeptical &#8220;when metrics and anecdote differ.&#8221; In onboarding, the doc is the anecdote. The code is the evidence.<\/p>\n<h2>Ask the engineer who wrote the code why it is that way<\/h2>\n<p>Reading tells you how the code works. It rarely tells you why. Ravi found the engineer who had added the retry, by checking who last changed the wrapper class. He asked one question. Why does the app retry charges when the doc says the server does?<\/p>\n<p>The answer took five minutes. A year earlier, a payment provider had timed out often. The team added a client retry as a quick fix. The provider later added a duplicate check. It caught most repeats but not all of them. The quick fix stayed. Ellich&#8217;s post advises asking &#8220;seemingly basic questions,&#8221; and this one saved days of guessing. It also told Ravi the retry was a known risk that nobody had scheduled a fix for.<\/p>\n<p>When to ask is its own skill. Our post on the <a href=\"https:\/\/grindloop.ai\/blog\/asking-for-help-interview-question\/\">asking for help interview question<\/a> covers it. In your answer, name the person and the question. &#8220;I asked the engineer who wrote it&#8221; shows you went to the source. &#8220;I asked around&#8221; doesn&#8217;t.<\/p>\n<h2>Ship a small change that tests your picture before the real one<\/h2>\n<p>Ravi&#8217;s first merged change came on day four. It added no feature. It added a test that sent a charge, forced a timeout and counted the requests. The test failed against the doc&#8217;s version, because the app sent two requests. Now the team had a failing test to look at, on top of Ravi&#8217;s reading of the code.<\/p>\n<p>He then raised the risk with his lead. He proposed that the new payment method send a unique request ID with each charge. The provider could then reject a second copy. His lead approved the design unchanged. He shipped on day nine. The doc got a corrected paragraph in the same pull request.<\/p>\n<p>An early small change that checks your understanding shows caution with a deadline. A first change that is the big feature shows confidence. It gives no way of knowing whether that confidence was earned.<\/p>\n<h2>Ravi&#8217;s answer, in the order it happened<\/h2>\n<p>Ravi and his checkout team are invented for this post. Keep the shape and use your own story&#8217;s facts.<\/p>\n<blockquote>\n<p>I moved to the checkout team with nine working days to add a new payment method. I had never opened that module. It had a design doc, so I started there. But I didn&#8217;t trust it yet. I listed nine things I believed about the checkout flow. Then I looked for the line of code that confirmed each one.<\/p>\n<p>Eight checked out. One didn&#8217;t. The doc put the server in charge of all retries of a charge. The code had a wrapper that retried once on a timeout. If I had built on the doc, some customers could have been charged twice.<\/p>\n<p>I found the engineer who last changed that wrapper. I wanted to know why it existed. It was a quick fix from a year earlier, for a provider that timed out often. Nobody had updated the doc.<\/p>\n<p>On day four, I merged a test that forced a timeout and counted the charge requests. It showed two requests. I took that to my lead with a fix. The new method would send a unique request ID, so the provider could reject a duplicate. My lead approved it. I shipped on day nine. I also fixed the doc in the same pull request.<\/p>\n<p>What I do now is the same in any new codebase. I write my assumptions down and find proof for each one. My first change tests the riskiest one.<\/p>\n<\/blockquote>\n<p>Each paragraph answers a question the interviewer would otherwise ask. The first sets the deadline, so the speed means something. The second names the wrong belief. That belief is the evidence of judgment. The third shows how Ravi learned why, from a person. The fourth gives dates and a test, so &#8220;I verified it&#8221; has proof behind it. The last turns one story into a habit the next team would get.<\/p>\n<h2>&#8220;How long until you were productive?&#8221; needs two dates<\/h2>\n<p>This follow-up comes after most onboarding stories. &#8220;Pretty quickly&#8221; or &#8220;a couple of weeks&#8221; is the weak answer. It gives the interviewer nothing to compare against the level they&#8217;re hiring for. Answer with two dates. The first is your first merged change. The second is the first design call you made yourself that a reviewer accepted unchanged. For Ravi, those were day four and day five. On day five, he proposed the request ID design and his lead approved it as written.<\/p>\n<p>Then say what you still didn&#8217;t know when you shipped on day nine. Ravi hadn&#8217;t touched the refund flow. It used the same wrapper. He said so in the pull request. Then he picked up the refund fix in his next sprint. Naming the gap shows that your picture of the code had edges. It also shows you knew where they were.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfamiliar codebase interview question? Name the doc claim you proved wrong, the test that caught it and the day you shipped. Full sample answer.<\/p>\n","protected":false},"author":4,"featured_media":1091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Unfamiliar Codebase Interview Question When the Docs Were Out of Date","rank_math_description":"Unfamiliar codebase interview question? Name the doc claim you proved wrong, the test that caught it and the day you shipped. Full sample answer.","rank_math_focus_keyword":"unfamiliar codebase interview question","footnotes":""},"categories":[10],"tags":[35,16,19],"class_list":["post-1090","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-behavioral","tag-behavioral-interview","tag-interview-prep","tag-soft-skills"],"_links":{"self":[{"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts\/1090","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=1090"}],"version-history":[{"count":1,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts\/1090\/revisions"}],"predecessor-version":[{"id":1092,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/posts\/1090\/revisions\/1092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/media\/1091"}],"wp:attachment":[{"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/media?parent=1090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/categories?post=1090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grindloop.ai\/blog\/wp-json\/wp\/v2\/tags?post=1090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}