There is also another use of profanity - as a medium of creative expression. Although my command of the idiom is woefully limited, I can remember several people of whom I was in total awe at their command of creative invective.
Interesting. I once saw a report of an interview George Patton had given. I can't find it, so I won't try to quote, but Patton said something to the effect that he used cuss words when he wanted to be understood and when he wanted to be understood quickly he would give it to the person with both barrels.
A Sergeant Major (now retired) and I were talking about that. I said, "You know, swearing has often been called the language of a fool. The average soldier is woefully under educated. It appears that cussing is possibly the only way to get across orders in a way that everyone can understand them."