I spent my 20's getting into debt/credit trouble. I spent my 30's digging my way out. Now that I'm in my 40's, I don't even own a credit card, and I only buy something if I can pay cash for it up front.
I'm not advocating this course of action for everyone, but it works best for me. I know plenty of people who use credit wisely.