Practice makes perfection (or, at least, it lowers the discomfort).
I attended a demo in my LBS years ago and I had been lucky never to have a flat on my own bike. First chance to practice, with some help, was on a friends hybrid.
Then in 2008, I had 3 flats in the rear tire in the middle of nowhere in Scotland. Not only did I learn to patch and change tubes, but I also learned about bad rim tape! Before those flats, I did not even know that existed. After the third one, I had to 'patch' parts of the rim tape with sport tape a friend was carrying, riding very gingerly for hours until we arrived to our destination and found a bike shop.
Last summer I had another chance to practice when I saw a family stranded in a trail -- dad's rear tire had a gaping hole! I recalled having read (in TE) something about using a folded dollar bill to cover the hole. It works!

