Skip to content

Guide

How to explain your own code and projects in an interview

Explain a project in four steps: the problem it solved, the design you chose and what you rejected, one hard part and how you handled it, and what you would change now. Prepare it from your own repository and notes, keep to one or two minutes, and be ready for the interviewer to pick any part of it.

Written by the AssistClue team. Last reviewed .

Why do interviewers ask me to walk through my own code?

Your own project is the one subject where you are the expert, so it shows how you think more clearly than a puzzle does. The interviewer is judging three things: whether the work is really yours, whether you understand the trade-offs, and whether you can explain it to someone who has not read it.

It also tests honesty. A candidate who cannot say why a function exists, or what breaks if it is removed, gives the interviewer an easy next question.

What structure works for a project walkthrough?

Use four steps in order, and keep each to a few sentences. The same structure fits a side project, a work system and a take-home exercise.

  1. The problem: who needed this, and what was painful without it?
  2. The design: how it is put together, in one picture you could draw on a whiteboard, and the main alternative you rejected.
  3. The hard part: one real difficulty, such as a bug, a scaling limit or a disagreement, and exactly what you did.
  4. The hindsight: what you would change, and what you learned.

Do not walk through files in order. The interviewer cannot hold a directory tree in their head, but they can follow a story with a beginning and a decision in the middle.

Which project should I choose?

Choose the project where you made the decisions, even if it is smaller. A large system you only touched at the edges will fall apart under follow-up questions; a small one you designed holds up.

Prefer something that touches the job description: the same language, the same kind of data, or the same kind of user. Prepare two projects, so that if the interviewer asks for a different example you are ready. When the question is phrased as "tell me about a time", the STAR guide applies.

How do I explain design decisions and trade-offs?

State the decision, the alternative you considered, and the reason you chose as you did. Reasons are the part interviewers remember: "I used a queue because the upload could take minutes and the user should not wait" is stronger than "I used a queue".

Be honest about the costs. Every design has them, and a candidate who names them sounds like someone who has run the system. "It is simple, but it does not scale past a single server, and I knew that when I chose it" is a good answer.

What if I cannot remember how a part of it works?

Say so, then reason aloud from what you do remember. "I do not remember the exact retry logic; I believe it backs off exponentially because the API rate-limited us. I would check the config." That answer is honest and still shows judgment.

The way to avoid the situation is to reread your own code before the interview. Code from a year ago reads like a stranger's. Read the entry points, the data model and the parts you were least sure of.

What if an AI tool wrote part of the code?

Say so plainly, and make sure you can explain it. Many teams use AI tools at work, and a candidate who says "the assistant drafted this; I reviewed it, changed the error handling and wrote the tests" sounds credible. A candidate who cannot explain code they claim as their own does not.

If the interview itself allows AI, the guide to AI coding interviews covers what is assessed. Whether it is allowed is a question for the recruiter, and our guide on using AI in a job interview shows how to ask.

How do I practice a project walkthrough?

Explain the project aloud to a person who does not know it, or to a recording of yourself, and time it. Then ask someone to interrupt with "why?" at random. The interruptions are where the gaps show.

In AssistClue, add your README, design notes and the files you want to discuss, then ask your own system questions. The answers come from your files, each with its source, so you can check that your memory matches the code. Practice then asks you questions drawn from the same material. On the desktop app a folder can stay on your computer, and the developers page shows the details.

A project walkthrough in four steps

A made-up candidate describes a personal project, a small tool that sends weekly expense summaries by email, to an interviewer for a backend role.

The problem
"My flatmates and I shared bills on a spreadsheet and nobody trusted the totals. I wanted a weekly email that showed who owed what, without anyone doing sums."
The design
"A small web service takes entries, stores them in Postgres, and a scheduled job builds the summary. I considered doing it all in the spreadsheet with scripts, but I wanted entries to be validated and the history to be queryable."
The hard part
"Rounding. Splitting a bill three ways left a cent over, and the totals drifted. I stored amounts as integer cents and allocated the remainder to the payer, then wrote tests for a hundred random bills."
The hindsight
"I would add a proper login. I used a shared link because it was only four of us, which is fine for that, but I would not ship it to strangers."

About 160 words, roughly a minute and a half. Each step invites a follow-up that the candidate has an answer for: why Postgres, how the remainder rule works, what the login would look like.

What to prepare from your own repository

  • The README and any design notes, rewritten if they are out of date.
  • The entry points, the data model and one tricky file, read again this week.
  • A list of the decisions you made and the alternative you rejected for each.
  • The job description, to see which of your projects is closest to the work.

What AssistClue does not do with your code

  • It does not write the walkthrough or invent decisions: it answers from the files you add and shows where.
  • It does not run or test your code, and it is not a code review.
  • It gives no live help in an interview where AI is not allowed; prepare beforehand instead.

Check your explanation against your own files

Add your README and design notes, ask your own system the hard questions, and practice the walkthrough.