This sounds similar to the guy I'm working with. He's great in certain ways and takes his job seriously but can be really grating to work with. (Frankly, I think it probably has something to do with taking stimulants, just based on similarities between him and another engineer I worked with who was open about being on a big dose of stimulants, and who resembles this guy but about 2x worse.)