This is going to sound ridiculous, but I thought I'd open up for example. In university I adamently refuted the moon landing conspiracy of a group partner. I didn't realize this would offend, but it did. She did a lot of extremely vindictive things after that, and even tried to (with some success, I might add) incite anger towards me from other group members.
Some people become extremely defensive and then aggressive, perhaps it is especially so if you are the nerdy-humble-well-intentioned-Alice-low-gravitas type...
Knowing when to correct someone and when to keep quiet is something I have become a lot better at with age. It took a lot of learning the hard way though.
I would hope others are understanding that not everyone who is perceived as a jerk, actually intends it.
In an idealized "intellectual-only" world, humans would be Spock-like and be pure rational actors.
But we aren't, not even close. (And I would argue that that's a good thing, but that discussion is waaaaay out of scope).
As soon as you accept that humans, including yourself, primarily make _emotional_ decisions and not rational ones, it becomes easier to steer decisions in a healthy manner.
I used to think more along these lines. I heard someone recently talk about Spock and Captain Kirk and their approaches to different situations, and he said that most people think Spock must always be right due to his logical side. He then said that many times Kirk’s more human emotional approach actually worked out better in the end. Obviously you need a balance. Things should be logically thought out but sometimes you need to act out of empathy and sympathy towards others even when it might not make that much sense.
Also being rational =/= being cold and unemotional.
The best way I've found to do this is to them you don't understand something and have them explain the solution to you.
Plus it's humility practice -- you might even turn out to be wrong!
But, you know, sometimes it turns out that I was actually the one not seeing some things clearly and by not coming out of the gate as a jerk about things we can both walk away having come to a collaborative solution and everyone feels good.
I can see why you'd think that, I made the same mistake earlier, but see there's this problem here...
vs
No, that's obviously wrong, why would you even think that? Let me show you the right way...
Instead of saying "bubble sort is too slow for us to use" (oppositional, "you are wrong for thinking otherwise"), try "wouldn't bubble sort be too slow for us to use?" (collaborative, "maybe you have something to add").
It's ok to be cynical and defeatist, but those two qualities don't make for useful answers to questions
Edit Source: I make this mistake all the god damn time, and never realize it until the person breaks and finally snaps at me. The whole time I thought we were just having a reasoned argument. I think that I am constructively invalidating the other persons arguments, meanwhile they are feeling belittled and defensive.
Edit edit: This is even worse if, like me, you think arguments are pretty much the greatest most entertaining game it is possible to play.