Ask HN: What are some of the best take-home coding tasks you've gotten?

9 points by n2d4 2 days ago

As an applicant, I've personally had a mixed experience with take-homes. We're designing the technical interviews right now, and I thought I'd ask for some stories on exciting take-home tasks. We're looking for something that resembles the actual job, so we'll allow any tool (including AI and debuggers).

Also curious to hear about any bad ones you've done.

JohnFen 2 days ago

I never had a good one, although that's probably because I started refusing to do them years ago.

The worst one was about 15 years ago. The task was to design and implement an ML system to solve a complex network optimization problem. It was so complex that I was given three months to do it. My estimation was that I could do it in three months if I worked on it full time, which was clearly a ridiculous ask.

  • solardev 2 days ago

    > The task was to design and implement an ML system to solve a complex network optimization problem. It was so complex that I was given three months to do it.

    Lol! That's quite ridiculous.

    • hehehheh a day ago

      Sounds like spec work

      • JohnFen 18 hours ago

        That's what I thought. I refused to do it and dropped out of the application process because it really sounded like they were trying to get free labor.

aprdm 2 days ago

I had one that I enjoyed many years ago, to write a service that calculated the Nth digit of Pi.

It was up to you what you wanted to do / how / if you wanted to deploy. They only asked that you write how you would've liked to receive such service from another org.

Then in the day of the in person interview we reviewed my code / README / tests ; was very nice.

  • defrost a day ago

    Did you have the option to represent Pi in a hexidecimal base?

    That speeds things up no end.

csomar a day ago

Take-homes are highly flawed. If you provide a small/short challenge that could be solved with AI, it'll not help you measure the candidate. On the other hand, if you ask for a month worth of work, no one is going to take that up. Automattic does pay for it, and that's the only way I can see this attracting eligible candidates.

At your stage (startup with 2 people), you are much better focusing with designing your product than designing an interview process. Hire someone you know or freelancers.

  • muzani a day ago

    The trick is to set the bar higher so that you can only solve it with AI. Don't ask them to do hackerrank level questions. Ask them to solve problems where part of the solution is a hackkerrank level component.

    Architecture level tests are a sweet spot for nos. AI is not good at this, but senior candidates are often very good at them. You can give them template architecture to start with or work on, something that AI is known to trip over. The only way to know what AI is tripping on is to use it.

    If the candidate is better at using AI to write code than the team, bring them in!

    • n2d4 21 hours ago

      This was also my thinking — if you ask ChatGPT to design a DB schema design it often looks good at first glance but is actually pretty bad.

      If a candidate uses AI as a help to solve their task, yet the output is still good, great! It's their job to solve the problem, with whatever tools they have.

codingdave 2 days ago

The best ones I have done have been actual paid tasks for the team. Where they found something they needed from their backlog that was small and self-contained enough that I could do on my own system without needing any complex onboarding, and they paid me market rate for the time worked. We then came back together and reviewed the work as the next interview.

bravetraveler a day ago

The ones that happened in the interview. I'm not working for free, I expect a modicum of investment from the hiring business - we're doing it live or not at all.

  • n2d4 a day ago

    For context, the take home we're looking to do would happen after we've already interviewed them. We're not thinking of anything huge — something like an hour of work.

    We're also doing a paid trial period, though that would be after the interview + take home.

    • bravetraveler 21 hours ago

      Apologies if I came in too hot - none of this is a judgement against anything. I just see trends in the industry at large and expect a lot of newbies to be lurking. For every however many honest businesses, I get the sense more are unscrupulous

      If nothing else, take this as a scar some of those who are interested may be carrying

  • muzani a day ago

    It's exclusionary. People who do take homes don't like doing live coding and vice versa.

    If the culture is take home, please don't convert it into a live interview; you'll get neither.

    • bravetraveler a day ago

      It is exclusionary. Both ways. When I'm interviewing, the business is also. It's insurance, at a price. Filters should filter.

      If I can't make a case live, but must go off with some pet project while imagining their behavior... I don't want that interview/work. Folks will certainly disagree, just here to remind of agency.

      The best firms gave options. Am adult, will work under agreeable terms. One of those terms is "together" (time, not space), despite my own social anxiety. The same way the business hopes to select with this process, I will too.

      None of this is to judge others - do what you prefer, but please do realize this 'take home' approach can be taken advantage of [again, for either side].

      • muzani a day ago

        Yup, remote is often the opposite. I don't want to work with someone hovering over my shoulder. The hire should also be okay with nobody watching them for a while.

        I get that some people want to be respected for their time, and that has to be built into the process before and after any take home tests are given - compensation, trial buddy, flight & hotel room, detailed feedback after the test.

