Home · Blog · Technical and coding
Take-home coding assignment tips
A take-home assignment is the closest an interview gets to real work: you build something on your own time, and someone reviews it like a pull request. That changes what matters. Here's how to plan it, what reviewers look for and how to present it afterwards.

In short
- Reviewers check that it works, that it’s readable and tested, and that your decisions are explained.
- Respect the suggested time; a focused solution with a clear README beats a sprawling one.
- Write down assumptions and trade-offs - they’re often what the follow-up interview is about.
- Prepare to walk through your code and to extend it live.
Practise this free: a mock interview for Take-home / presentation round, scored, with a stronger answer. 3 a month, no card.
Start a mock interviewTake-home assignments remove the hardest part of live coding: someone watching you. They add a different challenge. With no time pressure in the moment, reviewers expect work that looks like what you’d ship at your job, and they read it closely.
What reviewers check
Most companies review take-homes with a checklist. It usually covers:
- It works. It runs from the instructions, with no extra setup.
- It meets the requirements. All of them, or clearly explained gaps.
- Readable code. Clear names, sensible structure, no dead code.
- Tests for the main logic and important edge cases.
- Decisions explained. Why this structure, this library, this trade-off.
- Scope judgement. Did you build what was asked, without gold-plating?
The last two are where good candidates stand out. Anyone can write working code with enough time; explaining choices shows how you’ll work in a team.
Before you start
- Read the brief twice and list every requirement.
- Ask questions if anything’s unclear. Most companies welcome a short email; it’s also a signal that you clarify before building.
- Check the time guide and plan to fit it.
- Choose familiar tools. A take-home isn’t the moment to try a new framework.
Planning your time
For a typical four-hour task:
- 30 minutes: set up the project, read the brief, write a plan.
- 2 hours: build the core features, simplest working version first.
- 45 minutes: tests and edge cases, error handling.
- 30 minutes: clean up, then write the README.
- 15 minutes: run it from scratch, following your own instructions.
Commit as you go with clear messages. Many reviewers read the history.
The README that wins
The README is often read first, and sometimes it’s the only thing a busy reviewer reads closely. Include:
How to run: one or two commands, plus the versions you used.
What it does: the requirements you met, in a short list.
Decisions: “I stored the data in memory because the brief said a single user and no persistence; with more users I’d use PostgreSQL. I validated input at the API boundary so the core logic stays simple.”
Assumptions: “I assumed prices are in euros and never negative.”
With more time: “Pagination for the list endpoint, more tests for concurrent updates, and a Dockerfile.”
Time spent: “About four hours.”
Tests
You don’t need full coverage. Aim for:
- the main happy path
- two or three important edge cases (empty input, invalid data, boundaries)
- one test for the trickiest part of your logic
If you use test-driven development at work, the take-home is a good place to show it in the commit history.
Code style that reads well
Reviewers read your code the way they’d read a colleague’s pull request. Follow the language’s usual style and formatter, keep functions short, and name things after what they mean in the task (“overdue_invoices”, not “list2”). Add a comment only where the reason for a choice isn’t obvious from the code. Consistency matters more than any particular convention.
Common mistakes
- Over-engineering. Microservices for a to-do list suggest poor judgement about scope.
- No instructions. If the reviewer can’t run it in five minutes, they may stop.
- Leftover noise. Commented-out code, debug prints, TODOs without explanation.
- Ignoring part of the brief without saying why.
- Submitting late without a word. If something comes up, tell them early.
Is the assignment reasonable?
Most take-homes are fair, but it’s worth checking before you commit a weekend:
- The time. A few hours is common. If a task clearly needs several days, it’s reasonable to ask whether a smaller scope is acceptable.
- The stage. Take-homes usually come after a first conversation. Being asked for a large project before anyone has spoken to you is a warning sign.
- The content. Practice tasks are normal; a task that looks like real production work for the company, unpaid, is not.
- The rules. Check what’s allowed: libraries, frameworks, and whether AI tools may be used. Rules differ between companies, so follow what the brief says and mention in the README anything you used.
If something seems off, ask politely. How a company answers tells you something about how it treats people.
Before you submit
Run through a short checklist: clone your repository into a new folder, follow the README exactly, run the tests, and read your own diff from top to bottom as if you were the reviewer. Remove secrets, local paths and anything you wouldn’t want a stranger to read.
The follow-up interview
Many companies follow a take-home with a call where you walk through your code. Prepare for:
- A tour: explain the structure in two minutes, then the most interesting part.
- “Why did you…” questions about your decisions. Your README answers should be your starting point.
- An extension: adding a feature live, usually pair-programming style. Our pair programming interview tips and live coding interview tips cover how to handle it.
- Criticism. If they point out a weakness, agree where it’s fair and explain how you’d fix it.
Take-homes are common for roles where reviewers care how you build, such as backend and full-stack developer roles. For the rest of the process, see how to pass a coding interview.
Rehearse the walkthrough, free. Ghostpilot’s mock interviews ask the technical questions for your role and score how clearly you explain your decisions.
3 mock interviews a month are free, with no card needed.
Start freeQuestions
How long should I spend on a take-home assignment?
Close to the time suggested. If it says three to four hours, aim for that and mention in the README what you'd do with more time. Much longer can look like you misjudged the scope.
Should I write tests for a take-home assignment?
Yes. A few focused tests for the main logic and edge cases show how you work. You don't need full coverage, but no tests at all is a common reason for rejection.
Can I use libraries in a take-home assignment?
Usually, unless the instructions say otherwise. Use well-known libraries for things that aren't the point of the task, and write the core logic yourself. Explain your choices in the README.
What if I can't finish the take-home assignment?
Submit what works, with a README that explains what's done, what isn't and how you'd finish it. A clear, honest partial solution is better than a rushed complete one.
Get live help in your next interview
Ghostpilot hears each question and shows an answer from your CV, in a small window above your call. Free to start: 2 live interviews and 3 mock interviews a month, no card needed.



