I will side with the cop here. Knowing a few who are in this line of work I am more than amazed at what they put up with. Put it to you this way, your not being pulled over because they don't like you, your not being pulled over because they are having a bad day, your being pulled over because you flagged yourself; speeding, running a stop sign, tail light out, etc.
There is no reason to get argumentative with someone doing their job, let alone a traffic cop. All that while they are working on your incident they have to watch out for traffic, your actions, and ensuring you don't get so excited your a threat to yourself or them.
More than likely, being familiar with "our type"; techies, she came off as a pretentious twit and treated him with contempt for being an ignorant cop.