1) Don't buy under pressure
Don't wait to shop for a car until you desperately need one. That way you don't make any impulse decisions when you look at new cars. Believe me, it's easier than you think. Also, planning ahead allows you to wait for the right price if you are selling your used car.
2) Know how much you are willing to pay
Set the maximum price you are willing to pay before you even start looking at cars. This prevents irrational rationalization at the dealership when you can be more easily swayed (by the sales staff, by the sexy cars, by your significant other...).
3) Shop around for loans
Car companies and dealerships make a great deal of their money through financing. If you line up financing in other places before you go to the dealership, you will make sure that you pay less over the long-term. For example, if you finance your $30,000 car at 4% versus 5% interest, you can save yourself hundreds or even thousands of dollars. Online loan sites offer a great option by sending your loan application to sometimes hundreds of lenders and matching you with the best loan, all for free.