Ask HN: How do you deal with performance anxiety during interviews?
For an example in an interview today I was writing some code and wrote if (x > 0 || x < 0) instead of if (x !=0) ... I have been programing for over 12 years and I don't think I have ever made this mistake in real life.
Later on in the interview the interviewer asked a question that made me smile when she asked it because I knew I knew how to do it. Yet half way through after solving the hardest part of it I blanked out and spent the next 15 to 20 minutes going in circles with the interviewer giving me incredibly obvious hints. The answer was on the tip of my tongue but I just couldn't get it out.
This is not the first time this has happened to me. It happens to a greater or lesser degree every time I have a whiteboard or shared online coding interview.
I can do paper or take home tests fine. I can talk about my past experience fine. I can ask good questions. But I never feel like I am able to code to my normal abilities during a whiteboard test.
Should I try to get companies to give me a paper test? Or should I keep slogging through these whiteboard ones with the hopes that eventually I'll get enough practice that I'll get over it? Has anyone else here been able to overcome a similar problem?