unless I'm misunderstanding why you're referring to?
To be clear, this is just a general critique of up front multi-hour tests. There are ways to make these things not so lopsided. For example, make clear in the job announcement the minimum requirements so that people will filter themselves prior to putting in the effort to create some impressive application. Ideally you would have such a test later in the process so there is some investment on both sides. First pass filtering can be done with fizzbuzz-esque 5 minute exercises.
That would be fairly reasonable. The tests I got, had a heavy project offloaded upfront as effectively part 1 of the interview, with no such communicated expectation.
Or do you expect them to put in multiple hours without reimbursement?
I have had companies send out a test as the first step and then reject me after completing it because my resume didn't meet their needs even though they had that info to start with.
Given I'm in a situation similar to OP's — took 4 weeks just to catch up with sleep and dismantle anxiety.
I was approached about a job. The process includes a home assessment with a 5 day deadline. Definitely it's doable, it's a filter yadda yadda.
But I'm asking you if the scene is really swarmed with impostors and bullshitters that you have to enforce people working for free for you to handpick? I call home assessments a tool for locating tractable employees. You know, those who wouldn't mind the OT every 2nd week of the months.
Hell, they already proved motivated working for free when they solved that home task you gave then.
You wouldn't ask the cook to work for free just to taste his dish and then decline without paying him. You wouldn't do that to a driver either. To a gardener.
Why the heck does the developer has to jump through those hoops then.
Yes, if you are hiring a cook for a restaurant (which, admittedly, most people don't do, because they don't run restaurants) or wedding or other event (which more people have experience with) you will, quite likely, do exactly that.
I'm under the impression that exactly this happens in the restaurant industry all the time.
Employers are abusive in all industries.
If the job's not worth it to the candidate, they won't complete the task.
Easy.
Remember, it's a two way process; any candidate worth their salt is interviewing the company.
If the candidate is worth it to the company, they won't expect them to jump through absurd hoops, and will treat them with at least a professional minimum of respect.
Which is true? Nobody really knows.
But I don't see how it carries over to companies expecting a huge investment from a developer up front (a week's work, unpaid!), without some major positive differentiator from the other companies requiring decent devs.
That isn't going to appeal to any developer with options.
What's the upside, why would they invest that time - just go to the non-presumptive company next door.
Also that wouldn't likely save time. If the task will take someone 2h, I'd have to spend more than that: describing the task with all the relevant context, providing a mock of the environment it needs to be plugged into, reviewing the result, fixing any issues, changing it to match the internal style, and also waiting for the solution itself which may not even arrive any time soon. It's not like every (or even most) candidates will produce something you'd want to keep.
OP wasn't clear how big the task was.
You're certainly not going to get code you could actually put in production by doing that.