I swear everytime someone looks at me when coding I suddenly forget the syntax to declaring a function, and feel like an idiot looking up whatever it is I forgot to add
I just can't do pair programming man. It's awkward enough to code with someone watching or to watch them code, let alone trying to follow their thoughts next to my own.
I think I finally got over this for the most part after having to lead a team of juniors. At some point it just needs to be done and its like fear inoculation in that sense. Definitely not the same as pairing with someone you know is better than you tho lol
I actually generally feel the opposite. I'll be struggling with a problem for hours, and then when I get someone watching, it's like the solution just jumps out at me.