Communicate your needs and feelings directly, rather than suffering in silence. If you never clearly tell your friend that his stupid jokes really hurt you, you may sit quietly and bear the brunt of it forever, when it would have been easy to tell him how you feel and ask him to stop.