Based on your description of their behavior, the interviewer sounds like an socially insecure and technically incompetent programmer. Even worse would have been if you were hired and worked with this person as organizationally senior to you (shudder). Not exactly "Mr. Mentor" material.