> People "on the spectrum" tend to do that. Most STEM people are not on the spectrum.
Non spectrum STEM people do that too quite a lot. It is not just personality thing. The classes they teach in technical schools require exactly that. You don't learn to doubt math book or physics book nor encounter another physics book that says something contradictory. Nor you have to take into account writers bias or reconcile multiple contradictory trends. (That is not criticism of stem classes, they simply have different goal.)
Just because something is done by people on spectrum does not mean neurotypical cant do it.
> They will initially, but they'll recognize the crap code after a while and won't trust them anymore.
I did not said that the arrogance and confidence imply completely crap code. Again, there is false binary here.
It just mean that such person is seen as more capable then he is and that his takedowns of more calm people are taken at face value too. Meaning that arrogant and confident person wins discussion where he is wrong and does not know what is talked about and is capable to harm reputation of competitors. It manifests mostly in unclear situations with unpredictable outcome, complicated situations, strategic decisions etc. It systematically manifests when there are differences of opinions.