David Heinemeier Hansson, a well-known programmer and the creator of the popular Ruby on Rails coding framework, started it when he tweeted, "Hello, my name is David. I would fail to write bubble sort on a whiteboard. I look code up on the internet all the time. I don't do riddles."
I don't buy the notion that someone with a CS degree cannot implement bubblesort on a whiteboard, regardless of real life accomplishments. With that said, his last sentence (I look code up on the internet all the time), that's the motto I live by.
Someone asks me how do you call function X on Y api?, and I'll answer that's what google is for, I don't memorize minutia. And I'd walk away from an interview that requires me to code something non-trivial without an internet connection. I'd work on a whiteboard to illustrate my problem solving skills, but ask me minutia or expect me to code without a reference?
Nope, I'm out. Life is short, there is plenty of game out there, and I'm too old for this junior level game playing shit.
Additionally, I do not pity people who find the game demoralizing. There are more demoralizing things in life, like cancer or poverty. Interviews? They are demoralizing because you let them. That's just part of the game. Build the mindset to waddle through shit creek till you get what you want.
Demoralizing yourself because the interview process is the stupidest exercise of self-indulgence ever.