Lesson 7 of 32Technical rounds
Take-Home Assignments
Scope, build and present a take-home the way reviewers grade it: README, tests, commits, trade-offs, AI policy, and the review call that follows.
A take-home is the closest an interview gets to real work. You get a small brief, a time limit, and your own machine. Then a reviewer, often an engineer on the team you would join, opens your repo with a rubric beside them. Most take-homes are not failed on whether the code works. They fail because the reviewer could not run it, could not tell what was cut on purpose and what was forgotten, or found a polished architecture wrapped around untested logic. This lesson shows what that reviewer looks for and how to spend a fixed budget of hours on the things that score.
What the reviewer actually does
Picture the other side. A busy engineer has 30 to 45 minutes for your submission, between their own tickets. They tend to go through it in the same order every time, and each step can end the review early.
The README is read first and sets expectations. A clear 'Trade-offs' section turns a missing feature into a decision.
Typical rubric rows look like this: correctness (does it meet the brief), code quality (readable, well-named, sensibly split), testing (meaningful tests that pass), communication (README and commit messages), and judgment (scope, trade-offs, not over-building). Notice that judgment is its own row. A 500-line abstraction layer for a 50-line problem is a mark against you, not a bonus.
Before you write any code
Read the brief twice and list the requirements. Split them into must-haves, nice-to-haves and things that are ambiguous. The ambiguous ones are where you ask.
Ask clarifying questions by email. It is normal, and it is the same skill you use in a live round. Keep it short and propose a default so you are never blocked waiting for a reply:
Two quick questions on the inventory API brief. 1) Should stock be allowed to go negative on concurrent orders, or rejected? I'll reject for now. 2) Is an in-memory store fine, or do you want a real database? I'll use SQLite unless you'd prefer otherwise. I'll note both assumptions in the README.
Respect the time cap. If the brief says 3 to 4 hours, the reviewer calibrates against that. Spending 20 hours does not usually help, because reviewers are often told to grade against the stated time, and an overbuilt submission can read as poor scoping. If you go over, say so honestly in the README.
Find out how it will be judged. Ask the recruiter what the next step is. If a review call follows, your code will be read aloud and extended, which changes what you should optimize for: code you can explain and change easily.
Spending a four-hour budget
Plan the hours before you start, and build in vertical slices: get one thin path working end to end, then widen it. That way you always have something that runs if time runs out.
0:00-0:20
Brief and plan
List requirements, send questions, choose the stack, write a README skeleton with the headings filled in later.
0:20-0:45
Skeleton that runs
Project setup, lockfile, one endpoint or command that does the simplest thing, one passing test. Commit.
0:45-2:30
Core logic with tests
Implement the must-haves one at a time. Write tests for the logic as you go, not at the end. Commit after each piece works.
2:30-3:15
Edge cases and errors
Bad input, empty data, missing records, clear error messages. Add a test for each one you handle.
3:15-4:00
README and cleanup
Fill in setup, decisions, trade-offs and what you'd do next. Remove debug prints. Clone into a fresh folder and run it from scratch.
That last step catches more broken submissions than anything else. Your machine has global packages, environment variables and cached files that the reviewer's machine does not. Cloning into an empty folder and following your own README word for word is the only real test.
Stack and reproducibility
Use the stack the company uses if you are comfortable in it, since the reviewer will read it fastest. Otherwise use the one you are fastest and cleanest in, and say why in the README. A take-home is a bad place to learn a new framework.
Whatever you choose, make it run identically on someone else's machine:
- Pin dependencies and commit the lockfile:
package-lock.json,pnpm-lock.yaml,uv.lockorpoetry.lock. Without it, the reviewer may install newer versions than you tested. - State the runtime version (Node 22, Python 3.12) in the README, and in a
.nvmrc,.python-versionorenginesfield if your tooling reads one. - Never commit secrets. Ship a
.env.examplewith every variable named and a safe placeholder, and keep.envin.gitignore. - One command to start, one to test. A
Makefile, npm scripts, or adocker compose upif the brief needs a database. Docker is a convenience, not a requirement. If you use it, also say how to run without it.
- inventory-api/
- README.mdsetup, decisions, trade-offs, next steps
- .env.exampleevery variable, safe placeholders
- .gitignoreincludes .env
- .python-version3.12
- pyproject.toml
- uv.lockpinned dependencies, committed
- Makefilemake run, make test
- src/
- inventory/
- api.pythin HTTP layer
- service.pythe business rules live here
- store.pySQLite access
- tests/
- test_service.pycore rules and edge cases
- test_api.pyone or two end-to-end checks
The split between api.py and service.py is the structural point reviewers look for. When the rules live in plain functions apart from the web framework, they are easy to test and easy to extend in the review call.
The README carries your judgment
The README is where your decisions become visible. READMEs and Docs People Use covers READMEs for a team; a take-home README is shorter and aimed at one reviewer. Keep it short and scannable. These headings cover what reviewers want:
# Inventory API
## Run it
uv sync
make run # http://localhost:8000
make test
## What's done
- Create products, adjust stock, place orders that reserve stock
- Orders that would take stock below zero are rejected with 409
## Decisions and trade-offs
- SQLite instead of Postgres: zero setup for you; the store module is the only
file that would change.
- Stock is checked and decremented in one transaction to avoid overselling.
- No auth: out of scope per the brief. Would add API keys first.
## What I'd do next
- Pagination on GET /products (currently returns all rows)
- Idempotency keys on POST /orders so client retries are safe
## Time spent
About 4 hours, plus 20 minutes on this README.
## AI use
Used an assistant for test boilerplate and to check one SQL query, as the brief
allows. All design decisions and business logic are mine."What I'd do next" is the most valuable section. It shows you know where the weaknesses are, and it turns every missing feature from "forgot" into "chose". It also hands the reviewer ready-made questions for the review call, which you have already thought about.
Tests that earn credit
You do not need full coverage. You need tests that show you know what matters in this problem: the core rules, the edge cases the brief hints at, and how bad input fails. Test the logic directly, not through the web layer, so tests are fast and readable. The Testing Strategy lesson in the Design & Architecture course covers the wider picture. Here is the scale that fits a take-home.
Press Run (⌘ Enter) to see what happens.Each test name says what behavior it protects, so a reviewer reading only the names learns the rules of your solution. The money test is the kind of detail that stands out: using Decimal instead of floats for currency, with a test proving why. Error messages that name the line show you thought about the person who will debug a bad file.
What does this print?
print(0.10 + 0.20 == 0.30)
from decimal import Decimal
print(Decimal("0.10") + Decimal("0.20") == Decimal("0.30"))Git history and the small things
Commit as you go, with messages that say what changed and why (Commits Your Teammates Thank You For has the full habit): Reject orders that would oversell stock, Add pagination plan to README. Reviewers do look at history. A sequence of small commits shows how you break down work. A single commit containing everything hides it, and a history full of wip and fix says little. Do not rewrite history to fake a process you did not follow.
Before you submit, scan for the details that cost points: debug prints, commented-out code, unused files from a template, a TODO without context, inconsistent formatting. Run the formatter and linter your stack uses. These take ten minutes to fix and are noticed immediately.
Match each thing a reviewer notices to what it tells them.
Right-sized design
"Don't over-engineer" is easy to say and hard to apply, so here is a concrete test. For every layer, interface or pattern you add, ask: does the brief, or a likely next step in my README, need this? If yes, keep it and mention it. If no, cut it.
What usually earns its place: a separation between the HTTP layer and the business rules, input validation at the edge, consistent error responses, and a single module that owns data access. What usually does not: a generic repository base class with one implementation, dependency-injection containers, event buses, microservices, or a frontend nobody asked for. Each of those adds code the reviewer has to read and you have to defend, and none of them adds a rubric point.
Error handling follows the same rule. Handle the failures the brief makes likely (bad input, missing records, conflicts such as overselling) with clear messages and the right status codes. Do not wrap every line in try/except. A reviewer reads a catch-all handler that hides the real error as a bug, not as care.
AI tools: read the policy
Companies now state an AI policy for take-homes, and it varies: some forbid assistants, some allow them with disclosure, some expect them. Read it and follow it exactly. If AI use is allowed, disclose it briefly in the README, as in the example above.
Whatever the policy, the rule that matters is this: you must be able to explain and change every line. The review call exists partly to check that. If an assistant wrote a clever function you cannot explain, rewrite it in a way you can. A reviewer who asks "why this approach?" and hears "the AI suggested it" will mark ownership and depth down.
The review call
Most take-homes lead to a 45 to 60 minute call with one or two engineers. It usually has three parts.
Share your screen. Spend 5 minutes: the structure, where the core logic is, one decision you are proud of, one trade-off.
Prepare for it like an exam on your own code. Reread the repo the day before, because a week later you will have forgotten details. List three questions you expect and rehearse answers: the biggest trade-off, what breaks at 100 times the load, and what you would change with another day.
When to push back
A fair take-home has a stated time cap of a few hours, a brief that is clearly an exercise, and a review step. Be cautious about briefs that look like unpaid work: multi-day projects with no cap, building a feature that matches the company's real product backlog, or requests to deploy something to their infrastructure. It is reasonable to ask "How long do candidates usually spend on this?" or "Is there an alternative, such as a live round?" If you have several offers in progress, it is also fine to decline politely. Some companies pay for longer take-homes; that is a good sign, not a strange request.
Put the take-home steps in a sensible order.
- Tap the steps below in the right order.
- take-home assignment
- A small project built on your own time, usually capped at a few hours, then reviewed and often discussed live.
- vertical slice
- A thin piece of functionality that works end to end, built before widening the solution.
- lockfile
- A committed file that pins exact dependency versions so the project installs the same everywhere.
- .env.example
- A committed template listing every environment variable with safe placeholders, while the real .env stays out of git.
- trade-off section
- The README part that explains what you chose, what it costs, and what you left out on purpose.
- review call
- A follow-up meeting where you walk through your submission, defend decisions and extend the code live.