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.

Ghostpilot team · · 4 min read

A dark blue card with the title "Take-home coding assignment tips" next to the Ghostpilot ghost

In short

Practise this free: a mock interview for Take-home / presentation round, scored, with a stronger answer. 3 a month, no card.

Start a mock interview

Take-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:

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

  1. Read the brief twice and list every requirement.
  2. Ask questions if anything’s unclear. Most companies welcome a short email; it’s also a signal that you clarify before building.
  3. Check the time guide and plan to fit it.
  4. Choose familiar tools. A take-home isn’t the moment to try a new framework.

Planning your time

For a typical four-hour task:

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:

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

Is the assignment reasonable?

Most take-homes are fair, but it’s worth checking before you commit a weekend:

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:

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 free

Questions

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.

Keep reading

How to pass a coding interview (a step-by-step plan)Technical and coding · 4 min read
Live coding interview tipsTechnical and coding · 4 min read
Pair programming interview tipsTechnical and coding · 4 min read
Technical interviews for non-technical rolesTechnical and coding · 4 min read