I think that "The Ultimate Computer" is the one time where Kirk is depicted as a genuine jerk/asshole. His behaviour at the start of the episode was inexcuseable. He was shown acting like a petulant child, inserting himself into testing matters where a more reasonable commander would have backed off. I think that early part of this episode makes Kirk look very bad. This being a 60's show, and he being the hero...it was necessary for him to be proven right. However, that still does not excuse him for his actions prior to the M5's malfunction.