When you're alone and coding, you exert your powers of concentration and focus.
When you're in a social situation, be social.
I'd call myself an introvert, but I can certainly charm and interact with the best of them. I just need some quiet time afterwards to recover :-)