It's possible to communicate in a casual, conversational, and humorous manner without alienating minorities and delivering insults, and the author chose not to.
I think it's unlikely that he was trying to be malicious and is probably just not sensitive to what it's like to be on the receiving end of some of his examples.