I finally have gotten the courage to leave interviews when they throw code test as me, end the call or just leave. Sometimes I believe that the person doing the interview (Senior Dev) just likes to quiz people on technical knowledge and then when the interviewee doesn't know, they like to tell them and explain it to them. I get the feeling at times it gives the interviewer an ego boost. I think I have been trained to explore every job opportunity, just like I have been trained to eat all the food on my plate.
Best example, I have ever had I was interviewing for job about 6 years ago with a start up. The guy that was interviewing me has a CS masters degree strong tech stack background, probably lacked personality. He asked me what polymorphous was and at the time I didn't know. I just told him that I didn't know. Then he went on to explain it to me. Which I really didn't care about learning about. It was clear I wasn't going to get the job and that was fine, it didn't hurt my feelings. However, I learned to code because I have a background in finance, stocks, and options, before I became a coder. I have built stock algorithms that are profitable, regardless if they don't use all the right classes or OOP. So when this gentleman told me that I wasn't good enough for the job, he followed up with, I really like what you are doing with stocks and your stock algorithm, maybe we could meet for coffee sometime and you could tell me how your algorithm works, etc.
So I'm not good enough for your job, but but you want to learn about my algorithm. (the company went out of business 1 year later.) Pound sand.
The problem that I face is I don't want to be a Senior Dev. I have enough side projects and work life balance that I'm not trying to hit the CTO career mark, unless maybe with a start up. Some one mentioned that that they where like a studio musician. They aren't going be the rock star, but they do well with the band, etc. That's probably me, I'm more interested in my side projects. But professional enough to work at a day job.
Whiteboards, interviews, take homes I'm not seeing this get much better anytime soon.