On my way to a "white collar" job, I worked construction. It was stage building, which is the kind of construction that "blue collar" workers routinely laughed at, but it was still hard, physical work.
How did I get my promotion that made the job worthwhile? A person fell 30 feet onto concrete. The next week, I was replacing him, with all of the risks he had, and the potential outcome.
That said, all of the chiding and sideways comments I received in the construction field didn't amount to half of the comments I received as a developer. There is something toxic about our field that we don't want to focus on (and I can't blame those that look away).
People claim "simple" when they mean "my way". People claim lack of "knowing how to use the language" when the wrong ideas get injected into a language (I'm personally looking at you Perl, but now that I'm working Golang, it's starting to feel too familiar).
The truth is, there is often more than one way to solve a problem, but an strong willed person won't see it that way. I've walked away from plenty of marginally (and I mean marginally) better solutions just to compromise to some form of a solution than I care to enumerate. One can't win such arguments.
I agree, it's not malicious, but is is egotistical. I've even won solutions where I said "Let's all agree that you're right, and then let's accept the code as-is." This industry is improved compared to decades before, but it's not yet fully rational, or even fair.