I hope it's okay to go a bit older than people in their 40s and 50s. I'm a family sociologist at Cornell, and we surveyed over 1200 people over 60 on this very topic (described in the book 30 Lessons for Living: Tried and True Advice from the Wisest Americans). Here are four "life lessons" they wanted to pass down to younger people - hope you find them helpful!
Ultimately, the course of earning (more) respect is entirely up to the individual and their preference of method. The truth is that some people are simply good at being bad and doing good requires hard work. Throwing your hands up in the air and saying "I give up" is much easier than resisting negativity and continuing down a more positive path.
I really believe we're all meant to live our passion with peace, understanding, and wonder, and share our experiences in every way possible that touch another's heart and lights their eyes. And, these profound waves of technology run smoothly through our storms of life and impact us all to make it happen.