clusterhacks 2 days ago

Honest question - how are you planning to source candidates in the first place? stack-auth is a two person YC startup and you were previously at another YC startup. I would expect you to tap the YC network for candidate referrals that probably will need little to zero tech evaluation?

I would probably skip a take-home for candidates at all for now. You probably have some specific pain points already. Try to find experienced TypeScript developers with some experience similar to your pain points and recommended to you by people in your network.

If you made me create a take-home assignment, I might make it rather open-ended and say do a compare/contrast of the stack-auth REST API versus one of the other options out there using any programming language and be prepared to describe code in both examples and strengths/weaknesses? This will help you maybe identify developers who self-select on "I'm interested in the stack-auth problem space . . . " Plus, that feels like a reasonably-sized effort for a candidate to me and could maybe be fun.

If you had a technical component during actual interviews, I think it is totally ok to ask someone to code up a small, simple Typescript example function of limited scope. Frankly, that's probably enough for you to get "yes/no" hiring signal.

I'm, err, older than you and will gently ask that you don't focus entirely on people who graduated since you did.

brudgers a day ago

[A random opinion from the internet and based on not knowing the actual details of your context.]

If it isn't worth four or eight or N hours of your staff's time to observe the candidate working on the problem, then it is probably not worth four or eight or N hours of the candidate's time.

Because what are you trying to measure?

How well the candidate lies about how long the project took?

How willing the candidate is to work many hours?

How much free time the candidate has to dedicate to their job search?

How well they GGS (Google and GPT and StackOverflow)?

How resourceful they are at hiring a freelancer?

Etc.

Sure those types of behaviors often resemble people's actual jobs, so maybe a take home coding task measures what your company is really looking for.

But realistically, inexperience and desperation are the most likely reasons someone will be excited about your take home challenge. The best skilled and most experienced candidates -- the kind people who know them want to work with -- probably won't be excited. Good luck.

  • bravetraveler a day ago

    You articulated this far better than I did, +1.

    > But realistically, inexperience and desperation are the most likely reasons someone will be excited about your take home challenge

    Also, why they'll become more common - used by wolves in sheep's clothing. Selecting for those who are more junior or simply malleable.

    Hence my fairly strong stance; we're interviewing 'together' (same time, remote/local/whatever)

b20000 2 days ago

recently i was given 72 hours for a take home. they required me to keep the “challenge” confidential and assign the rights to the code to them. i’m wondering what you all think of that.

  • defrost a day ago

    How generic was the challenge?

    In the sense of would this be a problem that might reasonably come up in the course of working elsewhere ... and how comprised would you be had it done so given you'd seen it before and signed right to your solution elsewhere.

  • stevekemp a day ago

    How much are they paying for you to do the work? How does that compare to your hourly-rate, or salary? If for free they're clearly taking advantage, so I'd assess based on payment.

  • harryquach 2 days ago

    That is a red flag and I would most likely pass on the job. It sounds like they want to potentially use whatever solution you come up with.

gardenhedge 12 hours ago

I actually like the idea of take home tests. Much better than leet code questioning. Take home test +1 interview is ideal.

solardev 2 days ago

My first full-time web dev job was back in the 2010s, for a mom-and-pop solar business. I applied (on Craigslist, heh) and they asked me to bring a portfolio of past work (which was still common back then). I didn't really have one, but I learned jQuery and Bootstrap over the next few days and redid their website front page as a demo and brought it in with me to the interview. I got the job the next day. That was back when "whoa, you can make an ecommerce site" was still a valuable skill, lol.

Fast forward a decade and several jobs later, my favorite take-home so far is simply a no-nonsense assignment that reflected the actual work I would be doing. As a frontend person, that meant making a dashboard in React or whatever JS flavor I wanted, with whatever tools I wanted, for a co-review a few days later.

They asked me to make something like a movie browser, kinda like Netflix, using a provided list of 100 or so movie titles. It was a pretty simple project that only took a day or so, but showed enough basic React listing/filtering/searching/state/context usage, and some simple API lookups (used it to get cover/poster art and some metadata from IMDB). It wasn't a particularly challenging assignment, but it wasn't meant to be – it was just a normal frontend job at a traditional (non-tech) Fortune 1000 company.

