> If you expect to take more than 2 - 3 hours of someone's time, you should be paying them.
Do you want to work with team mates who have been vetted over less than 2 hours? I've worked with people who couldn't code, it's not a fun experience.
There are a lot of people who can talk a good talk but can't actually code. This was the reason for the FizzBuzz test (which I dislike, but it was invented to solve a real problem).
My current employer would not be able to do contract-to-hire or a trial contract for legal and policy reasons, and I strongly believe that a homework assignment taking approximately 2 hours, when combined with another 1.5 hours in person provides the best signal of all the methods I've tried. That's a total interview process of 3.5 hours i.e. about half a day. If you can find half a day for an in person interview then you can certainly find the same hours split up differently for homework + in person.
Trying to make it about sexism is crazy. Homework is much more flexible as to when you do it than in person interviews. Just because you're looking after kids doesn't mean you won't be able to take a couple of hours when they're asleep or in school. If doing homework is a problem, then I'm sure doing an inperson is even harder.
Our homework + inperson extension is on a topic related to our real field, not just a compsci quiz (which means it gives you a chance to show off domain knowledge if you want the extra points), allows no frameworks (except testing), produces an interesting artefact at the end, and can be completed in less than 100 lines of functional code plus a smattering of test code (although many will do more, sometimes crazily so - for which they lose marks). There are exhortations in the instructions to keep it simple. You can schedule when you want to work on it yourself, work on it with your own tools and hardware, split the time over a couple of weeks if it's difficult to get a block of time together.
The only real question is the time commitment. I've targeted 2 hours, but many spend around 3 or so, and some spend more on it. Setting an 8 hour challenge for my kind of work woud be entirely unfair to the candidate, unless that was the total time spent on the entire interview process.
I've hired with a number of different processes, and this one takes the least total time for the candidate and seems to have given me the best results.