I quit doing that, and I quit getting tickets.
You do that, it shows you've been pulled over a lot or had prior run ins with the law.
Act like any normal ned and you'll probably skate.
That, or that you're either A) a cop yourself and know the drill or B) a responsible citizen who knows what they like to see. Anything that makes the officer more comfortable (ie, window down, interior lights on at night so they can more easily see into the vehicle, turning your ******* loud ass music down, saying "sir" or "ma'am", etc.) will bode well with the officer.
It's a respect thing. Courtesy gets you a long way in my neck of the woods. Acting like a ******* does not.