Compare your reaction to reading each of:
"Your code is flawed because ..." and
"The presented code is flawed because ...".
A suggestion that might reduce hurt feelings (and possibly retain more SO users):
Add an acceptable and neutral version of the following proposed guideline to the How do I ask a good question?, How do I write a good answer? and Expected Behavior pages of the Help Center:
Each of us values our own work as a demonstration of our aptitude, ability and sometimes creativity.
However, identifying personally with a work binds the person submitting the work to the content of that work that is being exposed to a public arena.
All parties are advised to make every effort to write in a "neutral voice" about the work.
Preference the use of neutral language such as "this code ..." over "my code ..." or "your code ...".
The matter being discussed is the work, not the person behind the work.
Possibly an improved version of this could be added as a "reminder" integrated into the Question submission form, the Answer composition window and as a "grey-ish" reminder in each Comment entry box.
Depersonalising submissions may help take some of the perceived toxicity out of the rough-and-tumble that is social media leading to a more professional ambiance.
(I am in-no-way "married" to the text proposed above. Should this proposal meet with general approval, a follow-up question on SO-Meta could solicit far better expressions of the intent from the community's true wordsmiths.)
And, whether-or-not this is enacted: On the Help Center's "How do I write a good answer?" page, please correct the ungrammatical "...because of helpful people like yourself..." with "...because of helpful people like you..." in the page's second sentence.