I had an math professor (NOT the one I am referencing in another comment) that was ego-centric and would often respond to my incessant questioning with demoralizing (and sometimes flat out rude) responses. I just acted completely oblivious to the social faux pas and his avoidance/adversarial tendencies eventually turned into a much more productive relationship. I received the only A in the class (he publicly posted everyone's grades).