Thankfully I haven't had many bad experiences with tech-industry hiring practices - most of my interviews were more design-focused than tech-focused, so things like whiteboard and pair programming weren't even in the question. I have been asked to complete take home assignments (LOL no!) as well as to demonstrate basic coding ability via screensharing.
I do have an experience I think is the right way to hire people, and from now on I would really recommend this to anybody hiring people in tech:
One of my clients (my best client!) had put a job listing looking for a UX Designer on an online job board, and they had already filled the role before I even contacted them.
Realizing I had still had skills that could be useful to them, and their projects were becoming more successful, they decided to go ahead and speak with me anyway just to make the introduction and see whether or not I might be somebody they might want to call on later if they grew.
Not too long after that, they realized they actually had a much better fit for the first person they talked to than the role where they had put him, so they wanted to give me a try as well.
First we agreed on four hours of paid work that was very clearly defined, they were giving me pieces I needed and defined precisely what they wanted delivered from me, and wanted to see how well I could adapt how I work to fit their project and workflow. They only risked 4 hours of work, I got paid for my time, and they had a chance to decide whether they wanted to work with me again after that.
After the first four hour project, they came back and asked if I was free to take on eight hours of paid work. This was great, working in an 8-hour chunk let me show them what I was capable of a little better, and it felt like I did one complete thing, rather than just one part of one thing. I got paid for the eight hours and they had another opportunity to say goodbye or choose to hire me again if they wanted to.
They moved on to offering five days of paid work (one week), and then a month of paid work. By the time I was finished that, I was more or less as integrated into the team, their systems and tools, and learning their workflow.
It's been years that I've been happily working with this client, and it's still the best hiring experience I've ever had.
What made it so good?
So if you're considering hiring somebody, consider what it might look like to ramp up from a small task to full-time work rather than having the interview process be a strong filter to protect a full-time position with 100% trust and risk.
Just my 2¢