I've been on both ends of a badge. Well, I was a military cop, but hey, that should count, too.
Cops get a lot of grief from people. Sure, some deserve it, but most don't.
For those of you who didn't realize it, when a cop writes a ticket, there are 3 copies. One for you, one for the police, and one for the court. The one that goes to the judge has a little something extra on it: your attitude when pulled over. Believe it or not, this can play a big part in how you're treated in court. You might be surprised if you're real cool to them.
So keep a box of doughnuts on the passenger seat.