What a Take-Home Assignment Is Really Testing
A take-home coding assignment is a task you complete on your own time, usually over a few days, and send back for review. Companies use it because it shows how you work without the pressure of a live interview. But reviewers are rarely checking only whether the code runs. They are looking at how you understand a problem, how you make decisions, how you organise code, whether you test it, and how clearly you communicate. A solution that works but is hard to run, hard to read or missing any explanation can lose to a simpler one that is clean and well explained.
For test and quality roles, see the QA automation and SDET resume guide.
No guide can promise an offer, and every company grades differently. But most reviewers share some preferences, and you can plan for them. This guide covers how to read the brief, plan your time, structure the project, write and test the code, document your decisions, handle the "extra credit" trap, and submit professionally. It also covers what to do when the instructions are unclear and when the assignment is too long. You can summarise your finished work on one page with the project one-pager tool.
Step One: Read the Brief Twice
Many failures come from a missed instruction. Before writing code:
- Read the whole brief and underline each requirement, constraint and deliverable.
- Note the stated time expectation, such as "about three hours". Respect it. Do not spend a week on a task meant to take an evening.
- Note the language, framework and tools you must or must not use.
- Identify what is required and what is optional.
- List what the reviewer will do with your work: run it, read it, discuss it in a follow-up interview.
- Check the deadline and the submission method.
If something is ambiguous, ask a short, specific question by email. Asking is usually seen as a positive sign, as long as the questions are thoughtful and not about things the brief already answers. If you cannot get an answer, state your assumption in the README and move on.
Step Two: Plan Your Time
Take-home tasks tend to expand to fill the time you give them. A short plan keeps you in control.
- Spend the first part on understanding and design. Write down the main entities, the main flows and the order you will build in.
- Build the smallest working version first. Get the core requirement running end to end before polishing.
- Add tests as you go, not at the end.
- Reserve time for the README and cleanup. These matter more than most people expect.
- Stop on time. A finished, clean, smaller solution beats an unfinished, ambitious one.
Step Three: Make It Easy to Run
The first thing a reviewer does is try to run your project. If it does not start, a good solution can be judged harshly. Make setup simple:
- Provide exact instructions. List the versions of the language and tools you used, then the commands to install, run and test.
- Use a standard project layout and package manager for the language.
- Pin or lock dependencies, so the reviewer gets the same versions you tested with.
- Avoid hidden manual steps. If a database or seed data is needed, provide a script or a container configuration if appropriate.
- Do not commit secrets or machine-specific paths. Use example environment files.
- Test from a clean copy. Clone your repository into a new folder and follow your own README. Fix anything that fails.
A container setup can help if the brief allows it, but do not add complexity the task did not ask for. If a plain command is enough, keep it plain.
Step Four: Structure the Code Clearly
Reviewers read many submissions, so structure that is easy to follow is a real advantage.
- Separate concerns. Keep input handling, business logic and data access in different modules, in proportion to the size of the task. Do not over-engineer a small problem with many layers.
- Use clear names. Names should explain purpose without comments.
- Keep functions small and focused.
- Handle errors deliberately. Validate inputs and return clear errors rather than letting the program crash or silently fail.
- Be consistent. Follow the conventions of the language and use a formatter or linter.
- Remove dead code, commented-out blocks and debugging leftovers.
Match the size of the solution to the size of the task. A common trap is to build a large framework for a problem that needs a few well-written functions.
Step Five: Test What Matters
Tests show that you care about correctness and that you think about edge cases.
- Write tests for the core logic and the most important behaviours.
- Cover edge cases: empty input, invalid input, duplicates, large values, boundary conditions.
- Make tests easy to run with one command.
- Keep tests readable, with clear names that describe the behaviour.
- Do not chase a high coverage number for its own sake. A few meaningful tests are better than many trivial ones.
If you did not have time to test something, say so in the README rather than hiding it.
Step Six: Write a Strong README
The README is where you speak to the reviewer directly, and it is often what distinguishes a good submission from a great one. Include:
- Overview. What the project does, in a few sentences.
- How to run and test it. Exact commands.
- Design decisions. The main choices and why you made them, including trade-offs.
- Assumptions. Anything you assumed because the brief was unclear.
- Limitations and known issues. Be honest about what is missing.
- What you would do next with more time, such as performance improvements, extra features, monitoring or security hardening.
This section shows judgment. It is fine to say, "I chose a simple in-memory approach because the task is small; with real traffic I would use a database and add pagination." That tells the reviewer that you understand the next step without forcing you to build it.
The Extra-Credit Trap
Many candidates add features that were not requested, hoping to impress. This can backfire. Extra features add code to review and more places for bugs, and they can take time from the required work. A better approach:
- Complete every required item first and make it solid.
- Add optional features only if the brief invites them and you have time left.
- Put other ideas in the README under "next steps" rather than building them.
Doing the requested work very well is almost always better than doing more work less well.
Use Version Control Sensibly
If you submit a repository, the history can say something about how you work.
- Make small, meaningful commits with clear messages.
- Do not include large generated files or dependencies in the repository. Use an ignore file.
- Do not leave secrets or personal data in the history.
- Follow the submission instructions exactly. If asked for a zip file, do not send a link instead.
Also check whether the company wants the repository to be private. Publishing an employer's assignment publicly may be against their rules, and it also lets future candidates copy it. Unless the company says otherwise, keep it private and share access only with the people they name.
Being Honest About Help and AI Tools
Companies differ on whether you may use AI assistants, libraries, search or other help. Read the brief for any rule, and if there is none, consider asking. If you use help, be ready to explain every line of your code in the follow-up interview, because that is often part of the process. Submitting code you do not understand is risky, and presenting someone else's work as your own can end your application. Never hire another person to do the assignment.
Prepare for the Follow-Up Conversation
Many companies discuss the assignment in a later interview. Be ready to:
- Walk through your design and the reasons for your choices.
- Explain the trade-offs you made and what you would change.
- Discuss how the solution would scale or how you would deploy and monitor it.
- Add a small feature or fix a bug live, if asked.
- Say plainly what you do not know or did not finish.
The STAR method guide helps you structure your explanations, and a short project one-pager is a good memory aid. After the interview, send a brief thank-you. See post-interview follow-up etiquette.
When the Assignment Is Too Long or Unpaid Work
Some assignments are unreasonable: very long, close to real production work for the company or without any feedback. You may decline or negotiate, and it is acceptable to do so politely. Questions to consider:
- Is the stated time realistic for the scope?
- Is it similar to the company's actual product, and could they use your work?
- Will you get feedback or a next step?
- Are you being asked to do this before any conversation with the team?
You can reply, for example: "I would like to complete this, but the scope looks larger than the three hours mentioned. Could we agree on a smaller version, or discuss a live exercise instead?" Also stay alert to scams that use fake assignments to collect free work or personal data. The free job scam detector and the guide on spotting fake job offers can help.
A Submission Checklist
- Does the solution meet every required item in the brief?
- Does it run from a clean copy using only your README?
- Are there meaningful tests, and do they pass?
- Is the code formatted, consistent and free of dead code?
- Are secrets, personal data and large generated files excluded?
- Does the README explain decisions, assumptions and limitations?
- Did you follow the submission format and deadline?
- Can you explain every part of it?
Common Mistakes
- Not reading the brief closely.
- A project that does not run on another machine.
- No tests or only trivial ones.
- Over-engineering a small task.
- No README, or one that only says "run the code".
- Hiding limitations instead of stating them.
- Ignoring the time guidance and burning out.
- Submitting code you cannot explain.
- Publishing the assignment publicly against the company's wishes.
Choosing What to Show in a Small Project
When the scope is small, every visible choice carries weight. Reviewers often skim the repository structure, open the main file, read the README and run the tests, in that order. Make sure each of those steps leaves a good impression. The folder names should be self-explanatory, the main entry point should be easy to find, and the README should be accurate down to the last command. If a reviewer hits one broken step, they may stop there.
It also helps to leave a short "review guide" at the top of the README: where to start reading, which file contains the main logic and which tests demonstrate the key behaviour. This respects the reviewer's time and directs their attention to your best work. If a particular design decision was difficult, name the file where it lives and explain it in two sentences. You are not only submitting code but guiding a conversation that will continue in the next interview.
Frequently Asked Questions
How much time should I spend on a take-home?
Stay close to the time the company suggests. If the task seems to need much more, say so politely and ask about scope.
Should I add features that were not requested?
Usually no. Do the required work well, and list extra ideas in the README as next steps.
Do I need Docker or a complicated setup?
Only if it helps and fits the brief. Simple, reliable instructions matter most.
How many tests should I write?
Enough to cover the core logic and key edge cases. Quality matters more than the number.
Can I use libraries?
Usually yes, unless the brief says otherwise. Choose well-known libraries and explain non-obvious choices.
Is it okay to use AI tools?
Follow the company's rules. If allowed, review and understand everything you submit, because you may need to explain it.
Should I put the assignment on my public GitHub?
Not unless the company allows it. It is better to keep it private and respect their materials.
Key Takeaways
- Reviewers look at your decisions, organisation, testing and communication, not only whether it works.
- Read the brief carefully, plan your time and stay near the suggested effort.
- Make the project easy to run, and test it from a clean copy.
- Write a README that explains design choices, assumptions and limitations.
- Do the requested work well, be honest about gaps and prepare to explain every line.
Summarise your work with the project one-pager tool, and add the result to your resume with the CV builder.