After I submitted the assignment, the interviewer spent an hour or so walking through it with me, asking questions about certain parts and offering constructive feedback on others. It was a really good use of both of our time: them to see how I think through user-facing problems, and me to see how they like to manage work and communication.

I got the job, and did very well in it, and helped solve a few interesting challenges at that company (the dashboard was complex enough that it had interesting UX, IA, error handling, user flows, visualizations, etc.)

---------------

One take-home I did NOT really like was from an online interactive mapping company I really respect. They asked me to make an animated analog stopwatch, similar to the kind you'd hold in your hands at a race. I'd never really done any animation before, and their product didn't seem to have much of it, but that was the assignment.

I made one and it worked, with some caveats. The assignment didn't have much detail to begin with, so I submitted what I had and told them I'd be happy to modify it or rewrite the whole thing to spec, in whatever stack they wanted. A few hours later they told me sorry, but no thanks, and that was that. No further feedback.

It annoyed me because the take-home didn't really seem to reflect any sort of work I'd actually be doing anyway (web dev + mapping), which I actually had a moderate amount of prior experience with. The GIS (geo information systems) world has plenty of its own nuances and interesting challenges, but none of that was tested or discussed at all. To this day I still don't know why they wanted an animation challenge for a web mapping app.

Presumably they cared more about the graphics side of things, or it was just a chance for the right candidate to write something really cool from the ground up to impress. The assignment itself was flexible enough that it could've been anything from "here's a npm lib that does this with a SVG" to "I wrote an entire 3D renderer with ray-tracing to better simulate the watch face". I did not impress :)

----------------

Oh, and one more bad/ridiculous experience: One company's first "take-home" wasn't even a coding challenge, but some sort of convoluted personality test. They made you sign up for a third party platform to take a specific personality test that analyzed your personal and professional habits, etc.: https://www.assessmentday.com/ccat-criteria.htm

I laughed in their face and walked away. Guess that shows my personality, eh? Bullet dodged.

starlite-5008 2 days ago

Some of the best take-home coding tasks typically resemble real-world work scenarios, allowing candidates to use any tools available, including debuggers and AI. Tasks that simulate actual job responsibilities are generally preferred, as they provide a clearer picture of the candidate's abilities. It's common for these challenges to take several hours or even days, making them more comprehensive than standard interview questions.

  • bediger4000 2 days ago

    If they "resemble" work, shouldn't you pay applicants?

    If not, are you going to miss a lot of people who have a no-take-home-problem policy, or are skeptical of take-homes that "resemble" work, really being someone else's work?

    • csomar a day ago

      It's an AI answer.

    • solardev 2 days ago

      I think the account you're replying to is a spambot, FWIW.

      But you do bring up an interesting point.

      > If they "resemble" work, shouldn't you pay applicants? If not, are you going to miss a lot of people who have a no-take-home-problem policy, or are skeptical of take-homes that "resemble" work, really being someone else's work?

      I think it's kind of a two-way street and self-selecting group, isn't it? People who don't like that sort of thing filter themselves out, and companies who want mid-tier candidates have an easy way to filter out both people with zero skill and people who are experienced enough they don't have to play games.

      If you're the kind who can get work with a no take-homes policy, you probably don't need to be applying for jobs out of the blue like this anyway, rather than just working your connections.

      Otherwise, as a candidate, I vastly prefer a reasonable take-home over the usual inane interview hoops (talk to four people in HR, a few managers from different departments, the dept head who you'll never work with, etc.). And arguably it SHOULD be like the real work, both for the company's and the candidate's sake, to see if the day-to-day would be a good match.

      And if the company happens to use some of my code without hiring me? Okay, well, so what? I spent a few hours of my time, made some random corner of the internet a bit better. I got to practice a little, they get a bit of free work and I get a little cheated, ok, but life goes on? More productive than playing video games, at least, lol.

      • bediger4000 2 days ago

        Those are good points, I admire your attitude. The flip side here is how jealously companies protect their "Intellectual Property". Why should we give away the sweat of our brows for free, of some corporations are going to claim it as their own, and keep anyone else from using it. Seems unfair. Anyway, thanks!