I wish programmers were treated more like designers with a portfolio review. I’ve implemented so many cool things, yet somehow I’m judged based on some esoteric programming problem. It’s like I’m an interchangeable cog who is being evaluated on how well I can be a cog....heck, HR and often even interviewers often don’t bother looking at your CV. Dammit, I do compilers, not chatbots!
The really great jobs I’ve had didn’t really require interviews at all, they knew who I was and knew what I’ve done and what I could do, and that was good enough.
I've seen principal engineers (where this was the top of their ladder) that literally couldn't tell me what a hash table is.
For domain experts, Google actually does target domain specific areas (in at least 1 interview) and weigh it against how good people are generally.
However, I suspect most people think they are specialized experts in things they are not.